Community discussions

MikroTik App
 
uberwebguru
Member Candidate
Member Candidate
Topic Author
Posts: 172
Joined: Sat Feb 26, 2022 12:05 pm

2 ISP WAN for failover auto or manual

Tue Apr 19, 2022 9:05 am

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
Last edited by uberwebguru on Tue Apr 19, 2022 9:24 am, edited 1 time in total.
 
erlinden
Forum Guru
Forum Guru
Posts: 1900
Joined: Wed Jun 12, 2013 1:59 pm
Location: Netherlands

Re: 2 ISP WAN for failover auto or manual

Tue Apr 19, 2022 9:15 am

You might want to start with the documentation:
https://help.mikrotik.com/docs/pages/vi ... d=26476608
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 18958
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: 2 ISP WAN for failover auto or manual

Tue Apr 19, 2022 4:01 pm

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
 
aesmith
Member Candidate
Member Candidate
Posts: 264
Joined: Wed Mar 27, 2019 6:43 pm

Re: 2 ISP WAN for failover auto or manual

Wed Apr 20, 2022 4:26 pm

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.
 
uberwebguru
Member Candidate
Member Candidate
Topic Author
Posts: 172
Joined: Sat Feb 26, 2022 12:05 pm

Re: 2 ISP WAN for failover auto or manual

Fri Apr 22, 2022 2:26 am

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?
 
uberwebguru
Member Candidate
Member Candidate
Topic Author
Posts: 172
Joined: Sat Feb 26, 2022 12:05 pm

Re: 2 ISP WAN for failover auto or manual

Tue Apr 26, 2022 1:53 pm

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
 
uberwebguru
Member Candidate
Member Candidate
Topic Author
Posts: 172
Joined: Sat Feb 26, 2022 12:05 pm

Re: 2 ISP WAN for failover auto or manual

Sat Apr 30, 2022 2:43 pm

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
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: 2 ISP WAN for failover auto or manual

Sat Apr 30, 2022 2:50 pm

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
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: 2 ISP WAN for failover auto or manual

Sat Apr 30, 2022 2:57 pm

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
 
uberwebguru
Member Candidate
Member Candidate
Topic Author
Posts: 172
Joined: Sat Feb 26, 2022 12:05 pm

Re: 2 ISP WAN for failover auto or manual

Sun May 01, 2022 9:00 am

cool thanks..will have a look a this shortly

Who is online

Users browsing this forum: BrianTax, coreshock, Google [Bot], johnson73 and 67 guests