Problem: The first two days Centos7.5 virtual machine, the next day after the restart using Xshell found unable to connect the virtual machine, detected that the virtual machines can not ping 192.168.1.1, Unable to ping through 192.168.1.118 (client) and www.baidu.com
Workaround:
These two days through the test found Systemctl restart network invalid, reload the NIC/etc/init.d/network Reload failed
After a search attempt to find 45021963, this situation is similar to mine, and then try to fix
The first step, reload the NIC program, the result failed
Second, turn off the network Port ENS33, and then turn it back on
[email protected] ~]# ifdown ens33 #关闭网络
Device ' Ens33 ' successfully disconnected.
[Email protected] ~]# ifup ens33 #启动网络
Connection successfully activated (D-bus active path:/ORG/FREEDESKTOP/NETWORKMANAGER/ACTIVECONNECTION/2)
Then reload the NIC program and still fail
However, the Ping gateway and the external network can ping through the
Ping the Gateway:
Ping client:
Ping www.baidu.com
Reference Link: 45021963
Centos7.5 virtual Machine cannot ping gateway, extranet IP Address