netplan won't apply config on renamed interface
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Netplan does not configure interfaces *if* set-name is used.
Config:
root@ubuntu:
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
eth0:
match:
set-name: eth0
dhcp4: no
addresses: [ "192.168.56.2/24" ]
gateway4: 192.168.56.1
Result after reboot:
ubuntu@ubuntu:~$ ip address show dev eth0
2: eth0: <BROADCAST,
link/ether 08:00:27:f0:97:15 brd ff:ff:ff:ff:ff:ff
ubuntu@ubuntu:~$ networkctl
IDX LINK TYPE OPERATIONAL SETUP
1 lo loopback carrier unmanaged
2 eth0 ether off unmanaged
2 links listed.
*After netplan apply*
ubuntu@ubuntu:~$ sudo netplan apply
ubuntu@ubuntu:~$ ip address show dev eth0
3: eth0: <BROADCAST,
link/ether 08:00:27:f0:97:15 brd ff:ff:ff:ff:ff:ff
inet 192.168.56.2/16 brd 192.168.56.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::a00:
valid_lft forever preferred_lft forever
ubuntu@ubuntu:~$ networkctl
IDX LINK TYPE OPERATIONAL SETUP
1 lo loopback carrier unmanaged
3 eth0 ether routable configured
2 links listed.
Attached syslog files for better debugging.
Also, this bug only occurs (in my tests) if the VM was installed with the debian-installer image (ubuntu-
Changed in netplan: | |
status: | Incomplete → Confirmed |
Added syslog file after running sudo netplan apply...