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

How to solve the problem of linux network failure

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

Share

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

How to solve the problem of linux network failure? I believe that many inexperienced people are at a loss about this, so this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

(Network is unreachable) indicates that the network is unreachable. First ping a public network segment to check whether it is unblocked, (for example, ping is blocked) to check whether the firewall is blocked and the gateway is correct, and then check the network card configuration file (Note: the network card configuration order is incorrect, which can also lead to linux network problems)!

Temporarily turn off the firewall

Systemctl stop firewalldservice iptables stop

Permanently turn off the firewall

Systemctl disable firewalldchkconfig iptables off

Nic configuration:

Reboot the Nic:

> ifconfig eth0 up | down > service network restart | start | stop

1. The former specifies the corresponding network card and the latter is all network cards.

2. The former has startup and shutdown options, and the latter has restart options.

That is, if the former wants to have restart effect, it needs ifconfig eth0 down & & ifconfig eth0 up [remote operation should be paid attention to]

3. The operation of the latter service is different from the command operation under the former / sbin.

In some cases, the service command is received for use by root, while the average user can still use ifconfig under certain circumstances.

After reading the above, have you mastered the solution to the problem that the linux network is not connected? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

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