Ubuntu – How to use netplan to configure PPPoE


I want to add lines to a working 01-netcfg-yaml file to automatically connect an interface to ppp using a script created by pppoeconf.

But I can't find any guides or examples.

I would much appreciate a "howto" help to do this.

Thanks in advance.

Best Answer

  • There is an option if you're happy to do some tinkering. networkd-dispatcher can help you run your own scripts to do what you need, and roughly follows the syntax for scripts in /etc/network/.


    Also, this is now accepted into Bionic (18.04) in the "universe" repository:


    # Install
    sudo apt install networkd-dispatcher
    # Documentation
    man networkd-dispatcher