vi编辑 /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network
 
1) /etc/sysconfig/network
NETWORKING = yes
HOSTNAME = xxxx.com #你的主机名
GATEWAY = 202.205.0.84 #网关
GATEWAYDEV = eth0
 
2) /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.1.255 #你的广播址
IPADDR=192.168.1.10 #你的IP地址
NETMASK=255.255.255.0 #你的子网掩码
NETWORK=192.168.1.0 #你的工作网络
ONBOOT=yes