出现错误提示 “connect:network is unreachable”
离谱的是可以ping通bing.com
解决方法:
ifconfig -a 查看是否有upv4地址 发现没有 但是有inet6 (所以能ping通bing.com吧)
然后使用命令
dhclient eth0
再次
ifconfig -a
发现出现inet 192.168.xxx.xx了
然后就能够访问百度了。
本文讲述了作者遇到的网络连接问题,通过ifconfig-a检查发现IPv4地址缺失,但IPv6可用,通过dhclient eth0命令重新获取IPv4,最终解决并能够访问百度的过程。
出现错误提示 “connect:network is unreachable”
离谱的是可以ping通bing.com
解决方法:
ifconfig -a 查看是否有upv4地址 发现没有 但是有inet6 (所以能ping通bing.com吧)
然后使用命令
dhclient eth0
再次
ifconfig -a
发现出现inet 192.168.xxx.xx了
然后就能够访问百度了。

被折叠的 条评论
为什么被折叠?