Question

Difficulty: MediumVLAN Configuration and Access Port Setup

A network administrator needs to provision a new VLAN for the Sales department (VLAN 50, named SALES) on a Cisco Catalyst switch and assign interface GigabitEthernet0/5 as a static access port belonging to this VLAN. Place the following Cisco IOS commands in the correct sequential order from privileged EXEC mode to complete this configuration.

  1. 1configure terminal
  2. 2vlan 50
  3. 3name SALES
  4. 4interface GigabitEthernet0/5
  5. 5switchport mode access
  6. 6switchport access vlan 50

Answer

The correct sequence starts with entering global configuration mode (`configure terminal`), followed by creating VLAN 50 (`vlan 50`), naming it (`name SALES`), accessing interface configuration mode (`interface GigabitEthernet0/5`), setting static access mode (`switchport mode access`), and assigning the port to VLAN 50 (`switchport access vlan 50`).
Cisco IOS requires navigating through a strict prompt hierarchy. The administrator must first enter global configuration mode (`configure terminal`), instantiate and name the VLAN (`vlan 50` followed by `name SALES`), navigate to the specific interface (`interface GigabitEthernet0/5`), set the port operational mode to access (`switchport mode access`), and finally bind the access port to VLAN 50 (`switchport access vlan 50`).

Step-by-Step Solution

1
Execute `configure terminal` at the privileged EXEC prompt (`Switch#`).
Enters global configuration mode (`Switch(config)#`).
Global configuration mode is the entry point for defining system-level entities such as VLANs.
2
Execute `vlan 50`.
Creates VLAN 50 and moves to VLAN configuration mode (`Switch(config-vlan)#`).
VLAN ID 50 must be created before assigning a descriptive name or configuring interface membership.
3
Execute `name SALES`.
Names VLAN 50 as SALES.
VLAN names are assigned inside config-vlan subconfiguration mode.
4
Execute `interface GigabitEthernet0/5`.
Enters interface configuration mode (`Switch(config-if)#`).
Interface parameters must be modified from within the target interface's configuration prompt.
5
Execute `switchport mode access`.
Sets the administrative mode of GigabitEthernet0/5 to access.
Configuring explicit access mode prevents DTP trunk negotiation and secures the port.
6
Execute `switchport access vlan 50`.
Associates interface GigabitEthernet0/5 with VLAN 50.
Places untagged traffic entering GigabitEthernet0/5 into broadcast domain 50.

Key Concept

Cisco IOS hierarchical configuration sequence for VLAN creation and static access port assignment.
Estimated Time:1m 30s
Rate this question