Configuration Guide     316
Configuring Spanning Tree STP/RSTP Configurations
The following example shows how to enable spanning tree function on port 1/0/3 and 
configure the port priority as 32 :
Switch#configure
Switch(config)#interface gigabitEthernet 1/0/3
Switch(config-if)#spanning-tree
Switch(config-if)#spanning-tree common-config port-priority 32
Switch(config-if)#show spanning-tree interface gigabitEthernet 1/0/3
Interface       State        Prio      Ext-Cost     Int-Cost      Edge      P2p              Mode
----------        -------       ----       ------            --------         ----         ---------       -----
Gi1/0/3          Enable      32        Auto             Auto              No          No(auto)     N/A
Role      Status       LAG
-----      -------        ------
N/A       LnkDwn    N/A
Switch(config-if)#end
Switch#copy running-config startup-config
2.2.2  Configuring Global STP/RSTP Parameters
Follow these steps to configure global STP/RSTP parameters of the switch:
Step 1 configure
Enter global configuration mode.
Step 2 spanning-tree priority 
pri
Configure the priority of the switch.
pri
: 
Specify the priority for the switch. The valid value is from 0 to 61440, which are divisible 
by 4096. The priority is a parameter used to determine the root bridge for spanning tree. The 
switch with the lower value has the higher priority.
In STP/RSTP, the value is the priority of the switch in spanning tree. The switch with the highest 
priority will be elected as the root bridge.
In MSTP, the value is the priority of the switch in CIST. The switch with the higher priority will be 
elected as the root bridge in CIST.