(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 an upper 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.
Low-performance devices at lower network layers are not suitable for root bridges, so you need to 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.
Procedure
- Run:
system-view
The system view is displayed.
- Run:
stp priority priority
A priority is set for the switching device.
The default priority value of a switching device is 32768.
If the stp root primary or stp root secondary command has been executed to configure the device as the root bridge or secondary root bridge, run the undo stp root command to remove those configurations. Then run the stp priority priority command to set a priority.