Information Technology and Methodology for Human Networks

Thursday, November 15, 2012

Setting Up Spanning Tree Protocol (STP)

All switches from Cisco ship with Spanning Tree Protocol (STP) enabled by default, but if STP is misconfigured for any reason, you can easily enable it. To enable spanning tree, connect to your switch and type spanning-tree mode  while in Global Configuration mode.
The following table lists some of the differences among the different versions of spanning tree. The current version of the IOS supports the following modes and defaults to PVST mode.
Switch2> enable
Switch2# configure terminal 
Switch2(config)#spanning-tree mode ?
  mst         Multiple spanning tree mode
  pvst        Per-Vlan spanning tree mode
  rapid-pvst  Per-Vlan rapid spanning tree mode

Comparison of STP Versions
STP VersionIEEE IdentifierFailover Interval
STP802.1D30–50 seconds
RSTP (Rapid)802.1w6 seconds (3 Hello intervals)
MSTP or MST (Multiple)802.1s or 802.1Q-20056 seconds (3 Hello intervals)
PVST (Per VLAN)Cisco Proprietary6 seconds (3 Hello intervals)
R-PVST (Rapid)Cisco Proprietary6 seconds (3 Hello intervals)
After you enable a version of STP on your switch, you need to configure some of the options for the STP, with the biggest option being one of the fast technologies. One the most popular of these options is PortFast,.
Switch2> enable
Switch2# configure terminal 
Switch2(config)#spanning-tree ?
  backbonefast  Enable BackboneFast Feature
  etherchannel  Spanning tree etherchannel specific configuration
  extend        Spanning Tree 802.1t extensions
  loopguard     Spanning tree loopguard options
  mode          Spanning tree operating mode
  mst           Multiple spanning tree configuration
  pathcost      Spanning tree pathcost options
  portfast      Spanning tree portfast options
  uplinkfast    Enable UplinkFast Feature
  vlan          VLAN Switch Spanning Tree

0 comments:

Post a Comment