Centos7 ifconfig中没有ens33

在使用Secure CRT连接虚拟机连接不上,可能之前虚拟机关闭不当

登到虚拟机的中断使用ifconfig发现没有ens33

 猜测是CentOS图形管理中的NetworkManager接管了网络配置, 执行以下命令关闭、重启网络服务:

ifconfig ens33 up

systemctl stop NetworkManager

systemctl disable NetworkManager

ifup ens33

systemctl restart network.service

posted @ 2022-03-24 09:09  钟小川  阅读(415)  评论(0)    收藏  举报