Home > Article > Operation and Maintenance > How to solve centos’ problem of pinging external network
centosping 192.168.0.23, I can ping it successfully, but I can’t ping www.baidu.com.
Recommended tutorial: centos usage tutorial
Solution:
You can modify the network configuration file and add the mac address to the configuration file.
Enter: cd /etc/sysconfig/network-scripts, enter the network-scripts folder, view the available gateways
Modify the configuration file, enter: vi ifcfg-enp0s3, add HWADDR line, DNS can also add
## Recommended related video tutorials:The above is the detailed content of How to solve centos’ problem of pinging external network. For more information, please follow other related articles on the PHP Chinese website!