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 https://docs.ubuntu.com/core/en/stacks/network/network-manager/docs/index
For more info about how to configure after executing sudo console-conf
refer to https://askubuntu.com/a/1073441/629972 e.g.:
Subnet: 192.168.1.0/24
Address: 192.168.1.101
Gateway: 192.168.1.1
Name servers: 8.8.8.8