Page 1 of 1

Load Balancing + Failover 2 WAN help

Posted: Wed Mar 11, 2020 3:09 pm
by clueluzz
Hi,

I currently have my RB4011iGS+ setup to have load-balancing and failover working for my home based on this video from this Load balancing and failover with multiple gateways (2 WAN Links) YouTube video. It's working great. So when both are working, load-balancing works. When I pull WAN1, WAN2 takes over completely, and same thing happens when I do the opposite (pull WAN2, WAN1 takes over).

However, when the internet from the ISP drops and both cables are plugged in, the fail-over doesn't work. Is it because the Mikrotik can still see e.g. 192.168.6.1 (which is the IP given by the ISP router)? How do I solve this problem?

Any advice is appreciated. I've attached my exported config file.

Btw, I read the failover Mikrotik wiki and noticed at the bottom they had this:
/ip firewall filter
add action=reject chain=forward connection-mark=WAN2 out-interface=ether1 reject-with=icmp-network-unreachable
add action=reject chain=forward connection-mark=WAN1 out-interface=ether2 reject-with=icmp-network-unreachable

Would this help in my current config?

Re: Load Balancing + Failover 2 WAN help

Posted: Wed Mar 11, 2020 5:14 pm
by anav
I think you may be looking for recursive routing.
In other words, if your router cannot connect to a site via the ISP then it considers it not available and then switches..........
In other words one cannot rely upon the gateway as the be all and end all of determining ISP provision of internet traffic.

Re: Load Balancing + Failover 2 WAN help

Posted: Wed Mar 11, 2020 5:25 pm
by clueluzz
@anav, If “recursive routing” is the term for it, then yes. How do I program my router to do that on top of what I’ve already scripted?

Re: Load Balancing + Failover 2 WAN help  [SOLVED]

Posted: Wed Mar 11, 2020 5:42 pm
by pe1chl

Re: Load Balancing + Failover 2 WAN help

Posted: Thu Mar 12, 2020 1:25 am
by clueluzz
Thanks @pe1chl. This seems more like a failover only solution instead of load-balancing + failover. If I misunderstood, can I add this to my existing settings? From reading it, I think it’s only the last part of the script I have to add.