Home  >  Article  >  Operation and Maintenance  >  How to solve centos external network ping failure

How to solve centos external network ping failure

王林
王林Original
2020-04-04 09:34:263968browse

How to solve centos external network ping failure

Problem:

I configured a CentOS virtual machine and found that ping could not reach the external network, but I could ping the host and gateway.

Solution:

You can try turning off the firewall.

View the default firewall status (notrunning is displayed after it is turned off, running is displayed after it is turned on)

firewall-cmd --state

Stop firewall

systemctl stop firewalld.service

or

systemctl stop firewalld

Disable firewall startup

systemctl disable firewalld.service

or

systemctl disable firewalld

Related tutorial recommendations: centos tutorial

The above is the detailed content of How to solve centos external network ping failure. 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