I am trying to do a WAN failover for my home network without any scripts/netwatch. My setup is adopted from this tutorial:
http://wiki.mikrotik.com/wiki/Advanced_ ... asic_Setup
There are two separate ADSL connections for failover. If I enable/disable the routes manually the failover is working but of course I want an automatic failover without scripting. Additionally the normal gateway check should be extended to check the ping to IPs 22.214.171.124 and 126.96.36.199 in order to detect an real down state of my PPPoE connections.
The main gateway has the IP 192.168.0.240, the backup PPPoE connection is directl attached to the router with name "PPPoE-TelekomDSL".
;;; Main route dst-address=0.0.0.0/0 gateway=188.8.131.52 gateway-status=184.108.40.206 recursive via 192.168.0.240 ether2_homenet check-gateway=ping distance=1 scope=30 target-scope=10 dst-address=0.0.0.0/0 gateway=220.127.116.11 gateway-status=18.104.22.168 unreachable check-gateway=ping distance=2 scope=30 target-scope=10Here are my gateway checks:
dst-address=22.214.171.124/32 gateway=PPPoE-TelekomDSL gateway-status=PPPoE-TelekomDSL reachable check-gateway=ping distance=1 scope=10 target-scope=10 dst-address=126.96.36.199/32 gateway=192.168.0.240 gateway-status=192.168.0.240 reachable via ether2_homenet check-gateway=ping distance=1 scope=10 target-scope=10With this setup enabling the backup route does not work automatically even if I disable the main route. The problem is related to the PPPoE-TelekomDSL gateway for dst address 188.8.131.52. If I put the IP from "Local Address" of the PPPoE connection here instead, it does work. But only for 20 seconds because then the route to 184.108.40.206 is marked unreachable agin. For your information, the PPPoE connection puts a DAC route(with "Local Address" from PPPoE as dst) in the routing table...
Again using gateway PPPoE-TelekomDSL marks my route to 220.127.116.11 as active but failover is not working. The backup default route then still has the gateway 18.104.22.168 unreachable set.
Here is my debug log when enabling the route:
automatic disable after 20s
Can anybody explain this behaviour to me? Thanks!