200-301 · Question #1091
Refer to the exhibit. VLAN 23 is being implemented between SW1 and SW2. The command show interface ethernet0/0 switchport has been issued on SW1. Ethernet0/0 on SW1 is the uplink to SW2. Which command
The correct answer is C. switchport trunk allowed vian add 23. To allow communication for a new VLAN on a trunk link without affecting existing VLANs, the new VLAN must be added to the allowed VLAN list.
Question
Exhibits
Options
- Aswitchport trunk allowed vlan 2-1001
- Bswitchport trunk allowed vlan 23
- Cswitchport trunk allowed vian add 23
- Dswitchport trunk allowed vian 22-23
How the community answered
(46 responses)- A13% (6)
- B24% (11)
- C54% (25)
- D9% (4)
Why each option
To allow communication for a new VLAN on a trunk link without affecting existing VLANs, the new VLAN must be added to the allowed VLAN list.
The `switchport trunk allowed vlan 2-1001` command would overwrite the current allowed VLANs, potentially removing VLANs outside this range that are used by PC11 and PC12, thus disrupting their communication.
The `switchport trunk allowed vlan 23` command would remove all currently allowed VLANs and only permit VLAN 23, severely disrupting communication for PC11 and PC12 as well as all other VLANs.
The `show interface ethernet0/0 switchport` output indicates that VLAN 23 is currently excluded (`Trunking VLANs Enabled: 1-22, 24-4094`). The `switchport trunk allowed vlan add 23` command will add VLAN 23 to the existing list of allowed VLANs on the trunk without removing any other VLANs, thus enabling PC1 and PC2 communication in VLAN 23 while preserving communication for PC11 and PC12 in other VLANs.
The `switchport trunk allowed vlan 22-23` command would overwrite the current allowed VLANs, potentially removing VLANs outside this narrow range that are used by PC11 and PC12, thus disrupting their communication.
Concept tested: Trunk allowed VLAN management
Source: https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9300/software/release/16-5/configuration_guide/sw_l2cg/configuring_ethernet_interfaces.html
Topics
Community Discussion
No community discussion yet for this question.

