centos static IP config

From thelinuxwiki
Revision as of 20:42, 8 May 2013 by Nighthawk (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

file structure / paths similar / same as redhat

example /etc/sysconfig/ifcfg-eth0 file

DEVICE=eth0 
BOOTPROTO=none 
ONBOOT=yes 
NETWORK=10.0.1.0 
NETMASK=255.255.255.0 
IPADDR=10.0.1.27 
USERCTL=no

then...

/etc/init.d/network restart