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

Centos7 cannot ping the gateway under the virtual machine

王林
Release: 2020-04-01 09:57:33
Original
3570 people have browsed it

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  #启动网络
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template