/etc/network/interfaces修改
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.0.200
netmask 255.255.255.0
gateway 192.168.0.1
# nameserver 8.8.8.8
重新启动
sudo systemctl restart networking
/etc/network/interfaces修改
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.0.200
netmask 255.255.255.0
gateway 192.168.0.1
# nameserver 8.8.8.8
重新启动
sudo systemctl restart networking