WAN Load Balance issue

Hello,

I have the below wan load balance configuration

set load-balancing wan interface-health eth0 failure-count ‘3’
set load-balancing wan interface-health eth0 nexthop dhcp
set load-balancing wan interface-health eth0 success-count ‘1’
set load-balancing wan interface-health eth0 test 1 target ‘8.8.8.8’
set load-balancing wan interface-health eth0 test 1 type ‘ping’

set load-balancing wan interface-health eth1 failure-count ‘3’
set load-balancing wan interface-health eth1 nexthop dhcp
set load-balancing wan interface-health eth1 success-count ‘1’
set load-balancing wan interface-health eth1 test 1 target ‘8.8.8.8’
set load-balancing wan interface-health eth1 test 1 type ‘ping’

set load-balancing wan rule 10 failover
set load-balancing wan rule 10 inbound-interface ‘any’
set load-balancing wan rule 10 interface eth1

set load-balancing wan rule 20 failover
set load-balancing wan rule 20 inbound-interface ‘any’
set load-balancing wan rule 20 interface eth0

set load-balancing wan sticky-connections inbound

and my goal is to route all the traffic towards eth1, but if eth1 is down then route towards eth0.
But with my current config I see the traffic balances between eth1 and eth0 which is not what I want.

Any idea why?

set load-balancing wan rule 1002 failover                                                                                                                                                                                                                                                                                                                                                                                                   
set load-balancing wan rule 1002 inbound-interface 'any'                                                                                                                                                                                                                                                                                                                                                                                
set load-balancing wan rule 1002 interface eth1 weight '100'                                                                                                                                                                                                                                                                                                                                                                          
set load-balancing wan rule 1002 interface eht2 weight '99'       
set load-balancing wan rule 1002 protocol 'all'                                                                                                                                                                                                                                                                                                                                                                                             

here is an example of one of our loadbalance rules, you can specify multiple interfaces and give a different weight, may also be worth setting your static routes to also use different weights

set protocols static 0.0.0.0/0 via eht1-gateway weight 10
set protocols static 0.0.0.0/0 via eth0-gateway weight 20

Thanks for your reply, but the use of the weight is to split proportionally the traffic.
My concept is eth1 to be used for 100% of the traffic and if it is down then move to eth0.

We utilise the weight of the default route to put all the traffic down primary, then the load-balance wan failover script removes the dead link.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.