Page 1 of 1

2 ISP WAN for failover auto or manual

Posted: Tue Apr 19, 2022 9:05 am
by uberwebguru
I am considering having 2 ISP so i can failover if one ISP is out
Where can i find documentation on this
It is fine if failover will be manual i dont mind
I actually prefer manual and second ISP will be like a secondary and will only be used if and only if first ISP is down

Keep in mind since i have static ip from each provider
how will that work? does this mean i have to get same cidr block size from both?

Where do i start with this setup?
Thanks

Re: 2 ISP WAN for failover auto or manual

Posted: Tue Apr 19, 2022 9:15 am
by erlinden
You might want to start with the documentation:
https://help.mikrotik.com/docs/pages/vi ... d=26476608

Re: 2 ISP WAN for failover auto or manual

Posted: Tue Apr 19, 2022 4:01 pm
by anav
Disagree with erlinden, that reference is horrible because it uses mangling which is NOT required for most situations.
I dont understand, he is usually not that cruel? ;-)

This is a good reference to read for background understanding - https://help.mikrotik.com/docs/display/ ... Are+Routed

This is more practically oriented.
Section I. here - viewtopic.php?t=182373

Re: 2 ISP WAN for failover auto or manual

Posted: Wed Apr 20, 2022 4:26 pm
by aesmith
A simple way to do manual failover would be to create two routes to 0.0.0.0/0, one via your preferred ISP with distance=1 and one via your backup ISP with distance=2. To manually failover, disable the first route using Winbox or whatever you prefer.

I have a dual Internet failover with LTE as the main Internet, and ADSL as backup. Very occasionally the LTE is a little flakey but not enough to failover, in those cases I do as suggested above, disable the route via LTE until it behaves itself again.

Re: 2 ISP WAN for failover auto or manual

Posted: Fri Apr 22, 2022 2:26 am
by uberwebguru
I think i have a good idea about this
I think it is better to have 2x routers CCR2004

and then have the second ISP WAN on the 2nd router and prepare the config so it is ready for things to switch over.
So when there is issue with ISP #1, i just unplug switch and plug switch to CCR router #2
and when i want to switch back just unplug switch from ISDP #2 back to ISP #1

I think this is a better approach. Idea is to setup all static ips and everything.
So the switch will be simple and straight forward

Anyone tries this setup?

Re: 2 ISP WAN for failover auto or manual

Posted: Tue Apr 26, 2022 1:53 pm
by uberwebguru
So guys i plan on getting 2 routers
Connect each to the 2 different ISPs
So CCR 1 will connect to ISP router 1 AND CCR 2 will connect to ISP router 2


Now is there a way i can route traffic between the routers using local network?
So i dont have to go via internet when using VPN tunnel for example?

Looking for a simple setup, nothing too complex

thanks

Re: 2 ISP WAN for failover auto or manual

Posted: Sat Apr 30, 2022 2:43 pm
by uberwebguru
A simple way to do manual failover would be to create two routes to 0.0.0.0/0, one via your preferred ISP with distance=1 and one via your backup ISP with distance=2. To manually failover, disable the first route using Winbox or whatever you prefer.

I have a dual Internet failover with LTE as the main Internet, and ADSL as backup. Very occasionally the LTE is a little flakey but not enough to failover, in those cases I do as suggested above, disable the route via LTE until it behaves itself again.
Do you have static IP setup?
That is the issue for me, with static IPs, not so easy

Re: 2 ISP WAN for failover auto or manual

Posted: Sat Apr 30, 2022 2:50 pm
by rextended
I think i have a good idea about this
I think it is better to have 2x routers CCR2004
[...]
You are drunk? :lol:
With same VPN you can decide from what one connection you remotely connect the device (just use the reachable Public IP address)
(with automatic scripting or failover the included DDNS on routerboard can set the rigth IP!!!...)
and (ignoring automatic scripting as your wish) maually launch script for invert active route (invert distance)
or manually disable/enable the routes

Re: 2 ISP WAN for failover auto or manual

Posted: Sat Apr 30, 2022 2:57 pm
by rextended
That is the issue for me, with static IPs, not so easy
Stati IP?
More easy....
On example, gateway1 = 2.3.4.5, gateway2 = 6.7.8.9
This is for v6, for v7 is similar.
/ip dns
set servers=1.1.1.1,8.8.8.8

/ip route
add comment="A - 1.1.1.1 must be reachable only from ISP1" distance=1 dst-address=1.1.1.1/32 gateway=2.3.4.5 scope=10
add comment="B - Recursive Routing, check ping 1.1.1.1 instead of ISP IP" distance=10 gateway=1.1.1.1 check-gateway=ping
add comment="C - ISP2 is alternative Gateway" distance=20 gateway=6.7.8.9

Re: 2 ISP WAN for failover auto or manual

Posted: Sun May 01, 2022 9:00 am
by uberwebguru
cool thanks..will have a look a this shortly