ECMP not working properly.....Could anyone write script

hi,

i have 4 modem each 4Mbit internet connection, total 16Mbit internet connection
after that RB192 router board set as user manager
after that 2 RB333 board set as hotspot router

rb192 sets up ECMP mode but if one of modem fails, all http connection get “504 gateway timeout”

search for wiki.mikrotik about this problem all week and find below;
http://wiki.mikrotik.com/wiki/ECMP_Failover_Script
http://wiki.mikrotik.com/wiki/Load_Balancing_over_Multiple_Gateways
http://wiki.mikrotik.com/wiki/Category:Routing

However doesnt work,

CONFIG:

Modem1:
ip:192.168.2.1/24
modem2:
ip:192.168.3.1/24

RB192
ether1: 192.168.2.2/24
ether2: 192.168.3.2/24
ether3: 192.168.9.1/24 ;; user manager
route .0.0.0.0/0 —> 192.168.2.1,192.168.3.1


RB333 client1:
ether1: 192.168.9.2/24
wlan1: 10.5.5.1/24 ;;hotspot network
hotspot enable
radius enable and running
route: 0.0.0.0/0 —> 192.168.9.1
dns: 192.168.2.1, 195.175.39.39

RB333 client2:
ether1: 192.168.9.2/24
wlan1: 10.5.6.1/24 ;;hotspot network
hotspot enable
radius enable and running
route: 0.0.0.0/0 —> 192.168.9.1
dns: 192.168.2.1, 195.175.39.39


Could someone help me please ? :confused:

thx,

Cant Router Board do this simple ECMP rules properly,

turn on check-gateway=arp or =ping so that the gateway is not used if its non-reachable. If the arp and ping are working and it’s still down (1 hop out) you will need to script something, but check-gateway=ping/arp should be fine.

i allready check-gateway =ping

modem may not have internet connection,

have can i write a script that ask: if modem have internet then…gateway ok… else…shutdown gateway… or something else.

3 of modems are running but http doesnt connect,

Could you please write Route script or netwatch or what ever you know ?

finally Thx for reply…

check-gateway=ping should do this for you automatically… If ECMP is in use with 4 routes, and one of them isnt reachable, it should turn blue and only the 3 remaining routes should be used. . . if this is not happening I would suggest entered a support ticket if it’s broken.

Are you saying that your gateway is not the remote side of the modem, its inside your facility ? Or should I ask the gateway is still pingable even when your internet is down ?

Picture show abow

Router RB192 checks the modems modems are power up but one of them not connect to internet,

How can i find which modem dosnt connect internet, after that close that modem connection fot http(80)
4_route.jpg

how can i write script to test modem internet connections

You can use /tool netwatch
but I think check-hateway=ping is doing almost the same thing.

i already using netwatch and route check gateway,

these options check the router power on but doesnt check modems’ internet connection down or up


How can i check modems have internet connection ???

Could a script writer can help me please,

I PAID MUCH MORE MONEY TO MIKROTIK BUT DOESNT WORK EVEN ECMP PROTOCOL

can anyone discard my idea about mikrotik ???
:open_mouth: :open_mouth: :open_mouth: :open_mouth: :open_mouth: :open_mouth: :open_mouth: :open_mouth: :open_mouth:

So just to get this straight … the default gateways you are using are on your network, or are they across the internet at your ISP?

If you use check-gateway it simply pings the gateway, and if its unreachable it will disable the route automatically… however, if that gateway is ALWAYS up because its inside of your network then you will need extra scripting.

If your gateways are local check-gateway wont do what you need. If thats the case let us know and maybe we can code something up for you real quick.

SRY about my english or explanation methot


i make a picture, tell the config,

How can you use ECMP protocol properly???

and increase your internet connection basicly ???

Simple script that check the internet connection up or down


in other word, ECMP dosnt work properly and my money fly away…


:frowning: :frowning: :frowning: :frowning: :frowning: :frowning: :frowning: :frowning: :frowning: :frowning: :frowning: :frowning: :frowning: :frowning: :frowning: :frowning: :frowning: :frowning:
4_route.jpg

ecmp routing problem script for v3.1 but msn-icq-(IM) still down

/tool netwatch set [find comment=“hurriyet”] disable=yes;
/tool netwatch set [find comment=“ttnet2”] disable=yes;
/tool netwatch set [find comment=“yahoo”] disable=yes;
/tool netwatch set [find comment=“google”] disable=yes;
/ip route set [find comment=“hepsi”] disable=yes;
/ip route set [find comment=“yedek”] disable=yes;
:global mdm1 192.168.2.1; :global mdm2 192.168.3.1; :global mdm3 192.168.4.1; :global mdm4 192.168.5.1; :global ydk; :set ydk; :global i 0;
/ip route set [find comment=“test”] gateway=($mdm1) disable=no;
:delay 50ms; :if ([/ping 195.175.39.39 count=2]>0) do={:set ydk “$ydk,$mdm1”} else={:set i ($i+1)};
/ip route set [find comment=“test”] gateway=($mdm2) disable=no;
:delay 50ms; :if ([/ping 195.175.39.39 count=2]>0) do={:set ydk “$ydk,$mdm2”} else={:set i ($i+1)};
/ip route set [find comment=“test”] gateway=($mdm3) disable=no;
:delay 50ms; :if ([/ping 195.175.39.39 count=2]>0) do={:set ydk “$ydk,$mdm3”} else={:set i ($i+1)};
/ip route set [find comment=“test”] gateway=($mdm4) disable=no;
:delay 50ms; :if ([/ping 195.175.39.39 count=2]>0) do={:set ydk “$ydk,$mdm4”} else={:set i ($i+1)};
:if ($i = 4) do={/ip route set [find comment=“hepsi”] disable=no; /ip route set [find comment=“yedek”] disable=yes} else={};
/ip route set [find comment=“test”] disable=yes;
/ip route set [find comment=“yedek”] gateway=($ydk) disable=no;
:delay 25; :set ydk; :global i 0;
/tool netwatch set [find comment=“hurriyet”] disable=no;
/tool netwatch set [find comment=“ttnet2”] disable=no;
/tool netwatch set [find comment=“yahoo”] disable=no;
/tool netwatch set [find comment=“google”] disable=no;