解决 VMware CentOS7 ens33 网卡不见的问题
VMware 虚拟机安装 CentOS7,且正常使用一段时间后,再次启动使用 terminal 连接发现连接不上。
在 VMware 里执行 ifconfig 发现 ens33 网卡不见了,使用 ifconfig -a 查看全部网卡信息,发现 ens33 没有静态 ip 信息。
重启网卡:
ifconfig ens33 up 重启网络:
service network restart报错,信息如下:
Job for iptables.service failed because the control process exited with error code. See "systemctl status iptables.service" and "journalctl -xe" for details. 按照提示查看日志,但最终没发现什么问题,无奈只能重新运行网络管理装置,谁知就好了。
解决方法
关闭网络:
chkconfig network off 启动:
chkconfig network on 重启网络管理:
service NetworkManager stopservice NetworkManager start问题造成的原因可能千奇百怪,最终也没有定位出具体源头。但如果网络一直是好用的,但是突然没法连接,重新运营网络管理装置一般都会解决问题。