How I can set configuration for failover line except using VRRP, as I have only one MT router.
My simple net looks like this :
CLIENT PC
(192.168.0.10)
|
|
|
|
|
|
(192.168.0.1)
MIKROTIK LOCAL INTERFACE
|
MIKROTIK PUBLIC INTERFACE
(10.20.7.10)
|
|
|
|
|
(10.20.7.1)
ISP ROUTER
Now, I would like to add backup ISP ROUTER (10.20.7.2).
How to achieve failover ?
I would like to remind you, that I can’t use ping for checking ISP ROUTER because when line fails (DSL line), ISP ROUTER is still reachable, but DSL connection to the internet is lost.
I’ve searched on forum for a similar topic but found no results.
Can you please give me a hint how to configure this.
Well, I think you may realize requested scenarion with scripts help.
You have to choose one remote IP address (which reachable 24/7/365), and you may ping this remote server from router (e.g. x.x.x.x remote IP address).
Configure ‘/ip route’ table, where will be following rules,
a) dst-address=x.x.x.x/32 gateway=main_gw
b) default gateway gateway=main_gw
c) backup gateway gateway=backup_gw, I suppose, that rule should be disabled by default.
Configure scripts (I can not help with exact syntax, you have to ask other forum members):
Ping to address x.x.x.x, when ping fails, than disable main_gw, and enable backup_gw.
And vice versa, set disable for backup_gw, and enable main_gw, when ping to x.x.x.x comes back. Packets to x.x.x.x goes trough main_gw, because of route rule.