Four Cisco switches (SW1, SW2, SW3, and SW4) are interconnected in a enterprise mesh topology running Rapid PVST+ for VLAN 10. The bridge priorities (base priority values) and MAC addresses for VLAN 10 are configured as follows:
| Switch | Base Bridge Priority | MAC Address |
|---|---|---|
| SW1 | 4096 | 0001.AAAA.AAAA |
| SW2 | 28672 | 0002.BBBB.BBBB |
| SW3 | 32768 | 0003.CCCC.CCCC |
| SW4 | 32768 | 0004.DDDD.DDDD |
The inter-switch physical links and operational speeds are configured as follows:
- SW1 Gi0/1 <--> SW2 Gi0/1 (1 Gbps)
- SW1 Gi0/2 <--> SW3 Gi0/1 (1 Gbps)
- SW2 Gi0/2 <--> SW4 Gi0/1 (1 Gbps)
- SW2 Gi0/3 <--> SW3 Gi0/2 (100 Mbps)
- SW3 Gi0/3 <--> SW4 Gi0/2 (1 Gbps)
All switch ports use default Rapid PVST+ 802.1w short path costs. Which spanning-tree port role and operational state will interface Gi0/2 on SW4 assume for VLAN 10?
- Alternate port in the Discarding stateAnswer
- BRoot port in the Forwarding state
- CDesignated port in the Forwarding state
- DBackup port in the Discarding state
Answer
Alternate port in the Discarding state
SW1 is the Root Bridge because it has the lowest Bridge ID (4106:0001.AAAA.AAAA). Both SW2 and SW3 elect their direct 1 Gbps connections to SW1 as Root Ports, giving both switches a Root Path Cost of 4. SW4 has two 1 Gbps paths to the root: via SW2 (cost 4 + 4 = 8) and via SW3 (cost 4 + 4 = 8). Because the path costs are tied at 8, SW4 breaks the tie using the lowest upstream Designated Bridge ID. SW2's Bridge ID (28682:0002.BBBB.BBBB) is lower than SW3's Bridge ID (32778:0003.CCCC.CCCC), so SW4 selects Gi0/1 as its Root Port. On the link between SW3 Gi0/3 and SW4 Gi0/2, SW3 advertises a lower Root Path Cost (4) than SW4 (8). Thus, SW3 Gi0/3 becomes the Designated Port for the segment, and SW4 Gi0/2 transitions to an Alternate port role in the Discarding state.
Step-by-Step Solution
Key Concept
Rapid PVST+ Port Role Election and State Transitions