A network administrator needs to create VLAN 85 named GUESTS on a Cisco Catalyst switch and configure interface GigabitEthernet0/2 as a static access port assigned to this VLAN, starting from Privileged EXEC mode (`Switch#`). In what sequence should the administrator execute the required Cisco IOS commands?
- 1configure terminal
- 2vlan 85
- 3name GUESTS
- 4interface GigabitEthernet0/2
- 5switchport mode access
- 6switchport access vlan 85
Answer
The correct configuration order starts in Privileged EXEC mode with 'configure terminal', followed by 'vlan 85', 'name GUESTS', 'interface GigabitEthernet0/2', 'switchport mode access', and finally 'switchport access vlan 85'.
To successfully create a VLAN and configure an access port in Cisco IOS, commands must be executed in a specific hierarchical sequence. Starting at Privileged EXEC mode (`Switch#`), the user enters Global Configuration mode (`Switch(config)#`) using `configure terminal`. Next, VLAN 85 is instantiated with `vlan 85` into VLAN configuration mode (`Switch(config-vlan)#`), where `name GUESTS` sets the label. Moving back to Global Configuration mode context to select the target interface via `interface GigabitEthernet0/2` places the user in Interface Configuration mode (`Switch(config-if)#`). Here, `switchport mode access` disables dynamic trunk negotiation, and `switchport access vlan 85` assigns the port to the intended broadcast domain.
Step-by-Step Solution
Key Concept
Cisco IOS CLI hierarchy for VLAN definition and static access port assignment
Estimated Time:1m 30s