Configuring Spanning Tree

Configuring Spanning Tree
To change the STP priority value, use the following:
Switch (config)#spanning-tree vlan vlan_no priority value
To configure a switch as root without manually changing priority values, use
the following:
Switch(config)# spanning-tree vlan vlan_no root {primary |
secondary}
To change the STP port cost for an access port, use the following:
Switch(config-if)# spanning-tree cost value
To change the STP port cost for a VLAN on a trunk port, use the following:
Switch(config-if)# spanning-tree vlan vlan_no cost value
To display STP information for a VLAN, use the following:
Switch# show spanning-tree vlan vlan_no
To display the STP information for an interface, use the following:
Switch# show spanning-tree interface interface_no [detail]
To verify STP timers, use the following:
Switch#show spanning-tree bridge brief