Linux里ping后出现ping: connect: Network is unreachable是什么原因,如何解决
主机可以上网吗
检查一下你的路由 还有网卡的网关是否正确
[root@server3 etc]# ping 10.84.209.1
PING 10.84.209.1 (10.84.209.1) 56(84) bytes of data.
64 bytes from 10.84.209.1: icmp_seq=1 ttl=64 time=1.34 ms
64 bytes from 10.84.209.1: icmp_seq=2 ttl=64 time=1.39 ms
64 bytes from 10.84.209.1: icmp_seq=3 ttl=64 time=1.34 ms
64 bytes from 10.84.209.1: icmp_seq=4 ttl=64 time=1.36 ms
64 bytes from 10.84.209.1: icmp_seq=5 ttl=64 time=1.35 ms
64 bytes from 10.84.209.1: icmp_seq=6 ttl=64 time=1.34 ms
64 bytes from 10.84.209.1: icmp_seq=7 ttl=64 time=1.34 ms
64 bytes from 10.84.209.1: icmp_seq=8 ttl=64 time=1.35 ms
64 bytes from 10.84.209.1: icmp_seq=9 ttl=64 time=1.38 ms
64 bytes from 10.84.209.1: icmp_seq=10 ttl=64 time=1.43 ms
^C
--- 10.84.209.1 ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 9573ms
rtt min/avg/max/mdev = 1.340/1.367/1.438/0.044 ms
ping网关和同网段内IP正常,这里导致重试了好多方法,就是没有想到网关设置问题。