Get the App
SLTechnology News&Howtos  ›  Servers  › 

The solution of being unable to communicate with ping in linux external Network

Shulou Source: shulou.com Published: 2022-06-03 06:41:46 09月21日 Update

How to solve the problem that linux can't communicate with ping in external network? I believe there are many people do not understand, today, in order to let you know more about the linux external network can not ping solution, so give you a summary of the following content, let's look down.

The solution is as follows:

Method 1:

Modify resolv.conf

Vi / etc/resolv.conf

Add the following:

Nameserver 114.114.114.114 (DNS of Telecom) nameserver 8.8.8.8 (DNS of googel)

You can achieve ping access to the extranet.

Method 2:

Ip an or ifconfig check the network card used, then go to / etc/sysconfig/network-scripts and find the corresponding network card to modify.

Vi / etc/sysconfig/network-scripts/ifcfg-ethx

Restart the network card

Service network restart

On the linux external network can not ping solutions to share here, I hope that the above content can have a certain reference value, you can learn to apply. If you like this article, you might as well share it for more people to see.

Tags: Method content network card put what you have learned into practice value article more telecom see reference Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple OPPO Reno Shulou Technology MySQL Shulou Tech Info