vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.0.255
HWADDR=00:18:8b:f8:15:31
IPADDR=192.168.0.229
NETMASK=255.255.255.0
ONBOOT=yes
GATEWAY=192.168.0.1
vi /etc/resolv.conf
nameserver 202.102.152.3
重启网卡
service network restart