Skip to main content

2.7.3: STP Configuration

From Privilege Exec mode Switch# the following commands can be used:

SHOW SPANNING-TREE

This displays details about the STP state

The Switch has been assigned a priority of 32769 and is the root bridge

SHOW SPANNING-TREE INTERFACE FA 0/7

Lists information about the state of STP on this interface only

 

 

Interface Fa 0/7 is in VLAN 1 and is a 100 Mbps port, therefore it has been assigned a cost of 19 and is in a forwarding state

DEBUG SPANNING-TREE

This command is used to show information messages about STP as they arise

From interface configuration mode: Switch(config-if)# Each interface can be configured with a different cost and bridge priority

SPANNING-TREE COST 5

This will change the default cost to 5

SPANNING-TREE VLAN 1 ROOT PRIORITY

This change the Switch priority in the specified VLAN