Community discussions

MikroTik App
 
sajawal
just joined
Topic Author
Posts: 4
Joined: Thu Apr 28, 2022 8:15 am

3 wan load balance and 4th as failover in rb750gr3

Thu Apr 28, 2022 9:46 am

i have problem that when internet goes down in 1st 3 wan comming from same isp and loadbalanced 4thwan which is in backup list does not activate as gateway is reachable is there any way when there is no internet wan become unreachable so that 4th backup wan can become active
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 18959
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: 3 wan load balance and 4th as failover in rb750gr3

Thu Apr 28, 2022 3:48 pm

Hi Sajawal.

Without seeing the config its hard to say.
Have you tried putting the fourth WAN IP route at a higher distance than the other three created tables/routes.
In that way when the first ISP which gives you 3 wans, is not available the router will find the backup!

Route 1, Default route
Route 1 table=wan1
Route 2 Default route
Route 2, table=wan2
Route 3 Default route
Route 3, table=wan3
Route 4 distance=5
 
sajawal
just joined
Topic Author
Posts: 4
Joined: Thu Apr 28, 2022 8:15 am

Re: 3 wan load balance and 4th as failover in rb750gr3

Fri Apr 29, 2022 8:21 am

thanks sir i have already tries increasing distace in route . isp1 isp2 isp3 are in same onu isp1 to mikrotik with ip 192.168.15.1 isp 2 wan in same one to d link router so that i can get ip 192.16816.1 isp 3 also direct to other t0---d link router so that i can get ip 192..168.17.1 than these 3 ip goes to mikrotik where they; are loadifbalanced so that i can get collective bandwidth .also have 4th wan which i want to use as backup if bandwidth goes down or not availble from isp as router are swithced on gateway is reachable and bandwidth does not activate
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 18959
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: 3 wan load balance and 4th as failover in rb750gr3

Fri Apr 29, 2022 4:42 pm

Well there are lots of ways to do this.................

Thus the simplest setup for you would be
dst-address=0.0.0.0/0 gwy=wan1 route-mark=Wan1 (or table=Wan1 ver7)
dst-address=0.0.0.0/0 gwy=wan2 route-mark=Wan2 (or table=Wan2 ver7)
dst-address=0.0.0.0/0 gwy=wan3 route-mark=Wan3 (or table=Wan3 ver7)
dst-address=0.0.0.0/0 gwy=wan4 distance=5

In this setup, the only default route is wan5 with higher distance.
This means that whenver Wan1 or Wan2 or Wan3 go down the traffic load will pass to the WAn4..

PCC keeps allocating new sessions to WAN1, WAN2 and WAN3 regardless - it has no knowledge of routing......
Thus if WANX goes down, WAN4 takes over its share of work and so forth..........

The reason being that if the router cannot find an active route for WanX, it will go to table main to find a viable route and will discover Wan4.

Its probably best to provide your config for further analysis.
/export hide-sensitive file=anynameyouwish.

just ensure your create fake numbers for public IP or public Gateway IPs, any private IPs dont matter .
Also if you do change the public iPs be consistent so that it makes sense in terms of the config,
 
sajawal
just joined
Topic Author
Posts: 4
Joined: Thu Apr 28, 2022 8:15 am

Re: 3 wan load balance and 4th as failover in rb750gr3

Fri Apr 29, 2022 8:52 pm

Thanku sir just i want is netwatch script when link is down it should disable route when up it should enable it
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 18959
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: 3 wan load balance and 4th as failover in rb750gr3

Fri Apr 29, 2022 10:07 pm

I dont understand.
You dont need a script in the above example?

What do you want the script to do? Purpose??

When the link is down, it is not available and will not be used, hence in its own way its already disabled.
YOu need to provide more guidance............

Who is online

Users browsing this forum: anav, Andrey05, ItchyAnkle, menyarito and 83 guests