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 USERS
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.

Open the lab

Frequently asked

What does the "vlan <id>" command do?

Create or enter a VLAN. Range 1-4094. VLAN 1 is the default.

Example of "vlan <id>"

SW1(config)# vlan 10 SW1(config-vlan)# name USERS

More Switching (VLAN/STP) commands

← Back to the full command reference

vlan <id> — network CLI command reference · NetForge-AI