vim /etc/network/interfaces添上:
auto eth0#iface eth0 inet dhcpiface eth0 inet staticaddress 192.168.1.110netmask 255.255.255.0gateway 192.168.1.2cd /etc/resolvconf/resolv.conf.dvim base加上
nameserver 8.8.8.8nameserver 202.112.14.151原文:http://www.cnblogs.com/auyeungcarl/p/6349174.html