Failover with two ISPs.

Hi,
I want to configure failover in mikrotik. Currently i am using Mikrotik 1100AH. I have two public links …ISP1 and ISP2. I have two private networks …192.168.1.0/24 and 192.168.2.0/24. I want 192.168.1.0/24 to use internet from ISP1 and if ISP1 fails, then ISP2 will take over. Likewise 192.168.2.0/24 will use ISP2 for internet , and if ISP2 fails, then ISP1 will take over. How can i accomplish this in mikrotik ?

Please suggest .

Waiting for your feedback…


Regards,
Bobby

I’m not sure I see the point?

[Perhaps you’ve thought this over, but it seems like you’re asking for a quite complicated setup without good reason.]

Why not load-balance both LAN networks evenly [or unevenly if needed] over the two WAN links.

When one of the WAN links dies, then change the load-balance to use one until the other comes back up.

So, is there some reason you want LAN1 → WAN2 and LAN2 → WAN1 until WAN1 or WAN2 dies, in which case, both LAN1/2 go over the same WAN link.
??


I’ll pre-answer answer based on load-balance being the answer.

See the Wiki article about PCC.

Then you’ll need scripts to mod the PCC configuration, unless the interface actually goes down [but in my experience it’s rare for the Ethernet connection to actually fail. More likely you’ll have 40% packet loss and the link is “practically” unusable.]

So, the script would look for situations that should have that WAN link considered down, and dynamically change the PCC rules to put the weight only on one WAN leg.

[I have a WAN1 → WAN2 fail-over script that would yield some pieces of code that might be helpful. But it doesn’t handle mod-ing PCC rules. (In my case, my WAN legs are so different, that I only want fail-over. The primary WAN is vastly larger than the secondary, so I don’t want to load-balance - but I do want fail-over.)]

HTH

-Greg

Maybe try use mangle, routing mark, netwatch to monitor ISP Gatteways and script code to change route if one ISP gatteway is down …
I use this for one primary link and one backup link.. if primary link is down mikrotik use backup link ..

Thanks for the suggestion… i will try to implement both and if it succeed, i will post the commands.


Regards,
Bobby