Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report