PDA

View Full Version : Static IP address conf file


100%digital
16th March 2007, 04:14 PM
Hello All,

What conf file contains my IP settings, the system-config-network until is pretty weak. Is the conf file the same for all distributions?

Many thanx,

J

100%digital
16th March 2007, 05:28 PM
The /etc/sysconfig/networking/devices/ifcfg-eth0
Does not have any available fields to edit regarding the IP addressing, only a receive the address via dynamic addressing???

I've seen other posts that direct one to edit the script file that system-config-network uses, but I’d like to know the file system location...

many thanx,
J

blue13130
16th March 2007, 06:38 PM

Take a look at this Redhat documentation:
http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/ref-guide/s1-networkscripts-interfaces.html

Basically set your ifcfg-eth0 file to look like this for a static IP:
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
NETMASK=255.255.255.0
IPADDR=10.0.1.27
USERCTL=no