# Simple Failover - ISP1 PPPoE & ISP2 LTE

**URL:** <https://forum.mikrotik.com/t/simple-failover-isp1-pppoe-isp2-lte/178550>\
**Category:** Beginner Basics\
**Created:** [September 6, 2024, 8:03am UTC](https://forum.mikrotik.com/t/simple-failover-isp1-pppoe-isp2-lte/178550 "2024-09-06T08:03:37Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![jaclaz](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/jaclaz/32/55652_2.png) [@jaclaz](https://forum.mikrotik.com/u/jaclaz)\
**Post date:** [September 6, 2024, 5:00pm UTC](https://forum.mikrotik.com/t/simple-failover-isp1-pppoe-isp2-lte/178550/5 "2024-09-06T17:00:24Z")

</div>

When you have PPPoE up:  
0 ADS 0.0.0.0/0 pppoe-out1 1\<- this is (DHCP) and Active, ALL outbound traffic goes through this  
1 S 0.0.0.0/0 192.168.8.1 2 -\<- this is (Static) and NOT Active (because of higher distance=2), so it is irrelevant  
2 A S 1.1.1.1/32 pppoe-out1 1\<- this, (Static) is Active and being (much) narrower catches the specific outbound traffic with destination 1.1.1.1, BUT, since it has the same gateway than the main route, it is pretty much irrelevant

You are - I believe - simulating the lack of internet by removing the connection between the Mikrotik router and the ISP modem/router.  
The point of a recursive route is to check not only that the local modem/router is up, but also that it has internet (this can be simulated by removing the connection from the ISP modem router to the ISP, i.e. detaching the cable coming from the wall).

When you have PPPoE down:  
\<here imagine the missing route to 0.0.0.0/0 through pppoe-out1\> ← since you have not anymore the pppoe-out1 connected, the route is not created at all  
0 A S 0.0.0.0/0 192.168.8.1 2 ← this is (Static) and became Active, ALL outbound traffic goes through this (the LTE), INCLUDING the traffic destined to 1.1.1.1  
1 S 1.1.1.1/32 pppoe-out1 1 ← this is (Static) and NOT active, since the gateway cannot be reached, so it is irrelevant

In this case the 1.1.1.1 netwatch pings go through the wider route going through the LTE gateway.  
You should be able to check the path the connection takes by using /tool trace (instead of ping) in the two cases.

The tutorial bpwl linked to is way too complex, before that one, read this simpler one (but still it will take some effort to grasp the concepts), point I.:  
[https://web.archive.org/web/20230524061649/https://forum.mikrotik.com/viewtopic.php?t=182373](https://web.archive.org/web/20230524061649/https://forum.mikrotik.com/viewtopic.php?t=182373)

Once you have got the idea, go through this one:  
[http://forum.mikrotik.com/t/most-effective-failover/160877/1](http://forum.mikrotik.com/t/most-effective-failover/160877/1)

Right now you are not using recursive routing at all.

You are in a peculiar case as your “main” route is seemingly not a static one you added, but rather it comes from the DHCP client, and has distance 1.  
You should disable the dhcp client setting to get that route and manually add a static one:  
[https://help.mikrotik.com/docs/display/ROS/DHCP#DHCP-DHCPOptions](https://help.mikrotik.com/docs/display/ROS/DHCP#DHCP-DHCPOptions)  
add-default-route=no

In a static setup, your recursive routing would then be something _like_:  
/ip route  
add comment=PrimaryISP check-gateway=ping distance=1 dst-address=0.0.0.0/0 gateway=1.1.1.1 scope=10 target-scope=12  
add comment=nexthopcheck distance=1 dst-address=1.1.1.1/32 gateway=pppoe-out1 scope=11 target-scope=11  
add comment=SecondaryISP distance=2 dst-address=0.0.0.0/0 gateway=192.168.8.1 scope=10 target-scope=30

An alternative approach, that would do in your case is this one (easier to understand and implement), using Netwatch to check a public site (8.8.8.8 in the example, you should replace it with 1.1.1.1):  
[http://forum.mikrotik.com/t/simpler-failover-for-two-gateways-i-found-working/169108/1](http://forum.mikrotik.com/t/simpler-failover-for-two-gateways-i-found-working/169108/1)  
if you choose this one, you can leave the DHCP originated route, but set the option in dhcp client to give it a greater distance.

---

_[View the full topic](https://forum.mikrotik.com/t/simple-failover-isp1-pppoe-isp2-lte/178550)._
