Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

VRFs · IPAM Automation

Direct answer

VRFs in IPAM separate overlapping address spaces, so the same prefix can exist in different VRFs. Automation must always allocate within the correct VRF.

When to use this

Use this when recording VRFs in an IPAM so overlapping address spaces stay separate.

First 30 seconds

1. VRFs separate routing tables/address spaces.

2. Model route targets.

3. Enforce uniqueness where needed.

4. Assign prefixes/IPs to VRFs.

5. Generate configs.

Operational verification

VRF → prefixes/IPs → device VRF config

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
IPAM automation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformIPAM automation · Automation implementations are tool and platform specific. Use the adjacent Domain for the technology being automated and this Domain for automation behavior.
Scope / prerequisiteUse this when recording VRFs in an IPAM so overlapping address spaces stay separate.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification path Verify boundary

The negative fixture should deliberately exercise risks such as duplicate labels, stale inventory, conflicting authority, broad filters, race between read and write, orphaned relationships and automation acting on data not yet reconciled, choosing the cases most relevant to VRF identity/route-distinguisher context, overlapping prefix namespaces, tenancy and ensuring address/prefix queries include the correct routing domain.

Step 2 Common mistakes Narrow the fault
  • Prefixes assigned to the wrong VRF.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • VRFs separate overlapping address spaces.
  • The same prefix can exist in two VRFs.
  • Allocate within the correct VRF.
Key checks
  • curl -s -H 'Authorization: Token <t>' https://<netbox>/api/ipam/vrfs/ — VRFs
  • Route targets — import/export
  • enforce_unique per VRF — duplicates
ReferenceImportant terms & boundaries1 section · depth on demand

In depth

VRFs in IPAM automation separate address spaces that may overlap. Every allocation must target the correct VRF, or automation might hand out an address that is free in the global table but already used in a customer or guest VRF — or vice versa.

Rules for automation:

  • Always specify the VRF in lookups and allocations.
  • Model each routing domain as its own VRF in IPAM, matching the network.
  • Enable unique enforcement within each VRF.
  • Treat the global table as a VRF too (explicit vrf_id=null).
curl -s -H "Authorization: Token $NB_TOKEN" \
  'https://netbox.example.com/api/ipam/ip-addresses/?address=10.120.0.10&vrf=GUEST'
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docIPAM automation current

Authoritative/upstream documentation reviewed for bounded claims in IPAM Automation > VRFs. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://netbox.readthedocs.io/en/stable/models/ipam/ · confidence 94%
Depth when you need it

Deep reference

Healthy vs suspicious evidence

Output interpretation

For VRF identity/route-distinguisher context, overlapping prefix namespaces, tenancy and ensuring address/prefix queries include the correct routing domain, prefer typed fields and stable IDs over human presentation text.

Confirmation

Confirm action

Continue?