centos断电重启后无法ping通网关。
解决方法:
1、重新载入网卡程序
[root@localhost ~]# /etc/init.d/network reloadshutting 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、重启网卡
网卡接口先关闭后激活
[root@localhost ~]# ifdown eth0 #关闭网络[root@localhost ~]# ifup eth0 #启动网络
这样就可以ping通了 。
相关教程推荐:centos教程
以上就是centos无法ping通网关的详细内容。
