Netplan does not allow greater that 8 nics to be configured
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nplan (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
there is no crash or app report available
when you try to configure more than 8 nics netplan gives the following error and only configures the first 8
DEBUG:netplan generated networkd configuration exists, restarting networkd
DEBUG:no netplan generated NM configuration exists
DEBUG:device enp0s17 operstate is up, not replugging
DEBUG:netplan triggering .link rules for enp0s17
DEBUG:device enp0s8 operstate is up, not replugging
DEBUG:netplan triggering .link rules for enp0s8
DEBUG:device enp0s18 operstate is up, not replugging
DEBUG:netplan triggering .link rules for enp0s18
DEBUG:device enp0s16 operstate is up, not replugging
DEBUG:netplan triggering .link rules for enp0s16
DEBUG:device enp0s9 operstate is up, not replugging
DEBUG:netplan triggering .link rules for enp0s9
DEBUG:device lo operstate is unknown, not replugging
DEBUG:netplan triggering .link rules for lo
DEBUG:device enp0s10 operstate is up, not replugging
DEBUG:netplan triggering .link rules for enp0s10
DEBUG:device enp0s3 operstate is up, not replugging
DEBUG:netplan triggering .link rules for enp0s3
DEBUG:replug enp2s0: unbinding 0000:02:00.0 from /sys/bus/
DEBUG:replug enp2s0: rebinding 0000:02:00.0 to /sys/bus/
DEBUG:device enp0s19 operstate is up, not replugging
looking in the drivers directory you can see ni9 is on a different address
# ls -als /sys/bus/
total 0
0 drwxr-xr-x 2 root root 0 Jan 27 13:12 .
0 drwxr-xr-x 27 root root 0 Jan 27 13:02 ..
0 lrwxrwxrwx 1 root root 0 Jan 27 13:11 0000:00:03.0 -> ../../.
0 lrwxrwxrwx 1 root root 0 Jan 27 13:11 0000:00:08.0 -> ../../.
0 lrwxrwxrwx 1 root root 0 Jan 27 13:11 0000:00:09.0 -> ../../.
0 lrwxrwxrwx 1 root root 0 Jan 27 13:11 0000:00:0a.0 -> ../../.
0 lrwxrwxrwx 1 root root 0 Jan 27 13:11 0000:00:10.0 -> ../../.
0 lrwxrwxrwx 1 root root 0 Jan 27 13:11 0000:00:11.0 -> ../../.
0 lrwxrwxrwx 1 root root 0 Jan 27 13:11 0000:00:12.0 -> ../../.
0 lrwxrwxrwx 1 root root 0 Jan 27 13:11 0000:00:13.0 -> ../../.
0 lrwxrwxrwx 1 root root 0 Jan 27 13:11 0000:02:00.0 -> ../../.
This has been found in ALpha 1 & 2 for desktop and Alpha 2 for server.
if the 9th nic is bought up manually using ifconfig it works
my netlan config file
# This file describes the network interfaces available on your system# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
enp0s3:
dhcp4: no
dhcp6: no
addresses: [192.168.0.3/24]
gateway4: 192.168.0.1
nameservers:
addresses: [dnsserver1,
enp0s8:
dhcp4: no
dhcp6: no
addresses: [192.168.1.3/24]
gateway4: 192.168.1.1
nameservers:
addresses: [dnsserver1,
enp0s9:
dhcp4: no
dhcp6: no
addresses: [192.168.2.3/24]
nameservers:
addresses: [dnsserver1,
enp0s10:
dhcp4: no
dhcp6: no
addresses: [192.168.3.3/24]
nameservers:
addresses: [dnsserver1,
enp0s16:
dhcp4: no
dhcp6: no
addresses: [192.168.4.3/24]
nameservers:
addresses: [dnsserver1,
enp0s17:
dhcp4: no
dhcp6: no
addresses: [192.168.5.3/24]
nameservers:
addresses: [dnsserver1,
enp0s18:
dhcp4: no
dhcp6: no
addresses: [192.168.6.3/24]
nameservers:
addresses: [dnsserver1,
enp0s19:
dhcp4: no
dhcp6: no
addresses: [192.168.7.3/24]
nameservers:
addresses: [dnsserver1,
enp2s0:
dhcp4: no
dhcp6: no
addresses: [192.168.8.3/24]
nameservers:
addresses: [dnsserver1,
There's no reason for anything in netplan to care what the device is numbered '9'; and it's not even the last interface configured in the yaml file. This smells like a systemd bug.
Could you please attach the file that netplan generates in /run/systemd/ network, as well as /var/log/syslog to see if systemd-networkd reports any error?
Thanks!