Use this when IPAM automation allocates wrong or duplicate addresses.
IPAM Automation Troubleshooting
Troubleshoot IPAM automation by checking API tokens and permissions, that the parent prefix and VRF are correct, duplicate or stale records, race conditions between parallel jobs, and drift between IPAM and DHCP or DNS.
1. Problems: duplicates, exhausted prefixes, wrong VRF, stale records, API permissions.
2. Check API errors.
3. Reconcile with network.
4. Clean stale entries.
5. Fix allocation logic.
request → IPAM → conflict/error → fix
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
curl -sS -D - -o /dev/null <ipam-health-or-read-url>Primary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Command read-back and what it shows Verify boundary
Known-good is the read/health request returns a successful HTTP status, the intended IPAM object reflects the expected allocation/change, and the original consumer can use the assigned address/state; broken state is connection errors, 401/403/5xx, stale/conflicting records or successful API response without the intended allocation/downstream effect. A health/read response shows reachability and that endpoint's response only, but it does not show write authorization, uniqueness enforcement or DHCP/DNS/network convergence.
Step 2 Common mistakes Narrow the fault
- Debugging without checking API permissions.
Step 3 Observation-driven branch and next-check logic Narrow the fault
If the health/read endpoint is unreachable or returns 5xx, inspect service/network path; if it responds 401/403, inspect token and role; if it responds successfully but the requested allocation/update fails, inspect payload validation, conflicts and downstream integration state.
- Race conditions between parallel jobs.
- Wrong parent prefix or VRF.
- Stale records.
- Duplicate IP report — conflicts
- API error responses — causes
- Reconciliation differences (scan vs IPAM) — accuracy
ReferenceHow it works1 section · depth on demand
How it works
IPAM Automation Troubleshooting is governed by IPAM API availability, authentication/authorization, address-space records and transaction/update state. Automation reads or reserves address data through an IPAM API, which validates identity and business rules before committing records; the IPAM database owns allocation intent while DHCP/DNS/network devices may own downstream realization. API gateway, credentials, schema/version compatibility, DNS/DHCP integrations and network reachability are adjacent boundaries. The important state separation is that an HTTP-successful health endpoint does not show a reservation transaction is authorized or that downstream DNS/DHCP state has converged.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Troubleshooting IPAM automation usually involves allocation conflicts, wrong scope, or data inconsistencies between IPAM, DNS, DHCP and the network.
| Symptom | Check |
|---|---|
| Address already in use | Was it allocated in IPAM? Check ARP/ping; stale reservations |
| Allocation from wrong prefix | Filters: site, VRF, role, status in the API call |
| Duplicate allocations | Non-atomic "find then create" logic; use available-ips endpoints |
| DNS record missing | Separate step failed; check DNS automation logs |
| Prefix full | Utilisation; reserved ranges; reclaim stale addresses |
| VRF confusion | Same IP exists in several VRFs; always pass VRF |
Reconcile IPAM with reality regularly (ARP tables, DHCP leases, DNS) and report differences, so data problems are found before they cause allocation failures.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in IPAM Automation > IPAM Automation Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://netbox.readthedocs.io/en/stable/models/ipam/ · confidence 94%