LOAD BALANCING WITH 3 GW AND FAILOVER

Hello Everybody

I tried to make load balancing with 3 gateways and failover, i got mix up in ip route, how would be the correct configuration?

this is with 2
/ ip route
add dst-address=0.0.0.0/0 gateway=10.111.0.1 scope=255 target-scope=10 routing-mark=odd check-gateway=ping
add dst-address=0.0.0.0/0 gateway=10.112.0.1 scope=255 target-scope=10 routing-mark=even check-gateway=ping
add dst-address=0.0.0.0/0 gateway=10.112.0.1 scope=255 target-scope=10
add dst-address=0.0.0.0/0 gateway=10.111.0.1 scope=255 target-scope=10 distance=2

I did with 2 gateways but with 3 I Can’t
Thanks ¡¡¡¡¡

HElloo

this post has 91 views but anybody aswer it.

:S

help¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
Normis Please.

Post your Mangle configurations

Hello
this is the conf.

Flags: X - disabled, I - invalid, D - dynamic
0 chain=prerouting in-interface=wlan1 connection-state=new nth=2,4,0
action=mark-connection new-connection-mark=PARCONN passthrough=yes

1 chain=prerouting in-interface=wlan1 connection-mark=PARCONN
action=mark-routing new-routing-mark=PAR passthrough=no

2 chain=prerouting in-interface=wlan1 connection-state=new nth=2,4,1
action=mark-connection new-connection-mark=INPARCONN passthrough=yes

3 chain=prerouting in-interface=wlan1 connection-mark=INPARCONN
action=mark-routing new-routing-mark=INPAR passthrough=no

4 chain=prerouting in-interface=wlan1 connection-state=new nth=2,4,2
action=mark-connection new-connection-mark=NULOCONN passthrough=yes

5 chain=prerouting in-interface=wlan1 connection-mark=NULOCONN
action=mark-routing new-routing-mark=NULO passthrough=no

Thanks

I can buy you a beer… I am little disappointed about mikrotik… it seems that it is working good for wireless and not as multi wan router

waiting for a new OS

Maybe as a suggestion this wiki article is a good start

http://wiki.mikrotik.com/wiki/Load_Balancing_over_Multiple_Gateways

This thread may give you some hints:

http://forum.mikrotik.com/t/ecmp/27611/1

Look at this how-to http://wiki.mikrotik.com/wiki/NTH_load_balancing_with_masquerade

all you need to do as add a third mark and change your nth to 3,1 3,2 3,3 and then add in 3rd route.

ECMP is another way to load balance but currently there are a few bugs being worked out on it?

Wait for 3.24 when you will be able to use new Firewall Matcher: PCC :slight_smile:

http://forum.mikrotik.com/t/new-firewall-matcher-pcc/28077/1