vlan
Initializes a logical Layer 2 broadcast domain inside the switch database and transitions the CLI session into dedicated VLAN configuration submode.
Quick Reference
Switch(config)#Switch(config-vlan)#(Cannot be deleted)no vlan [vlan-id]Syntax & Parameters
| Parameter | Description & Range Rules |
|---|---|
| [vlan-id] | The numerical tag assigned to the Broadcast Domain. 1 - 1001: Standard Range VLANs. Stored inside the flash memory file named 1002 - 1005: Cisco Legacy Defaults (Token Ring, FDDI). Permanent values; cannot be modified or deleted. 1006 - 4094: Extended Range VLANs. Used for service provider topologies or massive multi-tenant datacenters. Saved directly to the running configuration payload, not the |
CLI Deployment Scenarios
Scenario 1: Instantiating and Isolating a Broadcast Domain
You need to spin up a standalone network segment to keep client voice traffic separate from the raw server arrays.
Scenario 2: Completely Wiping a VLAN
A database segment is decommissioned, and you need to erase the broadcast container from the local database framework.
CCNA Exam Gotchas
The Orphan Port Trap
If you execute no vlan 10 on a switch, Cisco IOS does not automatically move those access ports back to VLAN 1. The interfaces remain bound to a non-existent index. They will show an operational status of inactive, and all traffic passing through them will be black-holed.
VLAN 1 and 1002-1005 Constraints
Cisco will try to trick you with a multiple-choice question on deleting management constraints. You cannot rename, alter, delete, or filter out vlan 1 or the factory structural blocks 1002 - 1005. They are completely locked down inside the binary software logic.