Community discussions

MikroTik App
 
serthan
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 61
Joined: Sat Jun 16, 2007 10:49 am

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

Thu Jan 31, 2008 2:19 pm

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_Bala ... e_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 ? :?

thx,,,
Last edited by serthan on Sat Feb 02, 2008 5:04 am, edited 1 time in total.
 
serthan
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 61
Joined: Sat Jun 16, 2007 10:49 am

Re: ECMP not working properly

Thu Jan 31, 2008 9:35 pm

Cant Router Board do this simple ECMP rules properly,
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Re: ECMP not working properly

Thu Jan 31, 2008 10:37 pm

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.
 
serthan
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 61
Joined: Sat Jun 16, 2007 10:49 am

Re: ECMP not working properly

Thu Jan 31, 2008 11:55 pm

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...
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Re: ECMP not working properly

Fri Feb 01, 2008 12:16 am

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 ?
 
serthan
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 61
Joined: Sat Jun 16, 2007 10:49 am

Re: ECMP not working properly

Fri Feb 01, 2008 12:35 am

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)
You do not have the required permissions to view the files attached to this post.
 
serthan
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 61
Joined: Sat Jun 16, 2007 10:49 am

Re: ECMP not working properly

Fri Feb 01, 2008 4:29 pm

how can i write script to test modem internet connections
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7187
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: ECMP not working properly

Fri Feb 01, 2008 4:43 pm

You can use /tool netwatch
but I think check-hateway=ping is doing almost the same thing.
 
serthan
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 61
Joined: Sat Jun 16, 2007 10:49 am

Re: ECMP not working properly

Fri Feb 01, 2008 7:30 pm

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 ???
:shock: :shock: :shock: :shock: :shock: :shock: :shock: :shock: :shock:
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Re: ECMP not working properly

Fri Feb 01, 2008 8:39 pm

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.
 
serthan
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 61
Joined: Sat Jun 16, 2007 10:49 am

Re: ECMP not working properly

Sat Feb 02, 2008 12:00 am


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...


:( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :(
You do not have the required permissions to view the files attached to this post.
 
serthan
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 61
Joined: Sat Jun 16, 2007 10:49 am

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

Fri Feb 08, 2008 4:57 pm

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;

Who is online

Users browsing this forum: dtomgr, erlinden, surek and 42 guests