Fail-Over Configuration in Mikrotik

Hello,

can anyone help me out configuring Fail-Over with 2 ISPs running in parallel and if one of the links go down the traffic should be routed through the other link.


Regards
Rakesh

Simple, have two default routes, one with a higher distance. If the first one fails the route becomes invalid and the second one takes over.

/ip route
add dst-address=0.0.0.0/0 gateway=ip.of.first.ISP distance=1
add dst-address=0.0.0.0/0 gateway=ip.of.failover.ISP distance=2

I have the same problem to solve. Basically, the problem is that the main ISP connection is an ADSL and when it fails, the ADSL modem continue sending replies and the MK does not switch to the other gateway/connection. Seems, an external address should be monitored. How to implement this? I found many questions same as mine, but I was unable to find even one solution.
Thanks in advance

Maybe you need read about the use of the netwatch tool with the proper scripts when up and when down certain link.

Well, I think, I found the "right" example ( I placed it below). I am trying to run but I have some problem:
I have two gateways: gw1: 192.168.1.1 and gw2: 192.168.5.1 . The first thing I am trying to do is to create according the example two scripts called gw_1 and gw_2 each one, when started, sets gw_1 or respectively gw_2.
The first script, according the example belo has the syntax: "/ip route set [/ip route find dst 0.0.0.0] gateway 192.168.1.1" and the second: "/ip route set [/ip route find dst 0.0.0.0] gateway 192.168.5.1". I have the both ISP cables inserted into the routerboard and am using the command "Run Script" to run manually the first or the second script, waiting to see the connection to be switched trough the first or through the second gateway. Actually, I cannot see any change. Is my syntax wrong, or I have another omission?!

[MikroTik] system script>
add name=gw_1 source={/ip route set [/ip route find dst 0.0.0.0] gateway 10.0.0.1}
add name=gw_2 source={/ip route set [/ip route find dst 0.0.0.0] gateway 10.0.0.217}
[MikroTik] system script> /tool netwatch
add host=10.0.0.217 interval=10s timeout=998ms up-script=gw_2 down-script=gw_1
[MikroTik] tool netwatch> print
Flags: X - disabled

HOST TIMEOUT INTERVAL STATUS

0 10.0.0.217 997ms 10s up
[MikroTik] tool netwatch> print detail
Flags: X - disabled
0 host=10.0.0.217 timeout=997ms interval=10s since=mar/22/2002 11:21:03
status=up up-script=gw_2 down-script=gw_1

[MikroTik] tool netwatch>