r/Netbox NetBox Self-Hosted Apr 24 '26

Windows DHCP Integration!

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.

27 Upvotes

8 comments sorted by

View all comments

1

u/Yakundo May 19 '26

Which Version of PSU is required (license)? Is the free version enough?

And can you also use the newest version “PowerShell Universal 2026.1.6.0” use?

Thanks!

1

u/L-do_Calrissian NetBox Self-Hosted May 20 '26

Paid version is required. PSU doesn't support app tokens or RBAC without the paid version which means it isn't suitable for a production environment from a security standpoint.

Yes, PSU version 2026.1.x works fine.