设置静态IP
BOOTPROTO=static
IPADDR=192.168.1.10
NETMASK=255.255.255.0
GATEWAY=192.168.1.250
2.查看默认网关:route
3.查看DNS:cat /etc/resolv.conf
配置:nameserver 114.114.114.114
4.重启网络服务:/etc/init.d/network restart