A problem occurs when the VMware virtual machine is suspended and then shut down. It cannot connect to the external network. Ifconfig has no ens33

Original address

  1. ens33 disappears after Centos7 restarts (external connection cannot be made)
  2. After Centos7 restarts, ens33 disappears (external connection cannot be made)_ens33 disappears_Slimming Little Ant's Blog-CSDN Blog

 

Solution: Execute the following 4 commands.

systemctl stop NetworkManager    # 关闭NetworkManager
systemctl disable NetworkManager # 开机禁用NetworkManager
systemctl start network.service  # 开启网卡
service network restart          # 重启网卡

Guess you like

Origin blog.csdn.net/weixin_44949135/article/details/132694532