centos系统无法ping通网络

2025-10-25 04:49:11

1、解决方法:

因为DNS没有设置所以导致了ping外网ping不通。

将DNS添加到文件/etc/resolv.conf 中

search localdomain

nameserver 192.168.0.1

nameserver 61.139.2.69

centos系统无法ping通网络

2、重启网卡服务:

systemctl restart network.service

centos系统无法ping通网络

3、成功ping通了

centos系统无法ping通网络

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢