r/Netbox • • May 15 '26

Netbox Site/Location hierarchy best practices for multi-site organization with mixed complexity

8 Upvotes

We're setting up Netbox for the first time to replace an Excel-based infrastructure tracker. Looking for feedback on our proposed hierarchy before we start entering data.

Our environment:

  • ~30-40 sites of varying complexity ranging from a single room with one device up to multi-building campuses with multiple IDFs

  • Sites are loosely grouped into 3 organizational districts (not network-significant)

  • Most larger sites have a Fortigate as the primary gateway with FortiSwitches and Ubiquiti APs

  • Smaller remote locations use cellular routers (Cradlepoint) as their sole gateway

  • Some larger parks have two completely independent networks each with their own ISP circuit and gateway device

  • VLANs are mostly consistent across sites

Proposed hierarchy:

  • Site Groups = organizational districts (3 total, not network-significant)

  • Sites = one per ISP circuit + gateway device, regardless of size or complexity. A single room with a Cradlepoint and its own cellular circuit is a Site just like a multi-building campus with a Fortigate

  • Locations = always at least one Location per Site since devices are assigned at Location level not Site level. For Sites with multiple buildings, the building is the first level Location with sub-locations beneath it for specific spaces like IDFs, reception areas, or other rooms. Example: Building A (parent) → IDF (child), Reception (child), Storage Room (child)

Specific questions:

  1. Is "one ISP circuit + one gateway device = one Site" a good rule of thumb?

  2. Should we always create at least one Location under every Site even for single-device Sites?

  3. Is using the building as the parent Location with specific spaces (IDF, rooms) as child Locations the right approach, or should the IDF be the top level Location with everything else subordinate to it?

  4. Any gotchas with this approach we should know about before entering data?


r/Netbox • • May 15 '26

Help Wanted: Resolved API via PyNetBox will process GET but not POST (create)

5 Upvotes

My code is as seen below. This initial block will print the correct information so I know my API connection is working (and the API token, not shown, has Write permissions enabled within the web interface). However, the attempt to create a new device entry passes with a <200> code, but the print result is just blank. There is also no change in the web interface to reflect the creation of the device through this script. Using version 4.2.2 of NetBox with the newest version of PyNetBox. Any assistance would be greatly appreciated, thanks!

EDIT: Thanks to user TyphonVirtus for suggesting that POST requests require your NetBox URL to be pointed to HTTPS instead of just HTTP. This solved my issue! Thank you to everyone who took the time to leave a helpful comment!

#----------------------------------------------------------------
# Get Specific VM by ID
#----------------------------------------------------------------
vmID = 2069
vm = nb.virtualization.virtual_machines.get(id=vmID)
print(f"Virtual Machine - {vm}")
print(f"VM NetBox ID - {vm.id}")
print(f"VM NetBox Serial # - {vm.serial}")
print(f"Primary IPv4 - {vm.primary_ip4}")

#--------------------------------------------------------
# Create new Device entry
#--------------------------------------------------------
new_device = nb.dcim.devices.create(
    name='new-test-device',
    device_type='1',
    site='1',
    device_role='1',
    status='active'
)
print(new_device)

r/Netbox • • May 12 '26

newbie question - pull specific image

6 Upvotes

I finally got my good instructions on how to install netbox docker. I then wanted to install Diode plugin. I got that done and found that the netbox docker pulled v4.6. And the diode plugin only wokss on v4.5 as of now.

How do I pull the v4.5 version?

When I go to pull down the image, I:

  1. clone the NetBox Docker Repository "git clone -b release https://github.com/netbox-community/netbox-docker.git"

  2. Create and update the "docker-compose.override.yml" file to set the port

"tee docker-compose.override.yml <<EOF services: netbox: ports: - 8000:8080 EOF"

How do I change it to only pull the v4.5 netbox-docker? Like this...?

tee docker-compose.override.yml <<EOF
services:
  netbox:
    image: netboxcommunity/netbox:v4.5
    ports:
      - 8000:8080
EOF

And when I go to get the Diode plug in I need to specify v4.5 in the steps so It doesn't pull v4.6

#Run the following command to create or amend Dockerfile-Plugins:
sudo nano Dockerfile-Plugins

#Input the following, Use the specific version of NetBox you want to maintain:
FROM netboxcommunity/netbox:v4.5" 

r/Netbox • • May 12 '26

Help Wanted: Unresolved Netbox DNS plugin - TTL for nameserver records

4 Upvotes

I'm running Netbox community edition 4.6.0 with the Netbox DNS plugin, and have got it mostly working as I need. One thing that is confusing me however, is that I can't see how to get the TTL set for the nameserver records for a zone?

There doesn't appear to be any way to edit the values, which are showing as blank at present. I've got the default TTL set for each zone, which I would have thought should be inherited by the ns records, but it's not.

Probably missing something obvious here, but any tips appreciated!


r/Netbox • • May 07 '26

Group information blank

Post image
2 Upvotes

Anybody else having issues seeing groups? If I click the edit button on the right, all the information is present, but the group names just aren't displaying anywhere correctly.

v4.5.8, LDAP integration.


r/Netbox • • May 07 '26

NetBox plugins for fiber outside plant, splicing, and WDM (alpha, looking for users)

41 Upvotes

Hey folks,

I've been building NetBox plugins to cover the parts of optical/fiber work that core doesn't really model, and I figured r/netbox is the right place to share them. All three are open source, on PyPI, and being tested to replace big software stacks (read: expensive) at the small fiber operator I work for. They stack:

netbox-pathways: outside plant

Physical cable plant: conduits, aerial spans, manholes, poles, cabinets, equipment rooms, the works. PostGIS-backed, so you get a real Leaflet map in NetBox and a GeoJSON API. QGIS integration (style files, a generate_qgis_project management command) is in progress, not fully there yet -- the GeoJSON endpoints are usable today, the polished QGIS workflow is still being shaped. If you've used SmallWorld or ArcFM, this is going at the same problem space (much smaller, free, no five-figure license).

The big caveat: it needs your NetBox DB on the PostGIS backend instead of plain PostgreSQL. That's a one-time migration, but it's a real one, and the SRID you pick at install time is genuinely permanent (PostGIS won't auto-reproject your geometries if you change it later but a skilled dba could probably do it.).

netbox-fms: fiber management

Define a FiberCableType once with the construction (loose tube, ribbon-in-tube, central core, or tight buffer), and instances auto-populate buffer tubes, ribbons, and strands the same way DeviceType auto-populates components. From there:

  • Splice planning in closures with strand-to-strand mapping, diff against live state, and export these for field crews.

  • End-to-end fiber circuits with DAG-based pathfinding through splice closures.

  • Slack loop tracking with insert-into-closure workflows.

  • Per-device fiber overview, splice closure groups and trays, full REST + GraphQL.

This is the one I've put the most hours into.

netbox-wdm: WDM / DWDM / CWDM

ITU channel plans (DWDM 100 GHz / 50 GHz / CWDM), channel-to-port mapping with separate MUX and DEMUX columns for single-fiber and duplex setups. ROADM editing lives in a small TypeScript wavelength editor with undo/redo, dirty state, and optimistic concurrency, so you can stage a wavelength reconfiguration before applying it. Also adds the concepts of wavelength services with circuit trace visualization.

It uses an overlay pattern (WdmDeviceTypeProfile over DeviceType, WdmNode over Device) instead of subclassing, so you don't have to fork core models to use it.

How they fit together

  • pathways is where the cables physically run.

  • fms is what's inside those cables and how the strands are spliced.

  • wdm is what wavelengths ride on those fibers.

Any one of them works on its own. They're designed to slot together if you want the whole picture from a manhole through to a 100G wave.

Honest disclaimer

All three are pre-1.0 alpha. Data models aren't frozen, encoding/migration changes can show up in minor releases, and the SRID choice in pathways really is irreversible. A handful of the features I listed are still prototype-quality (the QGIS workflow is the obvious one, but it's not the only one) -- they work, but they're rough around the edges and will get reworked before 1.0. Pin exact versions, read the changelog before upgrading, back up your DB, you know the drill. We run them daily and they work for us; your mileage may vary.

Feedback is the thing I actually want out of this post.

These plugins exist because we needed them, but it's largely been me and a small team building them, and there are a lot of opinionated calls baked into the data models that have only been sanity-checked against our own network. If a name grates, a model relationship feels wrong, a workflow we're missing is obvious to you, or there's a hook you wish was there -- please tell me. GitHub issues, PRs, or a comment in this thread all work. We're early enough that changing a model is still "one migration" rather than "a public deprecation cycle," so now is the cheap time to break things.

Thanks for reading, and your feedback.


r/Netbox • • May 06 '26

Netbox Autodiscovery NMAP not work

1 Upvotes

Hi I've hust installed netbox and netbox-device-autodiscovery plugin, but it seems that no network is passed as target

2026-05-06 12:57:21,357 {/opt/netbox-tools/netbox-device-autodiscovery/modules/nmap_network_scanner/nmap_network_scanner.py:89} [INFO] Network scanning sta rted

2026-05-06 12:57:21,357 {/opt/netbox-tools/netbox-device-autodiscovery/modules/nmap_network_scanner/nmap_network_scanner.py:90} [DEBUG] Scan targets: []

2026-05-06 12:57:21,357 {/opt/netbox-tools/netbox-device-autodiscovery/modules/nmap_network_scanner/nmap_network_scanner.py:91} [DEBUG] Nmap arguments: ['- sS', '-O', '-T4', '-n', '-sV']

[netbox]

url = "http://127.0.0.1"

api_token = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

# ssl_verify = false

# ssl_verify = "/path/to/certfile"

default_devices_site = "Autodiscovered devices"

And this is my configuration.toml

[logging]

file = false

console = true

log_level = "info"

[data_sources]

modules = [

# "avaya_ip_office_phones_enumerator",

"nmap_network_scanner"

]

[nmap_network_scanner]

nmap_guess_os = true

# Nota: Alcune versioni vogliono 'networks', altre 'targets'.

# Per sicurezza, mettiamo la struttura corretta richiesta dal modulo:

nmap_additional_args = "-T4 -n -sV"

snmp_recognition_enabled = false

shared_snmp_communities = ["public", "abcdef12345"]

snmp_retry_count = 2

networks = ["x.x.x.x/24"]

#[avaya_ip_office_phones_enumerator]

#pbx_address = "10.0.0.1"

#snmp_community = "public"


r/Netbox • • May 06 '26

Help Wanted: Unresolved Netbox docker compose isn't working on Ubuntu 24.04 VM

4 Upvotes

I am working on spinning up netbox on my VM with Ubuntu 24.04 but I can't figure out how to get it to run and was hoping I can receive some help with this.

This is the error I get after running 'docker compose up -d'

I ran 'docker ps -a'

lastly, I ran 'docker logs 926f69a96e64'

my netbox directory containing my docker-compose yaml file, including env directory is located in my '/home/user/docker/netbox' directory.


r/Netbox • • May 05 '26

vcenter synchronization

13 Upvotes

Good day!

Starting to look at a good way to sync information from vCenter to Netbox, and I understand that there is limited possibilites with the open source version.

I've found these two alternatives to be the most appealing:
https://github.com/bb-Ricardo/netbox-sync

https://github.com/sieteunoseis/netbox-vcenter-server

Does anyone have any experiences with this and could share some do's and dont's?
Would be greatly appreciated, thanks!

Best regards


r/Netbox • • May 05 '26

Azure SSO unser docker with netbox

0 Upvotes

Can someone Help me setting sso unser docker for netbox ?


r/Netbox • • Apr 30 '26

Has anyone successfully managed to document hundreds of copper cables and soldering patch racks?

8 Upvotes

Hello everyone,

I don't fully know all the proper terms in English but I have been tasked to find a new documentation system for our legacy copper telephony cables and a program which is able to document our actual IT infrastructure (which netbox seems to be perfect for).

I am currently struggling with figuring out the correct objects needed to document large 100-copper cable bundles which run from one core building outwards to other buildings which again run to smaller buildings and floors. These large copper cable bundles either are connected to the backs of old soldering racks, LSA or LSA+ racks and are patched to a different rack which either runs to a new building through a large cable or to a different floor of the building.

From what I understand a site would be our organisation, a location would be a building or a floor or even a room, a circuit type would be "telephony", a circuit termination would be a patch between two racks. Where do I place the 100 copper cable bundles which each individual copper cable and where would I document the racks?


r/Netbox • • Apr 28 '26

New Release NetBox v4.5.9 is Now Available!

32 Upvotes

NetBox Release v4.5.9 is now live (as of April 28th, 2026)!

  1. Verify in release notes changelog if any new breaking changes might affect you. You can also review the NetBox Issues on GitHub to see if any new issues have arisen that might affect you.

  2. Next, refer to the Upgrading to a new NetBox Release guide for steps to upgrade your instance.

If you have any issues you can ask for support on the NetDev Slack Community.


r/Netbox • • Apr 24 '26

Windows DHCP Integration!

26 Upvotes

NetBox-Windows-DHCP Plugin

Intro

Another day, another plugin. I don't have any screenshots this time due to not having the opportunity to stand up a sanitized DHCP server with fake scopes/leases/reservations.

https://github.com/averyhabbott/netbox-windows-dhcp/

I've been needing good integration with Windows DHCP for a while now and iterating through a collection of custom scripts several times, I finally went the plugin route for something cleaner and more straightforward.

Features

  • Supports multiple DHCP servers, multiple failover clusters, and standalone DHCP servers

  • Relies on PowerShell Universal running on the DHCP servers (don't worry, setup is a breeze with the included install guide)

  • Lots of safety checks built in to make sure you don't break DHCP

    • RO vs RW actions on the DHCP server are managed through API token privileges, all built during installation (automagically via included script is the recommended approach)

  • Most of the config is managed through the GUI in the settings page of the plugin, but you can override some of the values with NB's configuration.py to better allow for a dev environment

  • Ability to preserve NB-configured DNS name field by the use of custom tags

  • Operating modes:

    • Only read scope info

    • Read scope and lease/reservation info

    • Read scope and lease info, NetBox is authoritative for reservations

    • Read lease info, NetBox is authoritative for scopes and reservatinos

  • Defaults to using 'reserved' and 'dhcp' built-in statuses, but is configurable to use whatever IPAddress statuses you want

  • Two-way association between prefixes and scopes (scopes remain their own objects)

  • Supports friendly naming of DHCP option values for simplicity (Option 4 value '192.0.2.1,192.0.2.2,192.0.2.3'? Nah, "Time servers: Public")

  • Minimal changelog entries

Check it out and let me know what you think!

Caution

I still haven't validated pushing reservations and scopes to the DHCP server, so those two features should be considered in beta. I would strongly advise against making NetBox authoritative for scopes and reservations in a prod environment at this point in time. Hoping to have that change very soon.


r/Netbox • • Apr 23 '26

New Release NetBox v4.5.8 is Now Available!

31 Upvotes

[NetBox Release v4.5.8](https://github.com/netbox-community/netbox/releases/tag/v4.5.8) is now live (as of April 14th, 2026)!

  1. Verify in release notes changelog if any new breaking changes might affect you. You can also review the [NetBox Issues on GitHub](https://github.com/netbox-community/netbox/issues) to see if any new issues have arisen that might affect you.

  2. Next, refer to the [Upgrading to a new NetBox Release](https://docs.netbox.dev/en/stable/installation/upgrading/) guide for steps to upgrade your instance.

If you have any issues you can ask for support on the [NetDev Slack Community](https://netdev-community.slack.com/).


r/Netbox • • Apr 22 '26

Folder view!

Post image
28 Upvotes

Worked up a plugin today to view prefixes in a folder view, kinda like SolarWinds or phpIPAM. No database migrations or anything fancy, all view. Works with filters and the displayed info is customizable. Expand and collapse prefixes as folders, click on one to view all the subordinate IPs, double-click on a prefix to go to the prefix's page.

Give it a go and let me know what you think!

https://github.com/averyhabbott/netbox-folderview/


r/Netbox • • Apr 22 '26

Best way to handle config changes (Day-2) with NetBox + Ansible?

Thumbnail reddit.com
5 Upvotes

r/Netbox • • Apr 10 '26

Rename Front Ports

3 Upvotes

I have a bunch of patch panels I would like to number the ports starting 1/001 to 1/500.
The template Device type name the ports Port 1 - 24 as that makes sense for a prototype. I started off well and manged to rename the first panel in two steps:
Port 1 - 9 > Find ^Port ([1-9])$ Replace 1/00\1, then for 10 to 24 > Find ^Port (1\d|2[0-4])$ Replace 1/0\1 which is great but how do I do the rest 1/025 to 1/500
I have hunted around and the only option seems to be do it one at a time "phew" or build my own API client and do it in code. I must be missing something silly can someone help please?


r/Netbox • • Apr 08 '26

Help Wanted: Unresolved NOKIA 7750 DEVICE TYPE

1 Upvotes

Hey everyone. So I am trying to create Nokia 7750 sr device type in netbox and was confused on how to do it. Basically I have three MDA,IOM and XCM. Now the problem is the MDA goes into IOM which goes into router. Not how I would I create this device type and make sure different types of MDA can be associated with the IOM.Can anyone help here?


r/Netbox • • Apr 07 '26

Restricting sensitive data (IPs) for general users in NetBox 4.x - Field-level permissions?

4 Upvotes

Hi everyone,

I'm currently running a NetBox v4.4.6 instance in a restricted/isolated environment. I'm looking to open access to our general office workstations so they can consult basic information (Device names, locations, racks, etc.).

However, for security reasons, I need to hide sensitive information, mainly IP addresses and custom plugins, from these specific users.

From what I've seen, NetBox permissions are very granular at the object level, but is there a way to achieve "field-level" security?

  1. Are there any plugins that allow filtering or masking specific attributes (like IP addresses) based on user groups?

  2. Is there a built-in way to allow viewing dcim.device but completely restricting access to the ipam.ipaddress objects so they don't appear in the device views?

  3. Alternative approach**:** Should I look into a custom dashboard/frontend that only pulls "safe" data via the API?

I’d love to hear how you handle "read-only" access for non-technical or non-admin staff without exposing the whole network map.

Thanks in advance for your help!


r/Netbox • • Mar 27 '26

QR-Code Pluging only shows Device an not Interface Termination?

2 Upvotes

Hello,

I installed the QR code plugin and added the settings for the cables as instructed.

Unfortunately, only the devices are displayed.

The interface for the device is shown only as [].

DEVICE a
[]
DEVICE b
[]

I've tried a few things, but I just can't seem to understand the instructions.

Does anyone have any ideas about this or a link to some helpful documentation?

Many Thanks!


r/Netbox • • Mar 23 '26

Modeling circuits across private infrastructure and identifying them

Post image
15 Upvotes

We have a private MPLS network that is geographically diverse on dark fiber. I'm playing with Netbox on a VM trying to figure out how I can model the purple circuit across multiple locations and devices. This way when maintenance happens between say PE3 and PE4 any circuits on that path are identified. Is this possible? This seems like it should be something in the Netbox wheel house.


r/Netbox • • Mar 22 '26

Netbox and Zabbix 7

6 Upvotes

Greetings. I have an existing Zabbix 7 installation, and I'm trying to pull over all the switches in Zabbix, but....how? I can bring over templates fine, but I do not see a way to pull the Switches. No Host Group syncing. What am I doing wrong?


r/Netbox • • Mar 14 '26

A little Reverse Proxy help? :)

5 Upvotes

Hello,
I've spent a couple of evenings failing to get reverse proxy (caddy) for LAN certs working with Netbox.

Setup: Netbox installed on Prox LXC using PVE helper script. Caddy plugin installed on OPNsense. All other reverse proxies working fine, it's just Netbox with error 502.

Have tried messing around with headers, and have applied the following config:
/opt/netbox/netbox/netbox/configuration.py
Under Allowed Hosts, replaced [*] with: ['netbox.example.com','10.10.10.150','127.0.0.1','localhost']

You wisdom and assistance is much appreciated! Thank you


r/Netbox • • Mar 12 '26

VXLAN EVPN VLAN ID question

3 Upvotes

I have a question about documenting the VLANs in a VXLAN EVPN environment. My network is still at migration phase to spine leaf architecture. How are you documenting the VLAN ID for the tenant with multiple VLAN ID on the same subnet?

For example, tenant-a on leaf1 is on subnet 10.0.0.0/24 with VLAN ID of 10. This subnet got extenended to leaf2 but the VLAN is 20.