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 —
来源:学生作业帮助网 编辑:作业帮 时间:2024/09/06 14:22:57
![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 —](/uploads/image/z/11759152-40-2.jpg?t=linux%E7%BD%91%E7%BB%9C%E9%85%8D%E7%BD%AE+connect%3Anetwork+is+unreachable%E5%88%9A%E8%A3%85%E5%AE%8C%E6%9C%BA%E5%B7%B2%E7%BB%8F%E8%AE%BE%E4%BA%86%2Fetc%2Fsysconfig%2Fnetwork-scripts%2Fifcfg-eth0%E7%9A%84ip%2Fetc%2Fsysconfig%2Fnetwork%E7%9A%84%E7%BD%91%E5%85%B3%2Fetc%2Fresolt.conf%E7%9A%84dns%E5%B9%B6%E4%B8%94service+network+restart+%E6%88%90%E5%8A%9F%E4%BA%86ping+%E7%BD%91%E5%85%B3%2C%E5%9B%9E%E8%B7%AF%E5%8F%AF%E4%BB%A5%E9%80%9Aping+dns+%E2%80%94)
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 —
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 不通
防火墙也关了
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 —
很显然 你没有获得ip 你获得是个内部测试ip .
建议检查线路
网卡应该没有问题.
回答完毕