复制后的虚拟机linux上ping: baidu.com:Name orservice not known

如果关机挂起后出现 ping 不通baidu.com

ping: baidu.com:Name orservice not known

1.执行 systemctl restart network.service出现以下错误:

Restarting network (via systemctl):  Job for network.service failed. See 'systemctl status network.service' and 'journalctl -xn' for details.

解决:

先关闭网络

systemctl stop NetworkManager

然后重启网络:

systemctl start network.service

你可能感兴趣的:(linux)