把IP变为static
BOOTPROTO="static"
IPADDR="192.168.217.136"
最后,重启网络
systemctl restart network
[root@centos01 conf]# cat /etc/sysconfig/network-scripts/ifcfg-ens33 TYPE="Ethernet" PROXY_METHOD="none" BROWSER_ONLY="no" BOOTPROTO="static" IPADDR="192.168.217.136" DEFROUTE="yes" IPV4_FAILURE_FATAL="no" IPV6INIT="yes" IPV6_AUTOCONF="yes" IPV6_DEFROUTE="yes" IPV6_FAILURE_FATAL="no" IPV6_ADDR_GEN_MODE="stable-privacy" NAME="ens33" UUID="66f67a60-38d0-4c79-9d05-886cca432242" DEVICE="ens33" ONBOOT="yes" [root@centos01 conf]#
标签:no,IP,static,vmware16,nat,IPV6,yes,ens33 From: https://www.cnblogs.com/wuyicode/p/18136830