Help with Network Manager

I have Home Assistant Supervised. In order for it to be a supported install, I am required to run Network Manager. I have it installed and set up like here: Network Manager - Home Assistant

The one difference is that I have assigned a static IP address. So my /etc/network/interfaces file look like this:

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

iface enp0s3 inet static
dns-nameservers xxx.xx.x.xx, xxx.xx.x.xx

The problem is every time I reboot the network manger is clearing the /etc/resolv.conf file and leaving it empty. Then if i try to execute a sudo apt-get update, it cannot find any of the locations.

Run sudo nmtui and use it to configure static IP, etc.


OK, do I then make the /etc/network/interfaces file like what was shown in the Network Manager link and make iface enp0s3 auto?

Just use nmtui (it configures NetworkManager) then reboot.

1 Like

Awesome, that worked perfectly. You da man!!!

One other quick question. Is there a link to a web page somewhere that tells me to do that? I was not familiar with that UI.

Glad to hear it.

Please consider marking my post above with the Solution tag. It will automatically place a check-mark next to the topic’s title which signals to other users that this topic has been resolved. This helps users find answers to similar questions. For more information refer to guideline 21 in the FAQ.

I found it by googling NetworkManager in order to fix a problem I recently experienced.