Hacker News new | ask | show | jobs
by Caligatio 720 days ago
The network config for out-of-the-box Ubuntu server has been stable for 6 years. You need to modify netplan's config: /etc/netplan/*.yaml (default is 00-installer-config.yaml). This renders volatile systemd-networkd configs in /run/systemd/network which, in turn, will configure systemd-resolved appropriately.

If you've opted out of netplan, then you need to configure one of systemd-networkd or NetworkManager manually (on server, NetworkManager is only present if you've installed it).

I personally used to be opposed to netplan but I had to do some very esoteric network configuration which was super easy with netplan.

2 comments

> I personally used to be opposed to netplan but I had to do some very esoteric network configuration which was super easy with netplan.

Unless it still insists on realizing all state or no state, I think I still prefer the things doing the work for/underneath Netplan

To your point, esoteric configurations. Netplan is all or nothing: done improperly, it can more easily break the whole house of cards.

It tries/applies everything... where the others allow more utility

Ah right, I remember I ended up writing a netplan YAML. I still couldn’t get it to persist across reboots, and just resorted to running “sudo netplan apply” every time it rebooted.