vi /etc/network/interfaces
auto eth0 iface eth0 inet dhcp
auto eth0 iface eth0 inet static address 192.168.12.222 netmask 255.255.255.0 gateway 192.168.12.1 dns-server 218.201.96.130
vi /etc/resolv.conf set dns nameserver 192.168.12.1 nameserver 192.168.12.1
sudo ifdown eth0 sudo ifup eth0
新闻热点
疑难解答