作业帮 > 综合 > 作业

linux网络配置 connect:network is unreachable

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/18 00:10:45
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 不通
防火墙也关了
很显然 你没有获得ip 你获得是个内部测试ip .
建议检查线路
网卡应该没有问题.
回答完毕