Configuring automatic failover with Mikrotik routers can be very easy and straightforward, yet most administrators find it difficult.
This is because with Mikrotik, what most people configure is actually not automatic failover. They configure two gateways with different administrative distances and they set the gateway check to ping. With this, the link will NEVER fail over unless the cable is physically disconnected.
To set up a complete automatic failover that does not require you to unplug the cable, do the following:
On Client Router, configure your two WAN interfaces to connect to your ISPs using the IP addresses given to you by your providers. For the automatic failover, do this:
add dst-address=188.8.131.52 gateway=10.10.1.1 scope=10
add dst-address=184.108.40.206 gateway=220.127.116.11 scope=10
add distance=1 gateway=18.104.22.168 check-gateway=ping
add distance=2 gateway=22.214.171.124 check-gateway=ping