Page MenuHomeVyOS Platform

pppoe: pppd exits when 'connect-on-demand' and 'ipv6 address autoconf' configured
Open, NormalPublicBUG

Description

With connect-on-demand and ipv6 address autoconf on the same PPPoE interface, pppd exits right after it starts, with status 2 and the message local/remote LL address required for demand-dialling. systemd restarts ppp@pppoe0, and the restarts I observed exited the same way. In my runs pppoe0 was not created and the link did not dial. The commit itself succeeds with no error or warning.

Steps to reproduce
  1. Have a reachable PPPoE server on eth1.
  2. Configure and commit:
set interfaces pppoe pppoe0 source-interface eth1
set interfaces pppoe pppoe0 authentication username <user>
set interfaces pppoe pppoe0 authentication password <pass>
set interfaces pppoe pppoe0 connect-on-demand
set interfaces pppoe pppoe0 default-route-distance 250
set interfaces pppoe pppoe0 ipv6 address autoconf
commit
  1. Check the pppd service:
systemctl status ppp@pppoe0
journalctl -u ppp@pppoe0
ip link show pppoe0
Expected

Either the commit is refused with an explanation, or pppd keeps running and dials on demand.

Actual

The commit succeeds. pppd exits a few seconds later:

pppd[3352]: /usr/sbin/pppd: local/remote LL address required for demand-dialling
systemd[1]: ppp@pppoe0.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
systemd[1]: ppp@pppoe0.service: Failed with result 'exit-code'.

systemctl show ppp@pppoe0 then reports Result=exit-code NRestarts=1 ActiveState=activating SubState=auto-restart. ip link show pppoe0 says Device "pppoe0" does not exist.

The rendered /etc/ppp/peers/pppoe0 contains +ipv6 ipv6cp-use-ipaddr together with demand. pppd's message names the cause: in demand mode it requires local and remote IPv6 link-local addresses, and the generated config does not provide them.

Details

Version
rolling, 1.5, 1.4
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)