Switch 7700 Command reference Guide, v2.0

Table Of Contents
310 CHAPTER 8: USING STP COMMANDS
Example
Set the priority of Ethernet1/0/1 to 64.
[SW7700-Ethernet1/0/1]stp port priority 64
stp priority Syntax
stp priority bridge-priority
undo stp priority
View
System view
Parameter
bridge-priority: Specifies the priority of a switch, ranging from 0 to 61440.
The values are not consecutive integers. The step length is 4096. By default, the
value is 32768.
Description
Using the stp priority command, you can configure the bridge priority of the
switch. Using the
undo stp priority command, you can restore the default
bridge priority of the switch.
The priority value shall be a multiple of 4096, such as 0, 4096, 8192 etc. The
smaller value represents the higher priority. A switch with higher priority is more
likely to be a root bridge.
Example
Set the priority of the current Ethernet switch to 4096.
[SW7700]stp priority 4096
stp root primary Syntax
stp root primary
undo stp root
View
System view
Parameter
None
Description
Using the stp root primary command, you can configure the current switch as
the primary root of a spanning tree. Using the
undo stp root primary
command, you can cancel the current switch for primary root of a spanning tree.
By default, a switch is not a primary root.
You can designate a primary tree for the spanning tree without caring about the
priority configuration of the switch.