Community discussions

MikroTik App
 
wassimdaccache
just joined
Topic Author
Posts: 9
Joined: Sun Feb 13, 2011 9:31 pm

Load Balancing & Fail-over job using RB750 router NetWar

Sun Feb 13, 2011 10:10 pm

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
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

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

Wed Feb 16, 2011 9:59 am

have you tried to set "check-gateway" in these routes?
 
wassimdaccache
just joined
Topic Author
Posts: 9
Joined: Sun Feb 13, 2011 9:31 pm

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

Sun Feb 20, 2011 5:16 pm

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
 
firewallrule
Member Candidate
Member Candidate
Posts: 118
Joined: Tue Oct 13, 2009 9:23 pm

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

Fri Mar 11, 2011 7:31 pm

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
 
User avatar
marioclep
Trainer
Trainer
Posts: 144
Joined: Sat Jul 11, 2009 4:36 pm
Location: Cordoba - Argentina
Contact:

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

Fri Mar 11, 2011 8:49 pm

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
 
forne
Frequent Visitor
Frequent Visitor
Posts: 65
Joined: Tue Feb 15, 2011 3:18 pm

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

Sat Mar 12, 2011 7:03 am

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

Who is online

Users browsing this forum: No registered users and 42 guests