Community discussions

MikroTik App
 
pascal
just joined
Topic Author
Posts: 8
Joined: Fri Aug 26, 2011 5:01 pm

Question about failover

Sat Sep 10, 2011 5:06 pm

Hello,

I have the following.

I have configured on RB1100 with two different static route and different administrative route.

My problem is sometimes the gatway of the first route is available but the internet service in my ISP is not available because his network is down.

In this case it seems that the failover don't work and not take the second route.

I know in other builder of router, it possible to check not the gateway of ISP but a adress IP of particular server on internet for example check a google server.

If this server is not available then the second route is used.

it's possible to have the same functionning of Mikrotik?
 
Ivoshiee
Member
Member
Posts: 483
Joined: Sat May 06, 2006 4:11 pm

Re: Question about failover

Sat Sep 10, 2011 5:37 pm

You have to build something on top of Netwatch tool. You can not use it directly because there is no way to set the Netwatch tool to use a specific outgoing interface.
I have asked for these options for Netwatch tool, MT is considering it (http://forum.mikrotik.com/viewtopic.php?f=1&t=52579):
we will consider about src-address for netwatch tool. In the mean time use the scripting and ping to check something this specific.
 
pascal
just joined
Topic Author
Posts: 8
Joined: Fri Aug 26, 2011 5:01 pm

Re: Question about failover

Sat Sep 10, 2011 7:13 pm

Thank you Ivoshiee for your reply.

I don't know Netwatch tool, I will look on this configuration but I have a question because is not clear to me.

If I configure the Netwatch too it can work with the static failover?

There is a documentation on Netwatch tool and integration with failover?
 
User avatar
zervan
Member
Member
Posts: 329
Joined: Fri Aug 20, 2010 10:43 pm
Location: Slovakia
Contact:

Re: Question about failover

Sat Sep 10, 2011 7:38 pm

I just wrote something similar here: http://forum.mikrotik.com/viewtopic.php ... 60#p280060
 
CCDKP
Member Candidate
Member Candidate
Posts: 170
Joined: Fri Jan 28, 2011 11:24 pm
Location: Midwest, United States

Re: Question about failover

Tue Sep 13, 2011 10:16 pm

You can do this without netwatch or scripting by using some clever routes. There is an article about it on the Wiki:
http://wiki.mikrotik.com/wiki/Advanced_ ... _Scripting
 
Ivoshiee
Member
Member
Posts: 483
Joined: Sat May 06, 2006 4:11 pm

Re: Question about failover

Tue Sep 13, 2011 10:55 pm

You can do this without netwatch or scripting by using some clever routes. There is an article about it on the Wiki:
http://wiki.mikrotik.com/wiki/Advanced_ ... _Scripting
Yes, but there are cases when check-gateway is doing much more than you may need it to do.
The show stopper for me (http://forum.mikrotik.com/viewtopic.php?f=1&t=52579) is:
3. In IP route "Check Gateway" by ping checking should be able settable to apply only to that single route and not to bring down any other route associated to that gateway;
 
pascal
just joined
Topic Author
Posts: 8
Joined: Fri Aug 26, 2011 5:01 pm

Re: Question about failover

Wed Sep 14, 2011 11:41 pm

Hello everybody,

I read on this link to implement Netwatch

http://wiki.mikrotik.com/wiki/Improved_Netwatch_II

In my case, this configuration seem to be fine

But I have some question.

Where I must past these command in Tool/Netwatch or directly in system/script?

script 1:

:local i 0; {:do {:set i ($i + 1)} while (($i < 5) && ([/ping 64.233.169.99 interval=3 count=1]=0))};
:if ($i=5 && [/ip route get [find comment="Default Route"] distance]=1) do={:log info "Main Gateway down";
/ip route set [find comment="Default Route"] distance=3}

script 2:

:local i 0; {:do {:set i ($i + 1)} while (($i < 5) && ([/ping 64.233.169.99 interval=3 count=1]=1))};
:if ($i=5 && [/ip route get [find comment="Default Route"] distance]=3) do={:log info "Main Gateway up";
/ip route set [find comment="Default Route"] distance=1}

I have try to paste these script in /system/script but action done after have apply these setting.

If I paste these script to /Tool/Netwatch. There many option.
One tab Host to define gateway with interval and timeout
other tab named UP and DOWN

And I don't known where I can paste the script 1 and 2

Thank you for your assistance

Who is online

Users browsing this forum: Amazon [Bot] and 41 guests