I have a router that dials my backup PPPoE connection, but I want the default route of that router to be a route that it pulls in via OSPF from an adjacent router, and not the one that it gets on the PPPoE tunnel, the PPPoE route should only be active if the OSPF default route is not available. Is this possible without scripting, if so, how?
On the pppoe client interface configuration, dial out tab, there is a checkbox “add default route”
Leave it checked but in the box right below “distance” set it to something like 254.
As long as it’s > 110, which is OSPF’s distance, then ospf will win.
I’m supposing there is a VPN interface which should be the default GW if established?
You may want to make sure there’s a static /32 to the vpn server via the pppoe interface (just set gw=pppoe-interface) (no IP).
Happy routing - and it’s nice to see someone who wants to make something “just work” w/o scripting. (scripting has a place, but not when the desired behavior is just normal)