Difference between revisions of "centos static IP config"

From thelinuxwiki
Jump to: navigation, search
(Created page with "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 ...")
 
Line 9: Line 9:
 
  IPADDR=10.0.1.27  
 
  IPADDR=10.0.1.27  
 
  USERCTL=no
 
  USERCTL=no
 +
GATEWAY=10.0.1.254
  
 
then...
 
then...

Revision as of 20:44, 8 May 2013

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
GATEWAY=10.0.1.254

then...

/etc/init.d/network restart