Question

Difficulty: MediumTroubleshooting VLAN, Trunking, and Switching Issues

A network administrator is troubleshooting an issue where workstations assigned to VLAN 30 on Switch-1 cannot communicate with servers on VLAN 30 attached to Switch-2. An audit of interface GigabitEthernet0/1 on Switch-1 reveals that it was mistakenly configured with static access mode (`switchport mode access`). Additionally, the trunk configuration documentation indicates VLAN 30 must be explicitly allowed, but the interface allowed list is currently restricted to VLANs 10 and 20 (`switchport trunk allowed vlan 10,20`).

Which TWO configuration commands must the administrator execute on Switch-1 interface GigabitEthernet0/1 to establish an 802.1Q trunk link and permit VLAN 30 traffic to pass across it?

  1. switchport mode trunkAnswer
  2. switchport trunk allowed vlan add 30Answer
  3. C
    spanning-tree vlan 30 priority 4096
  4. D
    ip address 192.168.30.1 255.255.255.0

Answer

The correct commands are 'switchport mode trunk' and 'switchport trunk allowed vlan add 30'.
To establish proper Layer 2 trunking for VLAN 30, the port operational mode must first be changed from access to trunk using the trunk mode command. Secondly, because the trunk has an explicit allowed list restricting traffic, VLAN 30 must be added to the allowed VLAN list on the interface using the add keyword so it does not overwrite current allowed VLANs.

Step-by-Step Solution

1
Identify the trunking mode status
The interface is operating in static access mode rather than trunking mode.
An access port strips VLAN tags and restricts traffic to a single VLAN, preventing multi-VLAN trunking.
2
Enable 802.1Q trunking on the interface
Interface mode switches to trunking.
Running 'switchport mode trunk' forces the switchport into permanent trunking mode.
3
Modify the trunk allowed VLAN list
VLAN 30 is appended to the allowed VLANs list on the trunk link.
Using 'switchport trunk allowed vlan add 30' allows frames tagged with VLAN 30 to cross the trunk interface without removing existing allowed VLANs.

Key Concept

802.1Q Trunking Mode Configuration and Allowed VLAN List Management
Rate this question