Policy based routing rules not respected
My local VM has the IP address 10.2.X.X/24, and I have the following rule/table set up.
root@localVM:/tmp# ip rule show all
0: from all lookup local
32765: from all to 192.168.10.0/24 lookup 200
32766: from all lookup main
32767: from all lookup default
root@localVM:/tmp# ip route show table 200
default via 10.1.X.X dev eth0 onlink When I ping 192.168.10.x, I get the following:
root@localVM:/tmp# ping 192.168.10.2
PING 192.168.10.2 (192.168.10.2) 56(84) bytes of data.
From 10.**2**.X.X icmp_seq=1 Packet filteredWhy does it appear that the the pings are not going to the 10.1.x.x gateway, and are instead being sent to the 10.2.x.x gateway?
For the record I can ping 10.1.x.x no problem, and 10.2.x.x as well.
Reset to default