R3166-R3206-HP High-End Firewalls Network Management Configuration Guide-6PW101

69
specified multiple secondary root bridges for an instance, when the root bridge fails, the secondary root
bridge with the lowest MAC address is selected as the new root bridge.
1. Configuring the current device as the root bridge of a specific spanning tree
Follow these steps to configure the current device as the root bridge of a specific spanning tree:
To do... Use the command...
Remarks
Enter system view system-view
Configure the current
device as the root
bridge (in STP/RSTP
mode)
stp root primary
Required
Use either command.
By default, a device does not function as
the root bridge.
Configure the current
device as the root
bridge (in MSTP mode)
stp [ instance instance-id ] root primary
2. Configuring the current device as a secondary root bridge of a specific spanning tree
Follow these steps to configure the current device as a secondary root bridge of a specific spanning tree:
To do... Use the command...
Remarks
Enter system view system-view
Configure the current
device as a secondary
root bridge (in STP/RSTP
mode)
stp root secondary
Required
Use either command.
By default, a device does not function as
a secondary root bridge.
Configure the current
device as a secondary
root bridge (in MSTP
mode)
stp [ instance instance-id ] root
secondary
NOTE:
You can specify one root bridge for each spanning tree, regardless of the device priority settin
g
s. Once
you specify a device as the root bridge or a secondary root bridge, you cannot change its priority.
You can configure the current device as the root bridge by setting the device priority to 0. For the device
priority configuration, seeConfiguring the device priority.”
Configuring the device priority
Device priority is a factor in spanning tree calculation. The priority of a device determines whether the
device can be elected as the root bridge of a spanning tree. A lower value indicates a higher priority.
You can set the priority of a device to a low value to specify the device as the root bridge of the spanning
tree. A spanning tree device can have different priorities in different MSTIs.
Follow these steps to configure the priority of a device in a specified MSTI:
To do... Use the command...
Remarks
Enter system view system-view