Community discussions

MikroTik App
 
User avatar
honeyfairy
newbie
Topic Author
Posts: 35
Joined: Sat Nov 21, 2020 1:25 am
Contact:

Load balancing 75/25 - ECMP

Sun Apr 25, 2021 2:06 am

I have 2 paths to my core router
I want to have one path carry 75% of the traffic and the other path only 25%, because the one radio is stronger and has a higher throughput.
So, I'm supposing I just add the second gateway twice or thrice? (I seem to have read a wiki a few years ago about this)

here is my config:

ip route
add check-gateway=ping distance=1 gateway=10.1.1.1,10.100.2.1,10.100.2.1,10.100.2.1

But it does not seem to work
 
Zacharias
Forum Guru
Forum Guru
Posts: 3459
Joined: Tue Dec 12, 2017 12:58 am
Location: Greece

Re: Load balancing 75/25 - ECMP

Sun Apr 25, 2021 1:22 pm

From a quick search i found this article on the Wiki... https://wiki.mikrotik.com/wiki/ECMP_loa ... masquerade

According to this article:

You can use asymmetric bandwidth links also - for example one link is 2Mbps other 10Mbps. Just use this command to make load balancing 1:5

/ ip route 
add dst-address=0.0.0.0/0 gateway=10.111.0.1,10.112.0.1,10.112.0.1,10.112.0.1,10.112.0.1,10.112.0.1 check-gateway=ping 
However, if you read here: https://wiki.mikrotik.com/wiki/Manual:I ... .29_routes
Is mentioned that:

Because results of the forwarding decision are cached, packets with the same source address, destination address, source interface, routing mark and ToS are sent to the same gateway. This means that ECMP route does not perform pure per-connection balancing, but it can be used to load balance connections if at least one of previously mentioned parameters is different than previous connection. See interface bonding if you need to achieve per-packet load balancing.
 
User avatar
honeyfairy
newbie
Topic Author
Posts: 35
Joined: Sat Nov 21, 2020 1:25 am
Contact:

Re: Load balancing 75/25 - ECMP

Mon Apr 26, 2021 1:00 am

Thank you for this

Who is online

Users browsing this forum: No registered users and 14 guests