Topology Image
Normal Data Path Flow
Data Path Flow Root Fail
Data Path Flow-Access Trunk Fail
Data Path Flow Router Fail
Spanning-Tree mode Rapid-PVST (802.1w) or MST (802.1s) - I will show more about load balancing techniques leveraging each of these technologies in "Layer 2 Spanning-Tree Best Practices Part-2" Deterministic blocked ports - in this example we know exactly which ports are going to be blocked by STP. All redundant connections to the secondary root bridge will be blocked. Cisco also recommends that you do not exceed STP diameter of seven hops. Ensure that you hard configure your Root and Secondary Root bridges. Ensure that you only allow required VLAN's over the trunks to ensure you are not running unnecessary STP instances.
Features to leverage include:
Access Layer
-portfast
-bdpuguard
-disable DTP
-loopguard
-etherchannel Guard
Distribution Layer
-root and secondary root placement
-root guard
-disable DTP
-etherchannel Guard
Leverage EtherChannel to reduce the number of ports that need to transition from blocking to forwarding state when leveraging multiple links.
EtherChannel Ports
-EtherChannel Guard