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

How to solve centos external network ping failure

王林
Release: 2020-04-04 09:34:26
Original
3993 people have browsed it

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
Copy after login

Stop firewall

systemctl stop firewalld.service
Copy after login

or

systemctl stop firewalld
Copy after login

Disable firewall startup

systemctl disable firewalld.service
Copy after login

or

systemctl disable firewalld
Copy after login

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!

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