Skip to content

Instantly share code, notes, and snippets.

@Xantios
Last active March 22, 2024 13:13
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Xantios/cb26cfd4f1cd3c8f5bb720ec0e553728 to your computer and use it in GitHub Desktop.
Save Xantios/cb26cfd4f1cd3c8f5bb720ec0e553728 to your computer and use it in GitHub Desktop.
Ubuntu 20.04 Network setup with NetPlan and NetworkManager

Whut?!

Ubuntu 18.10 and onwards use netplan for the configuration of network interfaces. although im fine with it, it seems Cockpit and some other software dont like it as much.

Solution

Let Netplan configure the interface and hand-off further managent to NetworkManager.

notice: NetworkManager is not a X Application, although the name might sound like one.

Action!

If you have been toying arround with it, set back to defaults

sudo systemctl enable network-manager.service
sudo systemctl start network-manager.service

Now edit /etc/netplan/00-network.yaml like this

network:
  renderer: NetworkManager
  ethernets:
    eno1:
      dhcp4: false
      addresses:
        - 10.13.37.2/24
      gateway4: 10.13.37.1
      nameservers:
        search: [sacredheart.lan]
        addresses: [10.13.37.3]
  version: 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment