Community discussions

MikroTik App
 
zoli
just joined
Topic Author
Posts: 8
Joined: Wed Apr 21, 2010 9:49 pm

UCLB with Mikrotik?

Wed Apr 21, 2010 9:55 pm

Hi folks,

I've got a little problem with my network, and I am wondering if someone of you can answer my question.

I got a "little" network and really need to set up load balancing.
I am wondering if Mikrotik supports any way of Unequal Cost Load Balancing?
Can't find anything about that in the MT-Wiki.

Thx for your support in advance,
greez
zoli
 
hedele
Member
Member
Posts: 338
Joined: Tue Feb 24, 2009 11:23 pm

Re: UCLB with Mikrotik?

Thu Apr 22, 2010 1:26 pm

Hi there,

from what I recall there are several ways of doing this, the easiest should be adding several default gateways multiple times.
eg:

ip rou add dst-address=0.0.0.0/0 gateway=10.0.0.1,10.0.0.1,10.0.0.2

That way you would balance traffic unevenly 2:1 on the two gateways, however it should not be used for situations where you are using NAT/masquerade for the traffic you want to route unevenly.

Another way involves using PCC (or whatever it is called) - please read the corresponding wiki entry :)
 
zoli
just joined
Topic Author
Posts: 8
Joined: Wed Apr 21, 2010 9:49 pm

Re: UCLB with Mikrotik?

Thu Apr 22, 2010 7:21 pm

wow - didn't notice that it could be that easy,
isn't exactly the "auto-distribution" I wanted to have, but way better than my setup atm.
thx for your fast answer - I am going to check that out and let you know if it worked or not.
 
hedele
Member
Member
Posts: 338
Joined: Tue Feb 24, 2009 11:23 pm

Re: UCLB with Mikrotik?

Fri Apr 23, 2010 11:01 am

If you are worried that one of those gateways may fail you can enable the gateway check function :)
As an alternative you could set up dynamic routing (eg. OSPF) and learn the multiple default routes that way.
 
zoli
just joined
Topic Author
Posts: 8
Joined: Wed Apr 21, 2010 9:49 pm

Re: UCLB with Mikrotik?

Sat Apr 24, 2010 9:36 am

i've set up ospf - and it just works like a charm - but ospf is only doing equal cost load balancing, and even that only works if the costs of the routes are the same. the network consists of about 15 backbone wireless connections, so it is impossible to get the same costs and the same network speed for each route.

i will now set up my network with n-stream and 5ghz turbo to get better data rates and will close the "circuit" with ospf to make sure there is a backup.