First available IP address on the prefix should not be a network address #6127

Closed
opened 2025-12-29 19:37:05 +01:00 by adam · 2 comments
Owner

Originally created by @abhi1693 on GitHub (Feb 22, 2022).

NetBox version

v3.2.0-beta1

Python version

3.8

Steps to Reproduce

  1. Create a prefix with the following data
    • Prefix: 65.49.10.64/26
    • Is pool: true
  2. Go to the prefix page for 65.49.10.64/26 and notice the First available IP

Expected Behavior

The first available IP is the network address ie 65.49.10.64/26

Observed Behavior

The first available IP is the network address should be 65.49.10.65/26

Originally created by @abhi1693 on GitHub (Feb 22, 2022). ### NetBox version v3.2.0-beta1 ### Python version 3.8 ### Steps to Reproduce 1. Create a prefix with the following data - Prefix: `65.49.10.64/26` - Is pool: `true` 2. Go to the prefix page for `65.49.10.64/26` and notice the `First available IP` ### Expected Behavior The first available IP is the network address ie `65.49.10.64/26` ### Observed Behavior The first available IP is the network address should be `65.49.10.65/26`
adam added the type: bug label 2025-12-29 19:37:05 +01:00
adam closed this issue 2025-12-29 19:37:06 +01:00
Author
Owner

@tovin07 commented on GitHub (Feb 22, 2022):

Hi @abhi1693,

I think this is not a bug at all. Because you set is pool flag to true, therefore, all IP in this range should be valid to be assigned.

You can check this in the documentation:

And in source code:

@tovin07 commented on GitHub (Feb 22, 2022): Hi @abhi1693, I think this is not a bug at all. Because you set `is pool` flag to `true`, therefore, all IP in this range should be valid to be assigned. You can check this in the documentation: - https://netbox.readthedocs.io/en/stable/core-functionality/ipam/#prefixes - https://netbox.readthedocs.io/en/stable/models/ipam/prefix/ And in source code: - https://github.com/netbox-community/netbox/blob/develop/netbox/ipam/models/ip.py#L343
Author
Owner

@abhi1693 commented on GitHub (Feb 22, 2022):

@tovin07 Somehow I read the documentation wrong. I'll close this bug

@abhi1693 commented on GitHub (Feb 22, 2022): @tovin07 Somehow I read the documentation wrong. I'll close this bug
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6127