Home  >  Article  >  Operation and Maintenance  >  Centos7 cannot ping the gateway under the virtual machine

Centos7 cannot ping the gateway under the virtual machine

王林
王林Original
2020-04-01 09:57:333525browse

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

Centos7 cannot ping the gateway under the virtual machine

## Recommended related tutorials:

centos tutorial

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn