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 device deployed at a high network layer. To ensure the desired device is selected as the root bridge, you can set a high priority for the device.
Set low priorities for devices that are not suitable as the root bridge, such as low-performance devices at lower network layers.
A smaller priority value indicates a higher priority of a device.
The system view is displayed.
A priority is set for the device.
The default priority value of a 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 disable the root bridge or secondary root bridge function and then run the stp priority priority command to set a priority.