修改ifcfg-ens33
BOOTPROTO=static
ONBOOT=yes
IPADDR=XXX.XXX.XXX.3~254
GATEWAY=XXX.XXX.XXX.2
PREFIX=24(255.255.255.0)
DNS=与宿主机的DNS相同,如
IPADDR
重启network服务:service network restart
标签:宿主机,network,NAT,XXX,IPADDR,255.255,DNS,连接,vmware
来源: https://blog.csdn.net/LiFu_b/article/details/100736341