Create VLAN Command Guide | Generated by AI

Home 2026.02

Question: After logging into the switch, what command is used to create a VLAN in global configuration mode?

Answer:

To create a VLAN on a Cisco switch (or similar CLI-based network devices) after logging in and entering global configuration mode, you use the following command:

vlan <vlan-id>

Explanation:

Step-by-Step Example:

  1. Log in to the switch.
  2. Enter privileged EXEC mode:
    enable
    
  3. Enter global configuration mode:
    configure terminal
    
  4. Create a VLAN (for example, VLAN 10):
    vlan 10
    
  5. (Optional) Name the VLAN:
    name Sales
    
  6. Exit configuration mode:
    end
    

After executing vlan 10, the switch enters VLAN configuration mode (config-vlan#), where you can optionally assign a name or other parameters to the VLAN.

This matches the reference answer provided: vlan vlan-id.

References:


Back Donate