No relevant resource is found in the selected language.
Your browser version is too early. Some functions of the website may be unavailable. To obtain better user experience, upgrade the browser to the latest version.
This document describes the configuration of Ethernet services, including configuring link aggregation, VLANs, Voice VLAN, VLAN mapping, QinQ, GVRP, MAC table, STP/RSTP/MSTP, SEP, and so on.
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document.
Note: Even the most advanced machine translation cannot match the quality of professional translators.
Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
(Optional) Configuring the Root Bridge and Secondary Root Bridge
(Optional) Configuring the Root Bridge and Secondary Root Bridge
Context
MSTP can calculate the root bridge or you can manually
configure the root bridge or secondary root bridge. Manually configuring
the root bridge and secondary root bridge is recommended.
A
switch can function as a root bridge or a secondary root bridge in
a spanning tree. It can also function as the root bridge or secondary
root bridge of another spanning tree. In a spanning tree:
Only one root bridge takes effect. If two or more root bridges
are specified in a spanning tree, the device with the smallest MAC
address is used.
Multiple secondary root bridges can be specified. If the root
bridge fails or is powered off and no new root bridge is specified,
the secondary root bridge with smallest MAC address will become the
root bridge of the spanning tree.
Procedure
Perform the following operations on the device to be used
as the root bridge.
Run:
system-view
The system view is displayed.
Run:
stp [ instanceinstance-id ] root primary
The device is configured as the root bridge.
By
default, a switch does not function as the root bridge. After the
configuration is complete, the BID of the device is 0 (this value
cannot be modified).
If instance is
not specified, the device in MSTI 0 is a root bridge.
Perform the following operations on the device to be used
as the secondary root bridge.
Run:
system-view
The system view is displayed.
Run:
stp [ instanceinstance-id ] root secondary
The device is configured as the secondary root bridge.
By default, a switch does not function as the secondary root bridge.
After the configuration is complete, the BID of the device is 4096
(this value cannot be modified).
If instance is not specified, the device in MSTI 0 is a secondary
root bridge.