Quiz Entry - updated: 2026.06.18
What are the IOS (Internetwork Operating System) commands to create a VLAN (Virtual Local Area Network) and give it a name?
Enter global config mode, use vlan <id> to create it, then name <name> to name it. If you don't name it, Cisco IOS auto-names it (e.g., "vlan0020" for VLAN 20).
Command sequence:
Switch# configure terminal
Switch(config)# vlan 20
Switch(config-vlan)# name student
Switch(config-vlan)# end
Step by step:
configure terminal— enter global configuration modevlan 20— creates VLAN 20 (or enters its config if it already exists)name student— assigns a descriptive name (optional but recommended)end— return to privileged EXEC mode
Key details:
- VLAN configuration is stored in
vlan.daton flash (not in running-config for normal range VLANs) - If you skip the
namecommand, the VLAN gets a default name using zero-padded four-digit format:vlan0020 - The VLAN exists the moment you enter
vlan 20— the name is optional - You can also use
exitinstead ofendto stay in global config and create more VLANs