User Tools

Site Tools


Sidebar

CCNA Notes

Resources

GNS3 - Graphical Network Simulator for Win / Mac / Linux

r/CCNA - CCNA subreddit

icnd2:spanning-tree

This is an old revision of the document!


Table of Contents

WHY

Frame Loop Prevention Mechanism. Achieved by blocking all but one ROOT port to a ROOT switch. Redundant links are then blocked to create a loop-free environment.

CONCEPT

  • It does this with Each Switch broadcasting a BPDU, made up of that SW's Priority + MAC. Default Priority is 32768. The SW with the lowest BPDU (superior) is elected the ROOT BRIDGE.
  • Each SW will then determine a ROOT PORT, one per SW. A DESIGNATED port is then elected on each segment. There can only be one DESIGNATED port per SEGMENT/LINK.
  • Any port that is not DESIGNATED or a ROOT port, is then set to a BLOCKING state.
TO DETERMINE A DESIGNATED PORT:
  • –Is my cost lower to the ROOT BRIDGE?
  • –COST IS SAME: Is my my Bridge ID lower?
  • –if NO to either, PORT WILL BE BLOCKED!

COMMANDS:

Quickly setting a PRIMARY and SECONDARY ROOT:
SW1(config)#spanning-tree vlan 1 root primary 
SW1(config)#spanning-tree vlan 1 root secondary
Manually set Bridge Priority for Root Election:
SW2(config)#spanning-tree vlan 1 priority ?
  <0-61440>  bridge priority in increments of 4096
  
SW2(config)#spanning-tree vlan 1 priority 4096

                                                   Hello  Max  Fwd
Vlan                         Bridge ID              Time  Age  Dly  Protocol
---------------- --------------------------------- -----  ---  ---  --------
VLAN0001         4097(4096,      1) 0019.e86a.2280    2    20   15  ieee
VLAN0002         32770(32768,    2) 0019.e86a.2280    2    20   15  ieee
  
  
icnd2/spanning-tree.1713960404.txt.gz · Last modified: 2024/04/24 12:06 by 114.119.130.33