Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

VLAN Creation

Direct answer

Creating a VLAN adds it to the switch's VLAN database (vlan <id>, optionally name <name>). Only then does the switch forward traffic for it on access ports and trunks.

When to use this

Use it when adding a new VLAN, or when ports assigned to a VLAN show as inactive.

First 30 seconds

1. show vlan brief — is the VLAN listed and active?

2. Missing → vlan <id> and name <name> in global configuration.

3. Repeat on every switch on the path, including transit switches.

4. show vtp status — VTP mode and whether VLANs are learned from a server.

5. show interfaces trunk — VLAN now in "allowed and active".

Operational verification

vlan <id> configured → VLAN active in the database → present on every switch on the path → trunks list it as allowed and active → ports in it come up

Evidence · next step

Confirm design/VLAN ID, create/restore the VLAN if appropriate, then re-check access/trunk usage.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
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.

PlatformCisco IOS / IOS XE · Cisco IOS XE
Key commandvlan <id>
Scope / prerequisiteUse it when adding a new VLAN, or when ports assigned to a VLAN show as inactive.
Show · 2Reference · 2
What next?3 suggested next steps
Catalog command links4
Evidence1
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

Operational workflow

Verification & Troubleshooting

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

1 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 and output interpretation Verify boundary

Use show vlan brief or equivalent VLAN detail to confirm the VLAN exists, has the expected ID/name and is active. Then verify member access ports independently and use trunk output to confirm the VLAN is actually carried where required. If an SVI is part of the design, validate its administrative and line protocol state separately and confirm it has the intended IP configuration. A VLAN that appears in the local database shows only local existence, but it does not show continuity through the network. When validating an end-to-end Layer-2 segment, check every trunk boundary or use topology knowledge plus targeted evidence so a VLAN-pruning gap is not hidden by healthy local state.

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.

command output · 1
Command lookup Jump straight to Cisco syntax
Key points

Assigning a port to a VLAN that does not exist leaves the port inactive (newer IOS versions create the VLAN automatically, older ones do not). The VLAN must exist on every switch it crosses, including transit switches with no access ports in it. With VTP, check the mode: in client mode you cannot create VLANs locally.

Key checks
  • show vlan brief — VLANs that exist and their access ports.
  • show interfaces <if> switchport — administrative and operational mode, access VLAN, native VLAN.
  • show interfaces trunk — trunks, native VLAN, allowed and forwarding VLANs.
  • show mac address-table vlan <id> — MAC addresses learned in the VLAN and on which port.
  • show spanning-tree vlan <id> — whether the ports forward in that VLAN.
ReferenceImportant terms & boundaries5 sections · depth on demand

In depth

Creating, naming and deleting VLANs

Cisco's Catalyst 9000 VLAN guide describes VLAN creation in global configuration with vlan <id> (1–4094), an optional name, and verification with show vlan id or show vlan name. Without a name, the default is VLAN followed by the zero-padded ID, for example VLAN0004.

C9300(config)# vlan 20
C9300(config-vlan)# name USERS
C9300(config-vlan)# exit
C9300(config)# vlan 30,40,50
C9300(config)# vlan 2000
C9300(config-vlan)# name LAB-EXT
C9300# show vlan id 20
VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
20   USERS                            active    Gi1/0/10, Te1/1/1
C9300# show vtp status | include Operating Mode
VTP Operating Mode                : Transparent
C9300(config)# no vlan 40

Documented behaviour

TopicDetail
VTP modeServer or transparent is required to create VLANs
VTP serverAdds or removes VLANs 2–1001 for the whole domain
VTP transparentChanges affect only this switch; VLANs are also saved in the running configuration
Extended VLANs (1006–4094)Not stored in vlan.dat unless VTP v3 is used
Deleting a VLANPorts assigned to it become inactive until reassigned
Assigning a port to a missing VLANCreates the VLAN; with interface templates, create it explicitly first
write eraseDelete vlan.dat too, or old VLANs return after the reload

Where the VLANs are stored

VTP modeNormal-range VLANs saved in
Server or clientvlan.dat only
Transparentvlan.dat and the running configuration
Off (VTP v3)Running configuration

Practice

  • Use VTP transparent or off, and manage VLANs with configuration templates. A VTP server with a higher revision number can overwrite VLANs across a domain.
  • Name every VLAN. Names show up in show vlan and in monitoring tools, and make mistakes visible.
  • Before deleting a VLAN, check show vlan id <n> and show interfaces trunk for ports still using it.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Known-good, transitional and broken reference

Identity/scope: physical/logical interface, VLAN or MST instance, peer system/port identity and source/destination MAC Known-good: the switchport mode is as designed, the intended VLAN is admitted, STP role/state matches design and MAC learning follows the expected logical path Transitional: RSTP proposal/agreement or DTP negotiation while counters/state progress toward forwarding Broken: suspended/individual member, VLAN missing or native mismatch, unexpected root/role, blocking when forwarding is required, or MAC movement on the wrong path Interpretation rule: compare the same object, scope and time window. What it does not show: link-up alone does not show the required VLAN/MAC path is usable end to end Next check: move one step toward the original workload using Verify switchport mode, VLAN admission and STP state, then confirm the source/destination MAC learns on the expected logical interface during the original flow. Platform/scope: Cisco IOS / IOS XE first; platform channel limits, hashing and negotiation options vary.

Quick reference

Creating a VLAN defines a Layer 2 broadcast domain on the switch. A VLAN must exist in the VLAN database before access ports can use it or trunks can carry it.

vlan 20
 name USERS
vlan 30
 name VOICE

Documented example, not captured output.

RangeNote
1Default VLAN, cannot be deleted
2–1001Normal range
1002–1005Reserved (legacy Token Ring/FDDI)
1006–4094Extended range

Check with show vlan brief. An access port assigned to a VLAN that does not exist is inactive.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

State model and protocol mechanics

A VLAN ID identifies a logical Layer-2 broadcast domain. On a switch, creating the VLAN makes that identifier locally known and available for interface membership and forwarding. The VLAN database and per-interface configuration are separate pieces of state: an access port can reference a VLAN, but forwarding depends on the VLAN being present and operational on the switch. Trunks carry VLAN-tagged traffic only when the VLAN is permitted and active according to the trunking model. An SVI is another separate object that provides Layer-3 termination for a VLAN when configured and operational. Because the VLAN ID is significant across every trunk in the intended Layer-2 domain, inconsistent creation or pruning can produce partial connectivity even though individual ports are up. Names are operational labels; the numeric VLAN ID is the forwarding identity.

Limits and common misconceptions

VLAN creation is not the same as VLAN connectivity. A VLAN can exist locally with no member ports, no trunk path and no Layer-3 gateway. Conversely, an access-port configuration referencing a VLAN is not evidence that the VLAN is usable if the VLAN is absent or suspended. A healthy SVI also does not show every access port in the VLAN has end-to-end connectivity. VLAN names are not globally authoritative and may differ between switches without changing forwarding semantics, whereas a mismatched numeric VLAN ID changes the broadcast-domain identity. Keep VLAN existence, port membership, trunk carriage, SVI state and routed reachability as distinct checks.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration model

Choose VLAN IDs from an intentional addressing/segmentation plan and use descriptive names that reflect role rather than temporary location where possible. Create only the VLANs required on a switch and ensure the same numeric ID represents the same logical segment across trunks that connect the domain. Then configure access membership, trunk allowance and any SVI separately. Do not assume that creating a VLAN on one switch propagates to others unless a specifically deployed control mechanism is responsible for that behavior. Keep native VLAN and management VLAN choices explicit rather than relying on defaults. For infrastructure changes, stage VLAN creation before moving production ports so the target broadcast domain exists before endpoints are reassigned.

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 docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

Authoritative/upstream documentation reviewed for bounded claims in Switching → VLAN → VLAN Creation. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%
Embedded reference data

Quick lookup tables

VLAN Creation · operational reference

Compact state and interpretation boundaries for fast lookup.

ObjectPurposeSeparate verification
VLAN IDLayer-2 domain identityVLAN database/state
Access membershipAssign endpoint framesSwitchport state
Trunk allowanceCarry VLAN between switchesTrunk output
SVILayer-3 terminationInterface + routing state
Confirmation

Confirm action

Continue?