
解决方法如下:
1、检查路由
# route -n

如果你缺失第一个路由,是肯定无法ping通外网的。
(推荐教程:centos使用教程)
2、添加dns
# vim /etc/resolv.confnameserver 8.8.8.8
3、添加路由
# route add default gw 192.168.0.1
4、重启网卡
service network restart
相关视频教程推荐:linux视频教程

解决方法如下:
1、检查路由
# route -n

如果你缺失第一个路由,是肯定无法ping通外网的。
(推荐教程:centos使用教程)
2、添加dns
# vim /etc/resolv.confnameserver 8.8.8.8
3、添加路由
# route add default gw 192.168.0.1
4、重启网卡
service network restart
相关视频教程推荐:linux视频教程

2023-02-27
0万阅读

2023-02-22
4万阅读

2023-02-22
5万阅读

2023-02-12
5万阅读

2023-02-10
9万阅读

2023-02-10
3万阅读

2023-01-17
4万阅读

2023-01-16
4万阅读

2023-01-16
3万阅读

2023-01-14
6万阅读

2023-02-27
0万阅读

2023-02-22
4万阅读

2023-02-22
5万阅读

2023-02-12
5万阅读

2023-02-10
9万阅读

2023-02-10
3万阅读

2023-01-17
4万阅读

2023-01-16
4万阅读

2023-01-16
3万阅读

2023-01-14
6万阅读