(EMERGENCY) ECMP LOAD BALANCE

please help. for my final project in college i load balance 2 ISP using ecmp but the traffic only goes to ISP1, not both of the ISP. does ecmp work this way? shouldnt the packet divided to the ISP1 and ISP2? i dont know if i do the load balance in the right way and if i dont, i dont know where my mistake is. anybody please help because the due for my final project is getting closer :frowning:

thank you very much

ECMP is not doing per packet balancing. It is per connection load balancer. So you need at least two connections from different source addresses or to different destination addresses.

thank you for your response. i have tried to make some connections to some sites but it still goes through the same ISP. am i doing it wrong?

Then we need to see what configuration you have done on the router. Run /export command and paste output here.

here it is

jun/16/2017 14:44:02 by RouterOS 5.14

software id = H44P-48HF

/ip pool
add name=dhcp_pool1 ranges=192.168.1.2-192.168.1.254
/ip dhcp-server
add address-pool=dhcp_pool1 disabled=no interface=ether5 name=dhcp1
/ip address
add address=192.168.99.1/24 interface=ether2
add address=192.168.88.1/24 interface=ether1
/ip dhcp-client
add disabled=no interface=ether3
add disabled=no interface=ether4
/ip dhcp-server network
add address=192.168.1.0/24 dns-server=8.8.8.8 gateway=192.168.1.1
/ip firewall mangle
add action=mark-connection chain=input in-interface=ether3
new-connection-mark=ISP1
add action=mark-connection chain=input in-interface=ether4
new-connection-mark=ISP2
add action=mark-routing chain=output connection-mark=ISP1 new-routing-mark=
ke-isp-1
add action=mark-routing chain=output connection-mark=ISP2 new-routing-mark=
ke-isp-2
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether3
add action=masquerade chain=srcnat out-interface=ether4
/ip route
add distance=1 gateway=192.168.100.1 routing-mark=ke-isp-1
add distance=1 gateway=192.168.42.129 routing-mark=ke-isp-2
add check-gateway=ping distance=1 gateway=192.168.100.1
add distance=1 gateway=192.168.100.1,192.168.42.129
add check-gateway=ping distance=2 gateway=192.168.42.129
/system lcd
set contrast=0 enabled=no port=parallel type=24x4
/system lcd page
set time disabled=yes display-time=5s
set resources disabled=yes display-time=5s
set uptime disabled=yes display-time=5s
set packets disabled=yes display-time=5s
set bits disabled=yes display-time=5s
set version disabled=yes display-time=5s
set identity disabled=yes display-time=5s
set ether5 disabled=yes display-time=5s
set ether4 disabled=yes display-time=5s
set ether3 disabled=yes display-time=5s
set ether2 disabled=yes display-time=5s
set ether1 disabled=yes display-time=5s
/tool user-manager customer
add backup-allowed=yes disabled=no login=admin parent=admin password=“”
paypal-accept-pending=no paypal-allowed=no paypal-secure-response=no
permissions=owner signup-allowed=no time-zone=-00:00

EDIT: I look up the configuration from this link https://wiki.mikrotik.com/wiki/ECMP_load_balancing_with_masquerade
I also apply a simple failover here.

Please anybody I need help

You need to move away from 5,5year old version, then you can use examples from the manual.

Sir, thank you very much. after all this time my mistake is just the version. now my load balance runs well in ver6.29.

So you’ve gone from a 5 year old version to a 2 year old version. Why not just use the latest stable?

I havent found the iso file for the latest version… I do the load balance in virtualbox

I’m currently comparing load balance and failover with nth method and ecmp method, I have some questions:

  1. When I run failover in nth load balance, I try disable the ISP that I used but the connection doesnt move automatically, instead I need to make a new connection so I could connect to the backup ISP, does this happem bcs of the connection-mark in nth?

  2. Many references say that ecmp load balance has a failover effect so we dont have to configure the Distance on the default route we use, why it could happen? How could ecmp load balance has a failover effect without setting the Distance parameter?

Any answer could really help, thank you