new root bridge is specified, the secondary root bridge will not become the root bridge. If
there are multiple secondary root bridges, the one with smallest MAC address becomes the
root bridge of the spanning tree.
NOTE
It is recommended that you specify the root bridge and secondary root bridge when configuring STP/RSTP.
Procedure
l
Perform the following operations on the device you want to use as the root bridge.
1.
Run:
system-view
The system view is displayed.
2.
Run:
stp root primary
The device is configured as the root bridge.
By default, a switching device does not function as the root bridge. After you run this
command, the priority value of the device is set to 0 and cannot be changed.
l
Perform the following operations on the device you want to use as the secondary root bridge.
1.
Run:
system-view
The system view is displayed.
2.
Run:
stp root secondary
The device is configured as the secondary root bridge.
By default, a switching device does not function as the secondary root bridge. After
you run this command, the priority value of the device is set to 4096 and cannot be
changed.
----End
6.6.1.3 (Optional) Setting a Priority for a Switching Device
Context
An STP/RSTP network can have only one root bridge, which is the logical center of the spanning
tree. The root bridge should be a high-performance switching device deployed at a high network
layer; however, such a device may not have the highest priority on the network. Therefore; you
need to set a high priority for such a device to ensure that it can be selected as the root bridge.
Because low-performance devices at lower network layers are not suitable as the root bridge,
set low priorities for these devices.
A smaller priority value indicates a higher priority of the switching device. The switching device
with a higher priority is more likely to be elected as the root bridge. The switching device with
a lower priority is less likely to be elected as the root bridge.
Huawei AR530&AR550 Series Industrial Switch Routers
Configuration Guide - Ethernet Switching
6 STP/RSTP Configuration
Issue 01 (2014-11-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
191