vi /etc/sysconfig/network-scripts/ifcfg-ens33
TYPE=Ethernet PROXY_METHOD=none BROWSER_ONLY=no BOOTPROTO=dhcp 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=9abe3507-16e4-4cf5-a05d-f91f0472aac6 DEVICE=ens33 ONBOOT=yes # ................................. 将它改为yes
systemctl restart network
要是还不成功---
# 加上这几句话 BOOTPROTO=static IPADDR=192.168.58.109 NETMASK=255.255.255.0 GATEWAY=192.168.58.1
编辑-->虚拟网络编辑器,还原
还有
systemctl stop NetworkManager
systemctl statr network