Use it when adding a new VLAN, or when ports assigned to a VLAN show as inactive.
VLAN Creation
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.
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".
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
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
Operational reference
Fast context before you go deeper.
vlan <id>Primary Commands
Configuration and operational commands for this Topic.
vlan <id>ReferenceCreate a VLAN or enter its configuration.
Use when: Use this command at the SPAN / RSPAN / ERSPAN boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A configured/up session does not prove the analyzer receives every packet or that mirroring is lossless.
Cisco IOS / IOS XE · mixedname <name>ReferenceName a VLAN (inside VLAN configuration).
Use when: Document the purpose of a VLAN so operational output is easier to audit.
Quick note: VLAN forwarding uses the numeric VLAN ID, not the name.
Cisco IOS / IOS XE · mixedShow Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
show vlanShowDisplay VLANs and their ports.
Use when: Inspect the local VLAN database and membership when a VLAN is missing or access ports appear wrong.
Quick note: Use show interfaces trunk for trunk transport and show interfaces switchport for per-port mode.
show vlan briefShowCompact VLAN membership/status view.
Use when: Quickly confirm VLAN existence and access-port membership.
Quick note: Best first VLAN database check; move to switchport/trunk state next.
Cisco IOS XE · mixedVerification & 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 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 · 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.
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.
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
| Topic | Detail |
|---|---|
| VTP mode | Server or transparent is required to create VLANs |
| VTP server | Adds or removes VLANs 2–1001 for the whole domain |
| VTP transparent | Changes 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 VLAN | Ports assigned to it become inactive until reassigned |
| Assigning a port to a missing VLAN | Creates the VLAN; with interface templates, create it explicitly first |
write erase | Delete vlan.dat too, or old VLANs return after the reload |
Where the VLANs are stored
| VTP mode | Normal-range VLANs saved in |
|---|---|
| Server or client | vlan.dat only |
| Transparent | vlan.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 vlanand in monitoring tools, and make mistakes visible. - Before deleting a VLAN, check
show vlan id <n>andshow interfaces trunkfor ports still using it.
Documented example, not captured output.
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.
| Range | Note |
|---|---|
| 1 | Default VLAN, cannot be deleted |
| 2–1001 | Normal range |
| 1002–1005 | Reserved (legacy Token Ring/FDDI) |
| 1006–4094 | Extended range |
Check with show vlan brief. An access port assigned to a VLAN that does not exist is inactive.
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
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 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%Quick lookup tables
VLAN Creation · operational reference
Compact state and interpretation boundaries for fast lookup.
| Object | Purpose | Separate verification |
|---|---|---|
| VLAN ID | Layer-2 domain identity | VLAN database/state |
| Access membership | Assign endpoint frames | Switchport state |
| Trunk allowance | Carry VLAN between switches | Trunk output |
| SVI | Layer-3 termination | Interface + routing state |