Confusing wording in official documentation regarding pool prefixes and IP assignment #14795
Replies: 3 comments 6 replies
-
I don't see a problem having a prefix of 10.1.2.0/24 and then assigning IP address 10.1.2.0/32 to my server interface. Do you? |
Beta Was this translation helpful? Give feedback.
-
A pool is a bunch of individual (/32) IP addresses. Every address is a separate address, and there's no network address or broadcast address. It's perfectly fine to assign an address ending .0 or .255 to a loopback interface. In any case, a /24 boundary has no significance; there are no class A/B/C ranges any more. As regarding inconsistency in the documentation, the link you supplied gives a 404, so I don't know what you're quoting. I checked the Netbox source code and I only found one instance of the word "wherein":
So I don't know what exactly the "If enabled" is referring to. If I search specifically for the phrase "If enabled" then I get more hits, but I don't see the text you quoted:
The nearest text I can find is this:
This is the Netbox 3.7.0 code I'm grepping (which os what demo.netbox.dev is running) |
Beta Was this translation helpful? Give feedback.
-
That would be news to me. When I create the prefix, say, 10.1.2.0/24, mark it as a pool and then try to create and assign the address 10.1.2.0/24 to an interface, Netbox will not allow it, saying that it "is a network ID, which may not be assigned to an interface". I can create the address, but I cannot assign it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is NOT a question/complaint about assigning network IPs to interfaces. I've read issues such as #13392 and while I don't necessarily agree, I do acknowledge it.
I did however notice that https://demo.netbox.dev/static/docs/core-functionality/ipam/ says "If enabled, NetBox will treat this prefix as a range [..] wherein every IP address is valid and assignable" (emphasis mine). Isn't this a contradiction, then? Network IPs cannot be assigned to an interface, period. Right?
Beta Was this translation helpful? Give feedback.
All reactions