Community discussions

MikroTik App
 
clueluzz
newbie
Topic Author
Posts: 34
Joined: Sun Feb 23, 2020 5:47 pm
Location: Jakarta, Indonesia
Contact:

Load Balancing + Failover 2 WAN help

Wed Mar 11, 2020 3:09 pm

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?
You do not have the required permissions to view the files attached to this post.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 22207
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Load Balancing + Failover 2 WAN help

Wed Mar 11, 2020 5:14 pm

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.
 
clueluzz
newbie
Topic Author
Posts: 34
Joined: Sun Feb 23, 2020 5:47 pm
Location: Jakarta, Indonesia
Contact:

Re: Load Balancing + Failover 2 WAN help

Wed Mar 11, 2020 5:25 pm

@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?
 
pe1chl
Forum Guru
Forum Guru
Posts: 10544
Joined: Mon Jun 08, 2015 12:09 pm

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

Wed Mar 11, 2020 5:42 pm

 
clueluzz
newbie
Topic Author
Posts: 34
Joined: Sun Feb 23, 2020 5:47 pm
Location: Jakarta, Indonesia
Contact:

Re: Load Balancing + Failover 2 WAN help

Thu Mar 12, 2020 1:25 am

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.