Static routes do not work in combination with PPPoE on VyOS 1.4.0-epa2. They fail to be applied after a reboot.
The PPPoE client is configured like this:
set interfaces pppoe pppoe0 no-default-route set interfaces pppoe pppoe0 no-peer-dns set interfaces pppoe pppoe0 mtu 1500 set interfaces pppoe pppoe0 mru 1500 set interfaces pppoe pppoe0 ipv6 address autoconf set interfaces pppoe pppoe0 authentication username 'XXX' set interfaces pppoe pppoe0 authentication password 'XXX' set interfaces pppoe pppoe0 source-interface br0.11 set interfaces pppoe pppoe0 description WAN
The static routes are set like this:
set protocols static route 0.0.0.0/0 interface pppoe0 set protocols static route6 ::/0 interface pppoe0
This works fine when doing a commit, but not on a reboot. If the system is rebooted, it shows the following in the logs:
Mar 20 17:50:30 net01 kernel: pppoe0: renamed from ppp0 Mar 20 17:50:30 net01 pppd[8042]: Renamed interface ppp0 to pppoe0 Mar 20 17:50:30 net01 pppd[8042]: Using interface pppoe0 Mar 20 17:50:30 net01 pppd[8042]: Connect: pppoe0 <--> br0.11 Mar 20 17:50:30 net01 pppd[8042]: sent [LCP ConfReq id=0x1 <magic 0x1727bce5>] Mar 20 17:50:30 net01 (udev-worker)[9861]: Network interface NamePolicy= disabled on kernel command line. Mar 20 17:50:30 net01 pppd[8042]: rcvd [LCP ConfAck id=0x1 <magic 0x1727bce5>] Mar 20 17:50:30 net01 staticd[1467]: [S4MGP-4WQTA] route_notify_owner: Route 0.0.0.0/0 failed to install for table: 254 Mar 20 17:50:30 net01 staticd[1467]: [S4MGP-4WQTA] route_notify_owner: Route ::/0 failed to install for table: 254
The routes are then missing from the main routing table. As a workaround, the can be disabled and enabled, which re-enables them correctly after doing the commit (manually adding them with “ip route” works too).
Using dynamically added routes works fine. Another user could reproduce the issue: https://forum.vyos.io/t/static-routes-not-working-with-pppoe-and-vyos-1-4/14102/4?u=andrin