Pcornel
Automation · NetBox

IPAM

Cheat sheet · https://pcornel.dk/topic.php?topic=5877

Back to the Topic

Answer

NetBox IPAM manages aggregates, prefixes, IP ranges, addresses, VLANs and VRFs, with utilization and next-available allocation through the API.

Remember

  • IPAM covers aggregates, prefixes, ranges, IPs, VLANs and VRFs.
  • Utilization is shown per prefix.
  • Next available prefix/IP via API.

First checks

  • curl -s -H 'Authorization: Token <t>' https://<netbox>/api/ipam/ip-addresses/?device=<n> — IPs per device
  • Prefix utilisation — capacity
  • Duplicate checks (enforce_unique) — quality

Verify in this order

IPAM objects → assignments

Where it usually breaks

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5877

Confirmation

Confirm action

Continue?