I need to be able to access the 493 for management purposes (through winbox) through either public IP.
I setup a route with 2 gateways like this:
Code: Select all
/ip route add gateway=1.1.1.1,2.2.2.2 dst-address=9.9.9.9
2.2.2.2 - the gateway for WAN link 2
9.9.9.9 - our office IP - the IP I need to manage the device from
Note: Regular internet usage for customers behind that router is handled by other routes - not concerned about that here
When both WAN links are available, this route works great - I can connect to the device through winbox using either public IP.
When one of the WAN links is not available however, it seems to work about half the time.
Ex.
If I have WAN link 1 down, half the time I'll be able to access the device using the public IP of WAN link 2 using winbox, and a minute or two later I won't be able to.
Any reason it's so flaky? Do I need to use policy based routing to get the desired result, or is there a simple fix for the above configuration?
PS. I know it's fairly easy to configure a route to ping its gateway automatically and fail over to a secondary route over the second WAN link if it fails, but for various complicated reasons, that won't work in my case - I just need to know why the above isn't working.