sudo vim /etc/network/interfaces
auto eth0 iface eth0 inet static address 192.168.1.250 gateway 192.168.1.1 netmask 255.255.255.0 dns-nameservers 192.168.1.1 192.168.8.10
然后再
sudo service network-manager restart
sudo ifdown eth0
sudo ifup eth0