Switching (VLAN/STP)
vlan <id>
Create or enter a VLAN. Range 1-4094. VLAN 1 is the default.
Works on: SwitchMode: config
Example
SW1(config)# vlan 10
SW1(config-vlan)# name USERSWatch out
'no vlan <id>' deletes the VLAN but not the ports' 'switchport access vlan <id>': they sit inactive, forwarding nothing, until the VLAN is created again.
Run this command live
Don't just read it — type vlan <id> in a real network simulator in your browser and watch it take effect. No install, no account needed to start.
Frequently asked
What does the "vlan <id>" command do?
Create or enter a VLAN. Range 1-4094. VLAN 1 is the default.
What's the common gotcha with "vlan <id>"?
'no vlan <id>' deletes the VLAN but not the ports' 'switchport access vlan <id>': they sit inactive, forwarding nothing, until the VLAN is created again.
Example of "vlan <id>"
SW1(config)# vlan 10 SW1(config-vlan)# name USERS