sudo vi /etc/network/interfaces
以下方文件内容进行覆盖
# interfaces(5) file used by ifup(8) and ifdown(8)
auto ens33
# iface lo inet loopback
iface ens33 inet static
address 192.168.10.111
netmask 255.255.255.0
gateway 192.168.10.1
dns-nameservers 192.168.10.1