A network administrator needs to create VLAN 100 named VOICE on a Cisco Catalyst switch and assign interface GigabitEthernet0/2 as a static access port in VLAN 100. Starting from Privileged EXEC mode (), in what sequence must the Cisco IOS CLI commands be executed?
- 1configure terminal
- 2vlan 100
- 3name VOICE
- 4interface gigabitethernet0/2
- 5switchport mode access
- 6switchport access vlan 100
Answer
The correct command sequence begins with entering global configuration mode (configure terminal), creating VLAN 100 (vlan 100), naming the VLAN (name VOICE), navigating to interface GigabitEthernet0/2 (interface gigabitethernet0/2), configuring access mode (switchport mode access), and assigning the port to VLAN 100 (switchport access vlan 100).
The correct order follows Cisco IOS configuration hierarchy. The sequence starts in Privileged EXEC mode with 'configure terminal' to enter Global Configuration mode. Next, 'vlan 100' creates the VLAN and switches to VLAN Configuration mode, where 'name VOICE' is applied. After returning to global configuration scope, 'interface gigabitethernet0/2' opens Interface Configuration mode, where 'switchport mode access' enforces static access behavior and 'switchport access vlan 100' places the port into VLAN 100.
Step-by-Step Solution
Key Concept
Cisco IOS hierarchical context navigation and sequential syntax execution for VLAN creation and static access port configuration.