DHCP Service
NVIDIA Config Manager’s DHCP service generates and manages ISC Kea DHCP server configurations from data supplied by the selected DCIM provider. The service automates IP address assignment, DHCP reservations, and Zero Touch Provisioning (ZTP) for network devices. The bundled Nautobot provider’s data model is documented separately.
Overview
The DHCP service:
- Queries the selected DCIM provider for DHCP-relevant network data (prefixes, IP addresses, devices)
- Generates Kea DHCP4/DHCP6 configuration files with subnets, pools, and reservations
- Manages Kea server configuration updates through the Kea Control Agent API
- Supports ZTP integration with device-specific boot script URLs
Key features include:
- Dynamic Configuration Generation: Automatically generates Kea config from the selected DCIM source of truth
- Static DHCP Reservations: Device-specific IP assignments based on MAC address or serial number
- Dynamic IP Pools: Configurable ranges for transient device addressing
- ZTP Integration: DHCP options for automated device bootstrapping (boot scripts, firmware URLs)
- Multi-Site Support: Aggregate and site-local DHCP server deployments
- IPv4 and IPv6: Full support for both DHCP4 and DHCP6
- Configuration Validation: Validate configs against Kea Control Agent API before deployment
Getting Started
For the bundled Nautobot provider, configure DHCP in Nautobot as follows:
Before you begin, make sure you understand the data model. Read DHCP Modeling in Nautobot to learn about tagging network prefixes and IP addresses.
Follow the procedures on this page to define and generate your DHCP configuration.
Set up Subnets and Gateways
-
Set up your prefixes. Tag network prefixes with
dhcp-subnet. -
Define gateway relationships. Create
prefix-to-gatewayrelationships for each subnet.
Set up Reservations and Pools
-
Configure reservations. Tag device IPs with
dhcp-reservefor static assignments. -
Define pools. Tag IP ranges with
dhcp-poolfor dynamic allocation.
Set up DHCP and ZTP Options
- Add config contexts. Provide DHCP options and ZTP URLs for devices.
Generate the DHCP Configuration
- Generate configuration. Run
nv-config-manager-dhcp-confgento create Kea configuration files.
Architecture
The DHCP service consists of:
- Configuration Generator (
nv-config-manager-dhcp-confgen): Queries the selected DCIM provider and generates Kea config files - Kea DHCP Server: ISC Kea DHCP4/DHCP6 server instances
- Kea Control Agent: API for managing Kea configuration and leases
- PostgreSQL Lease Database: Shared lease storage for high availability
- Redis Cache: Stores previous configuration for subnet ID preservation
Kea Multi-Threading
The generated DHCPv4 configuration includes a Kea multi-threading block. By
default Kea auto-detects the worker count (thread-pool-size: 0) and keeps a
64-packet queue. Tune it with networkDhcp.kea.multiThreading in the Helm
values, or with dhcp.kea_multi_threading in the installer configuration.
This example gives two threads and a queue of 16. Invalid values fail the Helm
render, and the configuration generator rejects them at refresh time. The
resolved sizes are written to the shared [dhcp.kea] section as
thread_pool_size and packet_queue_size. See the
ISC multi-threading guidance
for sizing recommendations.
CLI Usage
Basic Configuration Generation
Refresh Cached Configuration
Getting Help
Advanced Options
In Kubernetes, the refresh process generates and publishes desired configuration to Redis every five minutes. A sidecar in each Kea pod monitors Redis, applies changed configuration through the Kea Control Agent, and verifies the running configuration hash.
Configure Container Probes
Set networkDhcp.probes in a Helm values override to tune the DHCP containers’
Kubernetes health checks. When using installer-generated values with Helm or
ArgoCD, layer this override after values-generated.yaml.
For example, allow the API container more failed liveness checks before a restart and enable a startup probe:
The supported container keys are kea, healthcheck, api, and confgen.
Each accepts liveness, readiness, and startup settings. Set
enabled: false to omit a probe, or enabled: true to enable one that is off
by default. Startup probes are off by default for every container; readiness
probes are off by default for kea and confgen.
Probe fields such as periodSeconds, timeoutSeconds, and failureThreshold
override the chart defaults. Zero values are preserved. Set a field to null
to remove an inherited default. A custom httpGet, tcpSocket, exec, or
grpc handler of a different type replaces the default handler. Overrides of
the same handler type merge with its defaults. For example, setting only
httpGet.path preserves the default port. Without a custom handler, an enabled
probe uses the container’s default health check.
Keep HTTP liveness checks on /livez and strict readiness checks on
/healthcheck. A configuration mismatch should affect readiness without
restarting Kea. The confgen container uses an exec probe that checks its
heartbeat.
Manage Leases
The DHCP dashboard summarizes active leases, reservations, configured pools,
and the age of the last successful background configuration sync reported by
the DHCP API’s /metrics endpoint. A configuration age older than 10 minutes
appears yellow; an age older than 30 minutes appears red. A stale value can
indicate a problem with DHCP configuration generation. Use the configuration-age
tooltip and service logs to troubleshoot it. When monitoring.grafanaUrl is
configured, View Grafana opens the dashboard in a new tab.
Leases, reservations, and pools load 100 at a time as you scroll so the dashboard remains responsive with thousands of records. The active-lease summary reads the shared lease database, so clearing a lease is reflected regardless of which DHCP server answers the next request. Summary counts are calculated independently from the detail rows loaded in the browser. Use the filter to search the selected collection by its displayed fields. Reservation and pool results show exact filtered totals. Select the Active leases, Reservations, or Pools tab to inspect each view. You can also clear an active lease after confirming the action.
The summary requires the Kea statistics-command hook (libdhcp_stat_cmds.so),
which is enabled in generated DHCP configurations. When upgrading, refresh the
DHCP configuration on every replica before using the updated summary endpoint.
Lease counts cover the subnets configured on the responding Kea server.
Reload data re-fetches the latest dashboard API responses. It does not trigger a configuration sync or regenerate the Kea configuration.

Collection requests default ip_version to 4; pass ip_version=6 to select IPv6. Lease and reservation item requests infer the version from the address and also accept an optional matching ip_version.
List leases with a bounded collection request:
The response contains a leases array and an opaque next_cursor. When next_cursor is not null, pass it unchanged in the next request together with the same filters. This also applies to the optional search parameter: each request scans a bounded chunk of the lease inventory, and following next_cursor continues the same search through the next chunk. The dashboard follows these cursors automatically as you scroll.
Reservations and configured pools use the same bounded query parameters:
These responses contain reservations or pools, an exact total_count for the current filter, and an opaque next_cursor. The optional subnet parameter on all three collection routes matches one exact configured prefix; records without a configured subnet do not match it. Pass the cursor unchanged with the same ip_version, limit, search, and subnet values to continue.
Look up the device holding a lease:
Look up a configured reservation by address:
Delete a lease so the address can be reassigned:
Lease responses use the Config Manager schema and include subnet prefixes. A successful delete returns 204 No Content; a missing lease returns 404 Not Found.
Related Documentation
- DHCP Modeling in Nautobot - Detailed guide on tagging and config contexts
- Network ZTP Service - Zero Touch Provisioning integration
- Nautobot Getting Started - Understanding Nautobot data model
- API Reference