之前装好的虚拟机突然不能上网了,具体报错如下
systemctl network restart
Restarting network (via systemctl): Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.
1.解决方法一:
mac地址不对,修改mac地址
vi /etc/sysconfig/network-scripts/ifcfg-ens33
添加网卡信息即可
HWADDR=
2.解决方法二:
禁用NetworkManager
systemctl stop NetworkManager
systemctl disable NetworkManager
service network restart #重启服务系统就恢复正常啦