Until recently, I was happily running netplan and networkd on my personal Ubuntu 18.04 LTS Desktop, pretty much identical to the way things are set up on my server machines (except with those I start with a minimal setup using the Ubuntu Server iso).
Then something Gnome Shell-related came along that required NetworkManager. Turns out that when it comes to network status, the only piece of software the Gnome Shell can work with is NetworkManager. Thanks, freedesktop.org!
But the good news was that Canonical's netplan can work just just as well with NetworkManager as it can with networkd. https://netplan.io/examples.
Of course it can.
All I had to do was:
- Unmask and enable NetworkManager:
$ sudo systemctl unmask NetworkManager
$ sudo systemctl enable NetworkManager
- Stop and disable networkd:
$ sudo systemctl stop systemd-networkd
$ sudo systemctl disable systemd-networkd
- Edit /etc/netplan/01-network-manager-all.yaml to change my "renderer" from "networkd" to "NetworkManager".
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
-
Run
netplan apply
. -
Reboot.