Friday, April 10, 2020

Static Routing Weirdness on Linux

Using Cent7. I have two routes to the same remote subnet 192.168.0.0/24. "ip route get" says one thing but clearly it is not what's actually happening. I've already done an "ip route flush cache". Any ideas why it's not doing what ip route get is saying it should be doing?

# route -n Destination Gateway Genmask Flags Metric Ref Use Iface ... 192.168.0.0 192.168.100.3 255.255.255.0 UG 0 0 0 tun8 192.168.0.0 192.168.100.2 255.255.255.0 UG 10 0 0 tun8 # ip route get 192.168.0.1 192.168.0.1 via 192.168.100.3 dev tun8 src 192.168.100.4 cache # ping -t 1 -c 1 192.168.0.1 PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data. From 192.168.100.2 icmp_seq=1 Time to live exceeded 


No comments:

Post a Comment