Page 1 of 1

Load Balancing & Fail-over job using RB750 router NetWar

Posted: Sun Feb 13, 2011 10:10 pm
by wassimdaccache
Hello Friends.

I am trying to make a load balancing & fail-over job using router RB750.

I have to different ISP gateway.

GateWay1 & GateWay2. I am using 2 MANGLE rules to watch the packets sent by user and i have classified them by Ip's as below

Soho : 192.168.88.2-192.168.88.125
HDSL : 192.168.88.126-192.168.88.254

I have 4 routes rule as below :

0.0.0.0/0 to HDSL gateway routing mark HDSLRange distance 1
0.0.0.0/0 to SOHO gateway routing mark SOHORange distance 1

0.0.0.0/0 to SOHO gateway routing mark HDSLRange distance 2 ' for the failover job
0.0.0.0/0 to HDSL gateway routing mark SOHORange distance 2 ' for the failover job

till here everything is working well.

I would use a script to run the appropriate command in order to disable or enable the right routes.

Now I would use two scripts to disable or enable the appropriate route in order to apply the failover job

I don t know the syntax to ping an address from SOHO gateway and another script to ping an address from HDSL gateway.

while I am using netwatch there is no place to chose the gateway!!!

please guys point me to the right direction ...

I really appreciate you a lot

regards

Re: Load Balancing & Fail-over job using RB750 router NetWar

Posted: Wed Feb 16, 2011 9:59 am
by janisk
have you tried to set "check-gateway" in these routes?

Re: Load Balancing & Fail-over job using RB750 router NetWar

Posted: Sun Feb 20, 2011 5:16 pm
by wassimdaccache
Yeah

I have tried to make check gateway in route but it is only working for the gateway of the router.

Is there any way to check many gateways... something like checking the gateway of the router AND the gateway of an external server ...

Thanks in advance

Re: Load Balancing & Fail-over job using RB750 router NetWar

Posted: Fri Mar 11, 2011 7:31 pm
by firewallrule
I have raise this issue before but no favorable answer.

Am high interested on the topic.

pinging gateway check only check the internet modem alive not the external gateway or dns

Re: Load Balancing & Fail-over job using RB750 router NetWar

Posted: Fri Mar 11, 2011 8:49 pm
by marioclep
Hi!

the best thing you can do is a recoursive routing. That is using gateways beyond your default gateway.
Here is a way to doing it: http://wiki.mikrotik.com/wiki/Manual:Us ... attributes

Regards

Re: Load Balancing & Fail-over job using RB750 router NetWar

Posted: Sat Mar 12, 2011 7:03 am
by forne
pinging gateway check only check the internet modem alive not the external gateway or dns
That's not true. Read the following article:

http://wiki.mikrotik.com/wiki/Advanced_ ... _Scripting

And look at the following example:

http://forum.mikrotik.com/viewtopic.php ... 00#p252900