Failover issue

Greetings everyone
I’m trying to set up a failover configuration with 2 ISP’s using the distance and check-gateway=ping.
I’m doing everything according to the manual:

DST-ADDRESS PREF-SRC GATEWAY-STATE GATEWAY DISTANCE INTERFACE

0 A S 0.0.0.0/0 unreachable ... 1 reachable Main Main
1 S 0.0.0.0/0 unreachable ... 2 reachable Backup Backup

However when i’m turinin off my primary isp cable the mikrotik rb still tries to send the packets thru it’s gateway and lisit it as an active one in the routes list. I’ve tried to switch off the primary interface in the interfaces list - than the failover scheme works.
Any ideas on the issue?
Thx in advance.

HI,

use diferent subnets for each gateway.

192.168.1.1 and 192.168.2.1, for example..

ether1 with 1.1 and ether2 with 2.1

You need to use routing marks with mangle to make it work. In the wiki there are a lot of examples.