Hey Chaps,
I’m sure I’m just having a brain fart and missing something simple but I’ve had a small issue with some gateway routing and I’m hoping someone can help.
Basically I have three WAN ranges which I route to various Vlans through one RB using src-nat each range has its own gateway but for some reason they currently routing through one of the gateways.
I tried creating an address list which assigns a routing mark and giving the routes different routing marks but this just left me with nothing routing out! can anyone point me in the right direction?
You could add a to-address with action=src-nat and a out-interface to be 150% sure it’s getting out of your router with the correct address (and hence gateway)
Since you have two default routes with the same distance, you router will catch ANY of them.
Unfortunately, I don’t have a solution for this in my pocket.
I guess you should somehow work with routing marks or mangle to ensure that traffic originating from either subnet is routed to its corresponding gateway.
But I’m not (yet) an expert in this , sorry.
At the weekend I spent some more thoughts on this .
The only problem is that you have two default routes with the same distance - now you’re messed with your router catching any of them.
So we need to seperate these default routes.
I’d say this would be a perfect job for a METArouter - and its setup should be quite simple as you have seperated the LAN sides perfectly with your VLANs and subnets.
Just add one of the Tennant IPs and gateways to the meta router and strip it from your “real” router.
Add a bridge to ether 1 (remember to now assign the IP address to the bridge and not to ether1) and attach the METArouter’s WAN side to that bridge.
Forward the appropriate VLAN to a LAN port of the METArouter and off you go…
Thanks for the idea but I think that would just be over complicating my setup!
I have found a way to do the routing but it is a tad tedious as I need to add a mangle rule for every network and would still like it to be automated somehow!