A connect-on-demand PPPoE interface used as a backup WAN now makes pppd add its own kernel default route at start, before any dial and outside FRR, so default-route-distance has no effect and traffic leaves on pppoe0 instead of the primary WAN.
set interfaces pppoe pppoe0 source-interface eth1 set interfaces pppoe pppoe0 connect-on-demand set interfaces pppoe pppoe0 default-route-distance 250 set interfaces ethernet eth2 address 10.152.122.1/24 set protocols static route 0.0.0.0/0 next-hop 10.152.122.2 distance 1
traffic uses the primary WAN (eth2)
live commit after reboot
1.5.1 3/3 3/3
rolling 0/3 0/3Rolling, before any dial: ip route get 203.0.113.9 → 203.0.113.9 dev pppoe0 src 10.64.64.64; after reboot and a dial the kernel default is default dev pppoe0 scope link. 1.5.1 keeps default via 10.152.122.2 dev eth2 proto static metric 20.
Cause
773ac584b (T9533, https://github.com/vyos/vyos-1x/pull/5606) fixed the peer template's dead default_route test; it now writes pppd defaultroute (and defaultroute6) for every on-demand interface unless no-default-route is set. 1.5.1 rendered neither.
Suggested fix
Keep on-demand dialing, but do not let pppd install its own kernel default. Install the default through FRR with default-route-distance, as the other modes do, so the primary WAN keeps priority.