Home  >  Article  >  Operation and Maintenance  >  centos cannot ping the gateway

centos cannot ping the gateway

王林
王林Original
2020-04-04 09:42:176421browse

centos cannot ping the gateway

Problem description:

centOS cannot ping the gateway after powering off and restarting.

Solution:

1. Reload the network card program

[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 ]

2. Restart the network card

Close the network card interface first and then activate it

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

In this way, you can ping.

Recommended related tutorials: centos tutorial

The above is the detailed content of centos cannot ping the gateway. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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