Failover with 1 wan DHCP and 1 PPPoE

Hello everybody I’ve been looking for information, but I can’t hit the key.

this is my network structure.

ISP 1 Principal: PPPoE
ISP 2 Backup: DHCP Client

the problem is in the default route of the DHCP Client, because the gateway is constantly changing. I can’t get the key to make it dynamic.

I just need failover. I’m not looking for balancing.It really must be silly. But I can’t figure it out.

thanks in advance!
best regards

Hernan.

Have you set your distances correctly ? 1 for ISP1 and 2 for ISP2 ?

Is it enough for you to fail over to the “dhcp” interface if the PPPoE connection goes physically down, or do you want to check that internet can be reached via the PPPoE connection? In the former case, what @zacharias suggests is enough (you just set the default-route-distance parameter of the /ip dhcp client row to 2), in the latter case you need the same plus some additional magic.

I guess the magic is the recursive failover for the DHCP.

Rather for the PPPoE, because the DHCP is the WAN of last resort so it doesn’t make much difference whether you can reach the internet through it or not. And yes, I do have in mind the recursive next-hop search.

And yes, I do have in mind the recursive next-hop search.

I knew it… :laughing:

I was breaking my head and the subject was simple, when I create the DHCP Client, I select that the distance is 2 and ready, it was super simple :neutral_face:

Sure, but that was just level 1 of the quest. Now imagine what happens if the PPPoE session stays up but the PPPoE ISP has problems in their network so you cannot get to the internet through there. In this case, the route via PPPoE will remain active, so the one through the DHCP ISP won’t be used.