Managing Ethernet connections on Ubuntu Core

I want to be able to manage ethernet connections on my Ubuntu Core platform. For example I would like to be able to assign a static IP address and disable dhcp, or enable dhcp and bring up and down these connections.
What is the recommended way to do this netplan or NetworkManager snap?
At the moment I am just experimenting from the command line but down the line I will want to do this from within my own snap.

“sudo console-conf” is definitely the best way

if you want to do it from a snap then i’d go with the network-manager interface and ship network-manager pre-installed.

If you need more information about the network-manager snap you can find existing documentation at

For more info about how to configure after executing sudo console-conf refer to e.g.:

Name servers: