Question

Difficulty: EasyInterswitch Connectivity and Trunking (802.1Q)

A network administrator needs to manually configure an 802.1Q trunk on switch port GigabitEthernet0/1 and assign VLAN 99 as the untagged native VLAN. Place the Cisco IOS CLI configuration commands in the correct sequential order required to accomplish this task.

  1. 1interface GigabitEthernet0/1
  2. 2switchport trunk encapsulation dot1q
  3. 3switchport mode trunk
  4. 4switchport trunk native vlan 99

Answer

The correct order of configuration commands is: enter interface context ('interface GigabitEthernet0/1'), specify 802.1Q encapsulation ('switchport trunk encapsulation dot1q'), set operational mode to trunk ('switchport mode trunk'), and set native VLAN 99 ('switchport trunk native vlan 99').
To successfully establish an 802.1Q trunk link with a custom native VLAN on a Cisco switch interface, commands must be entered in hierarchical CLI order: first select the targeted interface ('interface GigabitEthernet0/1'), define the trunk encapsulation standard ('switchport trunk encapsulation dot1q'), force the link into trunking mode ('switchport mode trunk'), and finally designate the untagged native VLAN ('switchport trunk native vlan 99').

Step-by-Step Solution

1
Navigate to the targeted physical interface context.
Switch enters interface configuration mode for GigabitEthernet0/1.
Trunk configuration commands are applied directly under the specific switchport interface context.
2
Set the trunk encapsulation type to 802.1Q.
The interface uses 802.1Q frame tagging for VLAN multiplexing.
On Cisco Catalyst switches supporting legacy ISL and 802.1Q, encapsulation type must be explicitly specified before enabling trunk mode.
3
Enable static trunking mode.
The port transitions to a permanent 802.1Q trunking operational state.
The command 'switchport mode trunk' forces the interface into trunking mode.
4
Configure the native VLAN assignment.
VLAN 99 is assigned as the native (untagged) VLAN on the trunk.
Untagged frames sent and received over the 802.1Q trunk will be mapped to VLAN 99.

Key Concept

IEEE 802.1Q Trunk CLI Configuration Sequence
Rate this question