> 其他 >
linux网络配置 connect:network is unreachable
刚装完机
已经设了/etc/sysconfig/network-scripts/ifcfg-eth0的ip
/etc/sysconfig/network的网关
/etc/resolt.conf的dns
并且service network restart 成功了
ping 网关,回路可以通
ping dns ——》connect:network is unreachable
有效路由为:
netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 lo
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth0
ping 本地主机,其他主机可以通
ping dns 不通
防火墙也关了
人气:382 ℃ 时间:2020-01-29 07:02:40
解答
很显然 你没有获得ip 你获得是个内部测试ip .
建议检查线路
网卡应该没有问题.
回答完毕
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版