I just created the following configuration:
vif 10 { address dhcp address dhcpv6 description "WAN Interface to **** via VLAN 10" dhcp-options { no-default-route } dhcpv6-options { pd 0 { interface eth1 { address 1 sla-id 0 } length 56 } } }
Expecting that when I commited this the current default route via my PPPoE interface wouldn't be affected.
However, my router still learnt a default route via DHCP:
tim@ferrari# run show ip route <snip> S>* 0.0.0.0/0 [210/0] is directly connected, pppoe0, weight 1, 00:00:36 * via X.X.192.1, eth1.10, weight 1, 00:00:36 S>* 10.0.0.0/8 [1/0] via 192.168.0.15, eth1, weight 1, 03w0d17h B>* 10.1.1.0/24 [20/0] via 10.89.90.1, wg1, weight 1, 03w0d17h
I have worked around this at the moment by doing default-route-distance 220 as well:
tim@ferrari# run show ip route <snip> S 0.0.0.0/0 [220/0] via X.X.192.1, eth1.10, weight 1, 00:05:34 S>* 0.0.0.0/0 [210/0] is directly connected, pppoe0, weight 1, 00:10:03
Possibly related to https://vyos.dev/T4482 though I note if I manually request a DHCP lease refresh, it refreshes the default as well.