The example config is:
network:
version: 2
renderer: networkd
ethernets:
wan:
match:
macaddress: "00:1c:42:eb:ee:bb"
lan:
match:
macaddress: "00:1c:42:72:d3:a2"
set-name: lan
mtu: 9000
vlans:
vlan20:
link: lan
id: 20
this fails because 'lan' matches on the macaddr, but vlans always inherit their
macaddr from their parent interface, so 'lan' and 'vlan20' will *both* match
the 'lan' section (since their macaddr are identical) and thus systemd-networkd
will attempt to rename vlan20 to 'lan', which will fail, since the interface
'lan' already exists.
>From the systemd-networkd perspective, this is clearly a
misconfiguration; when matching on macaddr, if other interfaces in the
system might have the same mac (e.g. bridge, vlan, etc), the match
filtering must also filter which interface to match, e.g., besides the
MACAddress= match it also needs (for example) one or more of:
Driver=ixgbe
Type=!vlan
Type=!bridge
for this specific example, just adding (again, to the systemd-networkd config,
not the netplan config) the match filter 'Type=!vlan' will work, however i
don't think netplan provides any way to configure type matching. I think it
does allow driver matching, so you might be able to edit your netplan config
'lan' section to:
lan:
match:
macaddress: "00:1c:42:72:d3:a2"
driver: "virtio_net"
set-name: lan
mtu: 9000
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1888726
Title:
systemd-udevd regression: some renamed network interfaces stuck in
"pending" state
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/1888726/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs