Use this when recording VLANs in an IPAM so switch configuration can be generated from them.
VLANs · IPAM Automation
VLANs in IPAM are recorded with ID, name, site or group and linked prefixes, so automation can configure switch ports and SVIs consistently from the same data.
1. VLANs in IPAM with groups/scopes defining uniqueness.
2. Map to prefixes.
3. Assign to interfaces.
4. Generate switch configs.
5. Report usage.
VLAN record → interfaces/configs
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
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 Common mistakes Narrow the fault
- VLAN IDs reused across sites in the same L2 domain.
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.
- VLANs have ID, name and scope.
- Link VLANs to prefixes.
- Use them to generate switch config.
curl -s -H 'Authorization: Token <t>' https://<netbox>/api/ipam/vlans/?site=<site>— VLANs- VLAN groups/scopes — uniqueness domain
- VLAN ↔ prefix mapping — consistency
ReferenceWhy it matters1 section · depth on demand
What it is
VLAN automation allocates VLAN IDs per site or group and records name, purpose and prefix.
ReferenceImportant terms & boundaries2 sections · depth on demand
How it works
VLAN automation reserves the next free VID in the right VLAN group, records name and purpose, creates the matching prefix and pushes the VLAN to the switches serving that site.
Example
curl -H "Authorization: Token $T" 'https://netbox.example.com/api/ipam/vlans/?site=oslo&vid=20'
Use VLAN groups to scope IDs per site or per L2 domain.
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 > VLANs. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://netbox.readthedocs.io/en/stable/models/ipam/ · confidence 94%