/etc/network 下:interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.111
netmask 255.255.255.0
gateway 192.168.1.1
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.111
netmask 255.255.255.0
gateway 192.168.1.1
/etc/ 下:resolv.conf
nameserver 8.8.8.8
配置好后,/etc/init.d/networking restart 网卡重启即可!