logol

问题:在执行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  永不过时  阅读(42445)  评论(2编辑  收藏  举报

分类:

技术点:

相关文章:

  • 2021-09-04
  • 2022-12-23
  • 2021-10-06
  • 2021-04-26
  • 2021-07-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-07
  • 2022-02-07
  • 2022-02-07
  • 2022-02-07
  • 2022-02-07
相关资源
相似解决方案