Home > Article > Operation and Maintenance > 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!