From configuration mode, which command sequence would create VLAN 20 and name the VLAN Voice?
- SW1(config)# vlan 20 name Voice
- SW1(config)# vlan name Voice SW1(config)# vlan number 20
- SW1(config)# vlan name Voice number 20
- SW1(config)# vlan 20 SW1(config-vlan)# name Voice
Explanation: To create a VLAN and assign it a name on a Cisco Catalyst switch, you must use a two-step command sequence starting from global configuration mode. First, you enter the vlan [vlan-id] command, which creates the VLAN in the database and moves the session into VLAN configuration mode (indicated by the (config-vlan)# prompt). Second, while in this sub-mode, you use the name [vlan-name] command to assign the descriptive label.
In your example:
- SW1(config)# vlan 20 creates the VLAN entry.
- SW1(config-vlan)# name Voice assigns the name "Voice" to it.
Creating a VLAN other than the factory default (VLAN 1) causes the switch to update the vlan.dat file, which is stored in flash memory. If you do not manually specify a name, the switch automatically assigns a default name such as VLAN0020.
Related exam: Modules 1 – 7: Checkpoint Exam: Network Switching Answers (CCNP ENCOR v9)
