Home > Operation and Maintenance > CentOS > What should I do if I cannot ping the gateway under centos system?

What should I do if I cannot ping the gateway under centos system?

王林
Release: 2020-03-27 11:05:16
Original
6498 people have browsed it

What should I do if I cannot ping the gateway under centos system?

1. Reload the network card program

The command is as follows:

(Recommended tutorial: centos tutorial)

 [root@localhost ~]# /etc/init.d/network reload
Shutting down interface eth1:                             [ OK ]
Shutting down loopback interface:                         [ OK ]
Bringing up loopback interface:                           [ OK ]
Bringing up interface eth0:                               [ OK ]
Bringing up interface eth1:                               [ OK ]
Copy after login

2. Restart the network card

Close the network card interface first and then activate it, as follows:

[root@localhost ~]# ifdown eth0   #关闭网络
[root@localhost ~]# ifup eth0     #启动网络
Copy after login

Recommended related video tutorials:linux video tutorial

The above is the detailed content of What should I do if I cannot ping the gateway under centos system?. 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template