what’s the problem of this script at end for load balancing? it’s not work
# name of interface that should be monitored
# (edit to match your interface name)
:set mInterface2 ether2 ;
:set mInterface3 ether3 ;
:set mInterface4 ether4 ;
# routing mark name used for default route that should be updated
# (edit to match your routing mark name)
:set mRoutingMark SUBNET-LAN ;
/ip address ;
:set mGateway2 [/ip dhcp-client get [/ip dhcp-client find interface=$mInterface2] gateway]
:log info $mGateway2
:set mGateway3 [/ip dhcp-client get [/ip dhcp-client find interface=$mInterface3] gateway]
:log info $mGateway3
:set mGateway4 [/ip dhcp-client get [/ip dhcp-client find interface=$mInterface4] gateway]
:log info $mGateway4
/ip route add dst-address=0.0.0.0/0 gateway=$mGateway2,$mGateway3,$mGateway4, routing-mark=$mRoutingMark;
but this is only one script
and i have problem with this script
it’s better that i test al the way and then i can choose the best way to do it
thank you so much for your recommendation for best solution
now I’m waiting to find my answer about the problem in script
regards
PCC will connect a client to a server over the same link every time, while ECMP (stabilized with magling and routing) will randomly choose nexthop for each new connection, therefore making downloading with download manager - faster.
You can paste the script into a terminal, to see where the syntax has an error. A comma after the last gateway ?
well, you tell about PCC with ‘address’ classifier. if you use ‘address+port’ classifier, it will distribute all conections to the same server via different gateways.
ECMP uses gateways in round-robin manner, but its weakness is routing cache (see http://wiki.mikrotik.com/wiki/Route#Forwarding_Information_Base ). cache is being cleaned every xxx minutes (security reason?), so sometimes new gateway is selected different, so connection having been broken…