$ vi /etc/sysconfig/network

NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=localhost.localdomain
GATEWAY=192.168.8.2
GATEWAYDEV=eth0

 

 

$ vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE="eth0"
BOOTPROTO="static"
IPADDR=192.168.8.3
NETMASK=255.255.255.0
GATEWAY=192.168.8.2
DNS1=168.126.63.1
DNS2=168.126.63.2
HWADDR="XX:XX:XX:XX:XX:XX"
IPV6INIT="yes"
NM_CONTROLLED="yes"
ONBOOT="yes"

 

 

$ vi /etc/sysconfig/network-scripts/ifcfg-eth0

 

 

$ /etc/rc.d/init.d/network restart


 

Posted by 공간사랑

댓글을 달아 주세요