centos6.2 虚拟机:ping 8.8.8.8 报错connect:network is unreachable

处理方法:
1./etc/resolv.conf配置正确nameserver
2.检查网卡IP配置正常
3.route -n 检查发现没有默认路由
增加路由后,修复问题:
修复前:

route add default gw 192.168.221.2 metric 100
修复后:

centos6.2 虚拟机:ping 8.8.8.8 报错connect:network is unreachable
处理方法:
1./etc/resolv.conf配置正确nameserver
2.检查网卡IP配置正常
3.route -n 检查发现没有默认路由
增加路由后,修复问题:
修复前:
route add default gw 192.168.221.2 metric 100
修复后:
本文标题:connect:network is unreachable
本文链接:https://www.haomeiwen.com/subject/azmppltx.html
网友评论