Cisco Systems

 


Modules:  1  |  2  |  3  |  4  |  5  |  6  |  7  |  8  |  9  |  10  |  All  |
Module 3: Spanning-Tree Protocol
 
3.6.2 Enabling and disabling Spanning-Tree Protocol

Switch(config)#spanning-tree vlan vlan-id

3.6.3 Modifying the root bridge

Pre 12.1(9)EA1
Switch(config)#spanning-tree vlan vlan-id root
12.1(9)EA1 +
Switch(config)#spanning-tree vlan vlan-id root primary

3.6.4 Setting the priority for ports and VLANs

Switch#show spanning-tree interface

3.6.5 Setting the port cost

Switch#show spanning-tree interface

3.6.7 Modifying default timers

Switch(config)#show spanning-tree interface spanning-tree vlan vlan-id hello-time
Switch(config)#spanning-tree vlan vlan-id forward-time
Switch(config)#Spanning-tree vlan vlan-id max-age

3.7.1 Configuring PortFast

Switch(config)#spanning-tree portfast default
Switch(config-if)#spanning-tree portfast disable

3.7.2 Configuring UplinkFast

Switch(config)#no spanning-tree vlan vlan-id priority
Switch(config)#no spanning-tree uplinkfast max-update-rate
Switch(config)#no spanning-tree uplinkfast

3.7.3 Configuring BackboneFast

Switch(config)#no spanning-tree backbonefast

3.7.4 Configuring BPDU guard

Switch(config-if)#spanning-tree bpduguard enable
Switch(config)#no spanning-tree portfast bpduguard default

3.7.5 Configuring root guard

Switch(config)#no spanning-tree guard

3.7.7 Verifying STP, RSTP and MST configuration

Switch#show spanning-tree

3.8.3 Enabling RSTP and MSTP

Switch(config-mst)#no instance instance-id [vlan vlan-range]
Switch(config)#no spanning-tree mode
Switch(config)#spanning-tree mode pvst
Switch(config)#spanning-tree mst configuration
Switch(config-mst)#name mst-instance-name
Switch(config-mst)#revision number
Switch(config-mst)#show pending

3.8.4 Configuring the MST Root switch

Switch(config)#spanning-tree mst instance-id root

3.8.7 Configuring MST port priority

Switch#show spanning-tree mst interface interface-id
Switch#show running-config interface
Switch(config-if)#no spanning-tree mst instance-id port-priority

3.8.6 Configuring MST path cost

Switch#show spanning-tree mst interface Switch#show running-config Switch(config-if)#no spanning-tree mst instance-id cost

3.8.8 Configuring MSTP timers
Note: Exercise care when using this command. For most situations, we recommend that you use the spanning-tree mst instance-id root primary and the spanning-tree mst instance-id root secondary global configuration commands to modify the hello time.

Switch(config)#no spanning-tree mst hello-time
Switch(config)#no spanning-tree mst forward-time
Switch(config)#no spanning-tree mst max-age

3.8.9 Configuring Maximum hop count

Switch(config)#no spanning-tree mst max-hops

3.9.8 Configuring Fast EtherChannel

Switch(config-if)#channel-group channel-group-number mode{auto [non-silent] | desirable [non-silent] | on}
Switch(config-if)#no channel-group.
Switch#show etherchannel [channel-group-number] {brief | detail | load-balance| port | port-channel | summary}
Switch(config-if)#port-channel load-balance {dst-mac | src-mac},
Switch(config)#show etherchannel load-balance
Switch(config)#show pagp [channel-group-number] {counters | internal | neighbor}

Close Window
All contents copyright © 2003 Cisco Systems, Inc. All rights reserved.