Configuration procedure, Configuration example – H3C Technologies H3C S3600 Series Switches User Manual
Page 273
1-20
Configuring the Bridge Priority of the Current Switch
Root bridges are selected according to the bridge priorities of switches. You can make a specific switch
be selected as a root bridge by setting a lower bridge priority for the switch. An MSTP-enabled switch
can have different bridge priorities in different MSTIs.
Configuration procedure
Follow these steps to configure the bridge priority of the current switch:
To do...
Use the command...
Remarks
Enter system view
system-view
—
Set the bridge priority for the
current switch
stp
[ instance instance-id ]
priority priority
Required
The default bridge priority of a
switch is 32,768.
z
Once you specify a switch as the root bridge or a secondary root bridge by using the stp root
primary
or stp root secondary command, the bridge priority of the switch cannot be configured
any more.
z
During the selection of the root bridge, if multiple switches have the same bridge priority, the one
with the smallest MAC address becomes the root bridge.
Configuration example
# Set the bridge priority of the current switch to 4,096 in MSTI 1.
[Sysname] stp instance 1 priority 4096
Configuring How a Port Recognizes and Sends MSTP Packets
A port can send/recognize MSTP packets of two formats:
z
dot1s
: 802.1s-compliant standard format
z
legacy
: Compatible format
By default, the packet format recognition mode of a port is auto, namely the port automatically
distinguishes the two MSTP packet formats, and determines the format of packets it will send based on
the recognized format. You can configure the MSTP packet format to be used by a port. After the
configuration, when working in MSTP mode, the port sends and receives only MSTP packets of the
format you have configured to communicate with devices that send packets of the same format.
Configuration procedure
Follow these steps to configure how a port recognizes and sends MSTP packets (in system view):
To do...
Use the command...
Remarks
Enter system view
system-view
—