auto eth0
iface eth0 inet static
address 192.168.1.90
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 114.114.114.114
不要手动修改
vim /etc/resolv.conf
Ubuntu 修改 IP/DNS
原文:http://my.oschina.net/fonddream/blog/525508