Comment 11 for bug 1799695

Revision history for this message
Ryan Harper (raharper) wrote : Re: [Bug 1799695] Re: I find problems to change the IP address on Ubuntu 18.04

On Tue, Dec 4, 2018 at 10:11 AM Claudio Ruta <email address hidden>
wrote:

> f
> root@UBUNTIPL:~# ls -al /etc/netplan/
> total 24
> drwxr-xr-x 2 root root 4096 Nov 27 05:01 .
> drwxr-xr-x 132 root root 12288 Oct 24 06:08 ..
> -rw-r--r-- 1 root root 346 Oct 24 07:22 01-netcfg.yaml
> -rw-r--r-- 1 root root 104 Oct 24 05:57 01-network-manager-all.yaml
>

Can you move 01-network-manager-all.yaml out of the way?

It appears that file tells netplan that it doesn't need to generate any
config for
interfaces that are managaged by systemd.

see below

>
>
> root@UBUNTIPL:~# netplan --debug apply
> ** (generate:4189): DEBUG: 11:01:55.195: Processing input file
> //etc/netplan/01-netcfg.yaml..
> ** (generate:4189): DEBUG: 11:01:55.196: starting new processing pass
> ** (generate:4189): DEBUG: 11:01:55.196: Processing input file
> //etc/netplan/01-network-manager-all.yaml..
> ** (generate:4189): DEBUG: 11:01:55.196: starting new processing pass
> ** (generate:4189): DEBUG: 11:01:55.196: enc2e02: setting default backend
> to 2
> ** (generate:4189): DEBUG: 11:01:55.196: Generating output files..
> ** (generate:4189): DEBUG: 11:01:55.196: networkd: definition enc2e02 is
> not for us (backend 2)
>

This line here indicates that the config found for enc2e02 (in
01-netcfg.yaml) isn't managed by networkd
since netplan also found the global config to enable NetworkManager (in
01-network-manager-all.yaml).

The default system configuration is to use NetworkManager for any wifi
devices, and networkd for all other
devices. Was there a reason you added the 01-network-manager-all.yaml ? Do
you want to manage the
interface with NetworkManager or Networkd?