linux IP address (change)

Andy Green andy at warmcat.com
Wed Aug 23 11:51:48 UTC 2006


Matthew Benjamin wrote:
> What is the easiest way from command line to set or change the IP 
> address of a linux box (FC4)?

One-off:

ifconfig eth0 123.123.123.123 netmask 255.255.255.0

The Redhat Way so it will survive reboots:

edit (it's a text file) /etc/sysconfig/networking/devices/ifcfg-eth0

then

ifdown eth0 ; ifup eth0

to get the new settings

-Andy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4492 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20060823/0cb633af/attachment-0002.bin 


More information about the users mailing list