auto ens2f1
iface ens2f1 inet static
address 192.168.1.16
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameserver 114.114.114.114
mtu 9000
重启网络服务使配置生效:
$ sudo /etc/init.d/networking restart
auto ens2f1
iface ens2f1 inet static
address 192.168.1.16
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameserver 114.114.114.114
mtu 9000
重启网络服务使配置生效:
$ sudo /etc/init.d/networking restart