route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.2.94.254 0.0.0.0 UG 0 0 0 bond0 10.2.94.0 0.0.0.0 255.255.255.0 U 0 0 0 bond0 169.254.0.0 0.0.0.0 255.255.0.0 U 1009 0 0 bond0 169.254.0.0 0.0.0.0 255.255.0.0 U 1010 0 0 bond1 172.16.58.0 0.0.0.0 255.255.255.0 U 0 0 0 docker0 172.18.239.103 0.0.0.0 255.255.255.255 UH 0 0 0 cali1b3b587d00a ...... 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
2.1.3 traceroute 验证下
可以看到跟上面猜想一样
1 2 3 4 5 6 7 8 9 10
traceroute -n -T -p 6380 10.2.1.94 traceroute to 10.2.33.94 (10.2.1.94), 30 hops max, 52 byte packets 1 10.2.12.8 6.269 ms 6.967 ms 5.402 ms 2 10.2.12.254 2.269 ms 1.967 ms 1.402 ms 3 10.9.10.2 1.458 ms 1.347 ms 1.215 ms 4 10.2.205.2 1.059 ms 0.888 ms 0.828 ms 5 10.2.205.54 1.175 ms 1.438 ms 1.197 ms 6 10.2.1.254 1.956 ms 1.836 ms 1.834 ms # 这里也有个问题,某些pod会出现找不到下一跳的问题 7 10.2.1.94 1.207 ms 1.212 ms 1.196 ms