How to solve the problem of Linux network failure

angryTom
Release: 2019-11-08 15:32:07
Original
7968 people have browsed it

How to solve the problem of Linux network failure

How to solve the problem of Linux network failure

(Network is unreachable) means the network is unreachable, first ping an external network Check whether the network segment is smooth, (if ping fails) check whether the firewall is blocking it, whether the gateway is correct, and then check the network card configuration file (Note: Wrong network card configuration sequence can also cause problems on the Linux network)!

Temporarily turn off the firewall

systemctl stop firewalld service iptables stop
Copy after login

Permanently turn off the firewall

systemctl disable firewalld chkconfig iptables off
Copy after login

Network card configuration:

How to solve the problem of Linux network failure

Network card restart:

>ifconfig eth0 up|down >service network restart|start|stop
Copy after login

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

2. The former option includes startup and shutdown and the latter has a restart option.

That is: if the former has a restart effect, it needs ifconfig eth0 down && ifconfig eth0 up [remote operation needs attention]

3. The latter service operation and the former/sbin command operation, Different permissions

In some cases, the service command will be granted to root, but ordinary users can still use ifconfig under certain circumstances.

Recommended:linux system tutorial

The above is the detailed content of How to solve the problem of Linux network failure. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!