为什么在 CentOS 上,同一子网内另一个 IP 可以访问,但是网络却无法访问?

为什么在 CentOS 上,同一子网内另一个 IP 可以访问,但是网络却无法访问?

为什么网络不可达,而同一子网内的另一个 IP 可达?

网络可达

[root@vcn03 ~]# ping -I eth0 -c 1 10.52.96.48
PING 10.52.96.48 (10.52.96.48) from 10.52.111.3 eth0: 56(84) bytes of data.
64 bytes from 10.52.96.48: icmp_seq=1 ttl=64 time=0.248 ms

--- 10.52.96.48 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.248/0.248/0.248/0.000 ms
[root@vcn03 ~]#

网络无法连接

[root@vcn03 ~]# ping -I eth0 -c 1 10.52.96.45
PING 10.52.96.45 (10.52.96.45) from 10.52.111.3 eth0: 56(84) bytes of data.

--- 10.52.96.45 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms

[root@vcn03 ~]#

可达的机器 [10.52.96.48] 的路由表

$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.10.92.0      0.0.0.0         255.255.255.0   U     0      0        0 em4
10.52.96.0      0.0.0.0         255.255.240.0   U     0      0        0 em1
169.254.0.0     0.0.0.0         255.255.0.0     U     1002   0        0 em1
169.254.0.0     0.0.0.0         255.255.0.0     U     1005   0        0 em4
0.0.0.0         10.52.96.1      0.0.0.0         UG    0      0        0 em1
$ 

无法访问的机器 [10.52.96.45] 的路由表

$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
172.16.10.0     0.0.0.0         255.255.255.0   U     0      0        0 em2
10.52.96.0      0.0.0.0         255.255.248.0   U     0      0        0 bond0
10.52.96.0      0.0.0.0         255.255.248.0   U     0      0        0 em4
169.254.0.0     0.0.0.0         255.255.0.0     U     1003   0        0 em2
169.254.0.0     0.0.0.0         255.255.0.0     U     1005   0        0 em4
169.254.0.0     0.0.0.0         255.255.0.0     U     1006   0        0 bond0
0.0.0.0         10.52.96.1      0.0.0.0         UG    0      0        0 bond0
$

相关内容