Page 1 of 1

2 Internet links and 2 LANs with failover

Posted: Fri Jun 21, 2019 5:02 pm
by connectiva
Hello. First of all, I'm Brazilian, sorry for my poor English.
I need to configure a network with the following characteristics: 2 internet links (PPPoE) and two networks (LAN1: 192.168.10.0/24 and LAN2: 192.168.0.254/24).
Each network has its own Internet link (LAN1 uses LINK1 and LAN2 uses LINK2). This part I already did using package marking and specific routes for each package mark.

Now, I need to configure it so that when one Internet link down, the other link assumes both networks.
For example:
- LINK1 down -> LAN1 and LAN2 will use LINK2;
- LINK2 down -> LAN1 and LAN2 will use LINK1;
- link returned -> LAN1 resumes using LINK1 and LAN2 resumes using LINK2.

I thank you all.

Re: 2 Internet links and 2 LANs with failover

Posted: Fri Jun 21, 2019 6:31 pm
by jlp16400

Re: 2 Internet links and 2 LANs with failover

Posted: Fri Jun 21, 2019 10:00 pm
by connectiva
Thanks for answering.

In the example above, there is only one local network. In my case there are two. This is precisely my greatest difficulty.
I can not make an internet take over the two networks when the other one falls.
I think I'll need to do a script to monitor the two internet links.
I do this configuration on Linux, but on Mikrotik I do not know how to do it.

Can anybody help me?

Thank you.

Re: 2 Internet links and 2 LANs with failover  [SOLVED]

Posted: Fri Jun 21, 2019 10:12 pm
by sebastia
Hi

Within the existing routing table, as designated by the routing-mark, just add additonal default route going to the other isp, BUT with higher distance.
If first becomes invalid, second will be picked up.

Re: 2 Internet links and 2 LANs with failover

Posted: Sat Jun 22, 2019 2:32 pm
by connectiva
Hi sebastia.

It worked!
I was trying to complicate a simple problem to solve.

Thank you very much.