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
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.
[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
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