Job for network.service failed because the control process exited with error code问题

Job for network.service failed because the control process exited with error code问题

背景

在vmware打开一个centOS7,刚开始的时候还能用,过两天再打开虚拟机,发现xshell连接不上了,ping外网也ping不通,windows也ping不通linux。初步考虑是虚拟机的网络出了问题,检查了一遍,也没发现问题。实际上,也不可能出现问题,因为我没修改过网络。

原因

因为我vmware中之前有一个虚拟机,网络模式是NAT模式。这个虚拟机打开网络编辑器以后发现,是桥接模式。当我准备把现在的也设置为NAT模式,发现并不允许。

解决

所以,索性把之前的虚拟机关掉只保留当前使用的虚拟机,然后,奇迹就发生了。。。一切正常!
Job for network.service failed because the control process exited with error code问题

Job for network.service failed because the control process exited with error code问题