Question about failover

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?

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/t/little-changes/47848/1):

we will consider about src-address for netwatch tool. In the mean time use the scripting and ping to check something this specific.

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?

I just wrote something similar here: http://forum.mikrotik.com/t/newbie-in-trouble-dual-gateway-failover-configuration/50002/4

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_Routing_Failover_without_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/t/little-changes/47848/1) is:

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

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