How configure two WANs with same IP

Hi

I need configure failover for two WANs, I know this was already explained, in my case problem is, that both WANs have same IP (same static IP configuration).

This is backup solution from my ISP, currently I need switch utp cable manually when needed and I can’t connect both WANs at same time.

What I need:

  1. how configure mikrotik to ping something on WAN1 and when fails 2 times then switch to WAN2? With condition that all the time only one WAN port can be active (no pings from the other one, no dns requests etc). Is this even possible?

  2. When WAN2 is activated, I can not use WAN1 to ping if WAN1 is back online, because as I wrote only one WAN port can be up at same time.. So I also need something like switch back to WAN1 at scheduled time (in night) and let point 1) deal with it, if WAN1 is still down.

thank you

Try use a bonding method, like LACP or other(need config change for ISP side). Failover from only one ISP its a mistake, maybe. You can add a 3G modem for example for true failover. If you cant do a bonding, you need write a script for interface up/down on some event of connection lost.


Yours respectfully!

Yeah but I need that public IP for clients, so this backup wireless route from my ISP is actually good for me. And without building any additional infrastructure, the only thing I want/need is switching WAN ports on some small 5 port router.

Where is a good start to read and understand mikrotik’s scripting?