1:假设网卡为eth0:
sudo gedit /etc/network/interfaces // 设置相关参数
auto eth0
iface eth0 inet static
address 192.168.10.175
netmask 255.255.255.0
gateway 192.168.10.1
2:sudo rm /etc/rc2.d/S70dns-clean //清除原来的dns
3:sudo /etc/init.d/networking restart //重启网络服务
4:sudo gedit /etc/resolv.conf
nameserver 211.136.20.203 //设置dns
阅读(824) | 评论(0) | 转发(0) |