1

I have a fresh install of the Ubuntu 18.04 server image, on which I run apt install ubuntu-desktop to get a desktop environment. No matter what I do, NetworkManager refuses to manage the ethernet device. I want this because I want to be able to manage my OpenVPN client from my desktop.

I've tried all the answers in both of these questions to no avail:

I've traced the problem to the file /run/NetworkManager/conf.d/netplan.conf which contains the contents:

[keyfile]
# devices managed by networkd
unmanaged-devices+=interface-name:enp0s3,

If I remove the unmanaged-devices line and restart NetworkManager then it works. But since /run/ is a temporary filesystem, as soon as I reboot my changes are discarded.

I have no idea where this file is coming from, and my googlefu has failed me when it comes to figuring out how to get networkd to not take control of my ethernet port.

Any suggestions?

1 Answers1

1

As per my comment...

You should undo your changes to /etc/NetworkManager/NetworkManager.conf...

Your /etc/netplan/*.yaml file should look like this...

network:
  version: 2
  renderer: networkd
  ethernets:
    enp0s3:
      dhcp4: true
      optional: true

followed by...

sudo netplan --debug generate

sudo netplan apply

Update #1:

If you're sticking with NetworkManager... then your /etc/netplan/*.yaml should look like this...

network:
  version: 2
  renderer: NetworkManager

followed by...

sudo netplan --debug generate

sudo netplan apply

heynnema
  • 73,649