-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
networkd artifically limits IPs per link to 2048 #24852
Comments
|
We put limits on all resources, we really have to. But these limits should really be larger than any real-life usecase needs them. So let me ask, how high of a limit would work for you? If so, we should probably double that and make it the new limit, until the next person complains |
|
Background: Problem: @poettering The basic idea about setting a resource limit is good, but I think limiting the number of static configurations is not a good way. WDYT? |
|
I need to put a /20, so about 4096 IPs. 8192 would work and allow me to have a management IP as well. I also don't see any reason why this limit is hard-coded and not exposed to the administrator. I understand the need for a limit, and 99% of users will never hit this limit, but in the event that someone does hit the limit, they should be able to modify it without having to recompile systemd. |
I am in the camp that we really should put limits on most resources, but high enough so that they don#t catch valid uses, but only runaway uses. |
|
I'm unable to set the number of IPs to more than 1024 per interface - so hitting the next line: https://github.com/systemd/systemd/blob/main/src/network/networkd-address.c#L26 What's more worrying, it sets these IPs up silently - i.e. the service starts, only adds 1024 IPs, exits with no apparent error, and the rest of IPs are simply missing. |
|
@tchwpkgorg -- in the meantime, one workaround is setting up bridge interfaces in netplan and assigning the IPs to the bridge interfaces. Kludgy, but it worked for my use case. |
|
@ianling I'm using netplan, it supports a different backend/renderer than systemd-networkd - NetworkManager. I've used it as a workaround, works well: https://bugs.launchpad.net/netplan/+bug/1993105 |
|
Any progress on this? We're trying to add 1500+ IPs to a bond interface, which fails with the |
Component
systemd-networkd
Is your feature request related to a problem? Please describe
https://github.com/systemd/systemd/blob/main/src/network/networkd-address.c#L25
networkd has a hard-coded limit of 2048 addresses on a link. I have a need for >2048 IPs on a link and am hitting this limit.
Describe the solution you'd like
I would like a way to override this limit.
Describe alternatives you've considered
My work around is currently to create several links and assign each of them <2048 IPs.
The systemd version you checked that didn't have the feature you are asking for
249.11 (ubuntu jammy)
The text was updated successfully, but these errors were encountered: