linux IP address (change)

Matthew Benjamin msbenjamin12 at gmail.com
Wed Aug 23 13:40:54 UTC 2006


On 8/23/06, Brad Bonkoski <bbonkoski at mediaguide.com> wrote:
>
>
>
> Ankush Grover wrote:
> > On 8/23/06, Matthew Benjamin <msbenjamin12 at gmail.com> wrote:
> >> What is the easiest way from command line to set or change the IP
> >> address of
> >> a linux box (FC4)?
> >>
> >> --
> > edit this file
> >
> > /etc/sysconfig/network-scripts/ifcfg-eth0 (for eth0) and change the
> > value of IPADDR to whatever address you want to put
> >
> > for example
> > IPADDR=192.168.1.125
> >
> > Regards
> >
> > Ankush Grover
> >
> The above will make the setting permanent (of course you will also have
> to run:
> /sbin/ifconfig eth0 down
> /sbin/ifconfig eth0 up
>
>
> if you just want to *test* a new setting (i.e. not permanent)
> /sbin/ifconfig eth0 192.268.1.111 netmask 255.255.255.0
> is the command.
> -B
>
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>

can you add a switch to the ifconfig command to make it permanent?

-- 
mB.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060823/4cd5ecff/attachment-0001.htm>


More information about the fedora-list mailing list