Question

Difficulty: MediumVLAN Configuration and Access Port Setup

A network administrator needs to create a new VLAN named ENGINEERING (VLAN 40) on a Cisco Catalyst switch and assign interface FastEthernet 0/12 to this VLAN as an access port. Place the following Cisco IOS command sequence in the correct execution order from global configuration entry to final interface VLAN assignment.

  1. 1configure terminal
  2. 2vlan 40
  3. 3name ENGINEERING
  4. 4interface fastethernet 0/12
  5. 5switchport mode access
  6. 6switchport access vlan 40

Answer

The correct order of commands begins with entering global configuration mode (configure terminal), creating the VLAN (vlan 40), naming the VLAN (name ENGINEERING), navigating to the target interface (interface fastethernet 0/12), defining the interface as an access port (switchport mode access), and finally binding the interface to the specified VLAN (switchport access vlan 40).
The sequence follows the standard Cisco IOS configuration hierarchy. Global configuration mode must be established first to define the Layer 2 broadcast domain (vlan 40) and assign its optional descriptive name (name ENGINEERING). Next, configuration context shifts to the specific physical layer interface (interface fastethernet 0/12), where the operational mode is defined (switchport mode access) before binding the interface to the created access VLAN (switchport access vlan 40).

Step-by-Step Solution

1
Enter global configuration mode.
The prompt changes to switch(config)#.
Global configuration mode is required to create VLAN definitions and navigate to interface configurations.
2
Execute 'vlan 40'.
The prompt changes to switch(config-vlan)#.
Creates VLAN 40 in the VLAN database and opens VLAN configuration sub-mode.
3
Execute 'name ENGINEERING'.
VLAN 40 is named ENGINEERING.
VLAN names must be configured while inside the config-vlan sub-mode.
4
Execute 'interface fastethernet 0/12'.
The prompt changes to switch(config-if)#.
Navigates directly to the specific interface configuration sub-mode for FastEthernet 0/12.
5
Execute 'switchport mode access'.
Interface FastEthernet 0/12 is statically configured as an access port.
Configuring access mode explicitly disables Dynamic Trunking Protocol (DTP) negotiation for trunking.
6
Execute 'switchport access vlan 40'.
Interface FastEthernet 0/12 is associated with VLAN 40.
Assigns untagged traffic on this access port to the target broadcast domain (VLAN 40).

Key Concept

Cisco IOS VLAN creation and interface access port configuration hierarchy
Rate this question