Home > Article > Operation and Maintenance > Centos7 cannot ping the gateway under the virtual machine
Problem:
After shutting down the Centos7.5 virtual machine, I found that I could not connect to the virtual machine using Xshell after restarting it the next day. After testing, I found that the virtual machine could not ping 192.168. .1.1. Unable to ping 192.168.1.118 (client) and www.baidu.com
Solution:
1. Close the network port ens33, and then reopen it
[root@ctos110 ~]# ifdown ens33 #关闭网络 [root@ctos110 ~]# ifup ens33 #启动网络
2. Reload the network card program
## Recommended related tutorials:The above is the detailed content of Centos7 cannot ping the gateway under the virtual machine. For more information, please follow other related articles on the PHP Chinese website!