重启网络服务 /etc/init.d/networking restart
能ping通外网IP,但ping不通域名
/etc/resolv.conf中添加nameserver 192.168.1.1(或其他DNS地址)
设置固定IP /etc/network/interfaces
# The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 #iface eth0 inet dhcp iface eth0 inet static address 192.168.1.206 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1