问题:在执行ping www.baidu.com时无法ping通

分析:可能是DNS配置文件/etc/resolv.conf的问题

1、添加DNS配置信息:

nameserver 202.96.134.33

2、然后执行systemctl restart network 

3、然后在ping www.baidu.com 

PING www.wshifen.com (103.235.46.39) 56(84) bytes of data.
64 bytes from 103.235.46.39 (103.235.46.39): icmp_seq=1 ttl=46 time=209 ms
64 bytes from 103.235.46.39 (103.235.46.39): icmp_seq=2 ttl=46 time=210 ms

说明已经可以上网了!!!!

posted on 2019-12-18 20:20  永不过时  阅读(43952)  评论(2)    收藏  举报