can't add more than ~1024 IP addresses

Bug #1993105 reported by TomaszChmielewski
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
netplan
Invalid
Undecided
Unassigned
systemd
Unknown
Unknown
systemd (Ubuntu)
Triaged
Low
Unassigned

Bug Description

I've migrated from Debian (using /etc/network/interfaces) to Ubuntu 22.04 (using netplan). To my surprise, it's not possible to add more than 1024 IP addresses using netplan.

It errors in syslog with:

Oct 17 07:19:50 ktsend11 systemd-networkd[678]: /run/systemd/network/10-netplan-ens192.network:3299: Failed to allocate new address, ignoring assignment: Argument list too long
Oct 17 07:19:50 ktsend11 systemd-networkd[678]: /run/systemd/network/10-netplan-ens192.network:3300: Failed to allocate new address, ignoring assignment: Argument list too long
Oct 17 07:19:50 ktsend11 systemd-networkd[678]: /run/systemd/network/10-netplan-ens192.network:3301: Failed to allocate new address, ignoring assignment: Argument list too long
Oct 17 07:19:50 ktsend11 systemd-networkd[678]: /run/systemd/network/10-netplan-ens192.network:3302: Failed to allocate new address, ignoring assignment: Argument list too long

As a result, only around 1024 IPs are present in the system:

# ip addr|grep -c inet
1027

information type: Private Security → Public
description: updated
Revision history for this message
TomaszChmielewski (mangoo-wpkg) wrote :

The actual bug is in systemd:

https://github.com/systemd/systemd/issues/24852

A workaround is to use network-manager:

# apt install network-manager

Then in /etc/netplan/*yaml config files containing many IPs - use:

network:
  renderer: NetworkManager # <------ this
  version: 2
  ethernets:
    eth0:
      addresses:

Revision history for this message
Lukas Märdian (slyon) wrote :

Thank you for your investigation Thomasz, I've assigned the bug to the systemd project instead of netplan.

Changed in netplan:
status: New → Invalid
Changed in systemd (Ubuntu):
status: New → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.