Home>Article>Operation and Maintenance> How to solve centos’ problem of pinging external network

How to solve centos’ problem of pinging external network

尚
Original
2020-03-20 15:14:19 2224browse

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

How to solve centos’ problem of pinging external network

Modify the configuration file, enter: vi ifcfg-enp0s3, add HWADDR line, DNS can also add

How to solve centos’ problem of pinging external network

## Recommended related video tutorials:

linux video tutorial

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!

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