Quick and easy question -
I have 2 /29 subnets and have them on eth0 and eth1
Let’s say subnet 1 is
and subnet 2 is
When I have both subnets configured, and 2 static routes set up to 0.0.0.0/0, both with the default distance of 1, traffic breaks. I have translation addresses set up for internal networks, so, for example,
172.16.1.1/24 has a translation address of 10.10.10.3
192.168.1.1/24 has a translation address of 10.10.10.4
I don’t have anything behind the second subnet yet. (100.100.100.2/29)
Half the time traffic won’t leave the network.
I figured this was because it was trying to load balance, so I set the distance on the 10.10.10.2/29 default route to 1, and the 100.100.100.2/29 to 10
This fixed the problem of traffic not leaving the 10.10.10.2/29 subnet.
My worry is that once I get something trying to use one of the second subnets IPs as a translation address, it’s going to try to go out the shorter distance. Or, is vyos smart enough to route over the gateway that’s within the /29 subnet?