(Optional) Configuring a Priority for a Switching Device in an MSTI
Context
In an MSTI, there is only one root bridge, which is the logical center of the MSTI. To ensure that a high-performance device is selected as the root bridge, set a low priority (higher numerical value) for low-performance switching devices, and set a high priority (lower numerical value) for high-performance switching devices.
Procedure
- Run system-view
The system view is displayed.
- Run stp [ instance instance-id ] priority priority
A priority is set for the switching device in an MSTI.
The default priority value of the switching device is 32768.
If instance-id is not specified, a priority is set for the switching device in MSTI 0.
If the stp [ instance instance-id ] root primary or stp [ instance instance-id ] root secondary command has been executed to configure the device as the root bridge or secondary root bridge, to change the device priority, run the undo stp [ instance instance-id ] root command to disable the root bridge or secondary root bridge function and run the stp [ instance instance-id ] priority priority command to set a priority.
- Run commit
The configuration is committed.