Back
Lab 03Hands-on Lab
Implement RSTP & Advanced STP
Redundancy & STP
Goal
Run Rapid PVST+, control root election and port roles, and enable edge-port protections (PortFast/BPDU guard).
STPRSTPRapid PVST+PortFastBPDU GuardRoot Bridge
1
Implement RSTP & Advanced STP
Run Rapid PVST+, control root election and port roles, and enable edge-port protections (PortFast/BPDU guard).
R1#
configure terminal
spanning-tree mode rapid-pvst
endRedundancy & STP
2
Switch to Rapid PVST+
Apply on S1, S2 and S3, then confirm the active protocol is rstp.
R1#
! S1
spanning-tree vlan 1 root primary
! S2
spanning-tree vlan 1 root secondary3
Verify: show spanning-tree → "Spanning tree enabled protocol rstp".
Root Bridge Selection
R1#
interface g0/1
spanning-tree vlan 1 port-priority 164
Make S1 root and S2 secondary (manual alternative: priority 4096 / 8192).
Port Roles via Priority
R1#
interface f0/6
spanning-tree portfast edge
spanning-tree bpduguard enable5
To force a specific port to become root port (lowest port priority on a root-adjacent switch wins when cost ties).
R1#
show spanning-tree vlan 1 ! roles, states, protocol
show spanning-tree vlan 1 detail ! timers, port states
show spanning-tree vlan 1 summary ! count of edge ports
show interfaces trunk