
编辑/etc/network/interfaces 加入
代码:
auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.0.100 netmask 255.255.255.0 gateway 192.168.0.1
address是IP地址 netmask是掩码 gateway是网关 都填你自己的 再指定dns
打开/etc/resolv.conf
代码:
nameserver xx...