网络配置文件 在 /etc/network/interface
auto eth0
iface eth0 inet static
address x.x.x.x
netmask 255.255.255.0
gateway x.x.x.x
设置DNS
/etc/systemd/resolve.conf
/etc/resolve.conf
nameserver x.x.x.x
重启网络 /etc/init.d/networking restart
--------------------------------------------------------
如果网络无法启动或不稳定
/etc/NetworkManager/NetworkManager.conf
managed=true