ubuntu 16.04 配置固定 ip 无法联网
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
# iface to inet loopback
#auto ens33
#iface ens33 inet static
# address 192.168.1.128
# netmask 255.255.255.0
# gateway 192.168.1.2
# 和下面只差一个 dns-nameservers 却无法联网? 尚不清楚原因, 可能是空格导致的?
auto ens33
iface ens33 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.2
dns-nameservers 192.168.1.2
标签:iface,1.2,虚拟机,192.168,static,inet,相关,vmware,ens33
From: https://www.cnblogs.com/whm-blog/p/17909853.html