Ubuntu – How to use netplan to configure PPPoE

17.10netplanpppoe

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/.

https://github.com/craftyguy/networkd-dispatcher

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

https://launchpad.net/ubuntu/+source/networkd-dispatcher/1.7-0ubuntu1

# Install
sudo apt install networkd-dispatcher

# Documentation
man networkd-dispatcher
Related Question