七叶笔记 » Linux » centos系统下无法ping通网关怎么办

centos系统下无法ping通网关怎么办

1、重新载入网卡程序

命令如下:

(推荐教程:centos教程)

 [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     #启动网络

相关视频教程推荐:linux视频教程

相关文章