Try putting an IP address for the gateway in the route with scope 10
specifically change “ISP” in the route below to the gateway address of your ISP
1 A S dst-address=1.1.1.1/32 gateway=ISP gateway-status=ISP reachable distance=1 scope=10 target-scope=10
I have not been able to get recursive routing failover to work with named interfaces, only with IP addresses. I can’t even get them to work with the % syntax, to specify an IP gateway and a specific interface … it seems to only want an IP address…
…which is exactly what the documentation says. The original purpose of recursive next hop search is for dynamic routing protocols to which interface names don’t fit well.
However, you can use the remote address of the PPPoE interface as a gateway in the bottom-most recursive route. You cannot attach a script to /interface pppoe-client directly, but you can use a ppp profile for that. See this recent topic on how to do that.