ifconfig -a 查看linux下的网卡配置
dhclient dhcp获得IP
vi /etc/sysconfig/netwaork-scripts/ifcfg-eth0
IPADDR=192.168.199.200
NETMASK=255.255.255.0
GATEWAY=192.168.199.1
DNS1=192.168.199.1
DNS2=223.5.5.5
service network restart
ifdown eth0
ifup eth0
原文地址:http://qingdaobear.blog.51cto.com/629547/1730944