系统:ubuntuubuntu
配置文件:/etc/network/interfaces网络
添加:server
auto eth0 iface eth0 inet static address 192.168.1.166 gateway 192.168.1.1 netmask 255.255.255.0 dns-nameservers 8.8.8.8
重启网络或者重启便可。 blog