2 Internet links and 2 LANs with failover

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.

Hi,

You can see here an example :wink:

https://systemzone.net/mikrotik-dual-wan-load-balancing-with-failover-using-pcc/

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.

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.

Hi sebastia.

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

Thank you very much.