(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 process process-id
The MSTP process 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 is not specified, a priority is set for the switching device in MSTI 0.
To configure a switching device as the primary root bridge, run the stp [ instance instance-id ] root primary command directly. The priority value of this switching device is 0.
To configure a switching device as the secondary root bridge, run the stp [ instance instance-id ] root secondary command. The priority value of this switching device is 4096.
In an MSTI, a switching device cannot act as the primary root bridge and secondary root bridge at the same time.
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.