7-18
Follow these steps to configure the MSTP work mode of the AP:
To do...
Use the command...
Remarks
Enter system view
system-view
—
Configure the MSTP work mode
stp mode
{
stp
|
rstp
|
mstp
}
Required
MSTP mode by default
Configuring the Priority of the AP
Device priorities participate in spanning tree calculation. The priority of a bridge determines whether it
can be elected as the root bridge of a spanning tree. A lower value indicates a higher priority. By setting
the priority of a bridge to a low value, you can specify the bridge as the root bridge of the spanning tree.
An MSTP bridge can have different priorities in different MSTIs.
Make this configuration on the root bridge only.
Follow these steps to configure the priority of the AP in a specified MSTI:
To do...
Use the command...
Remarks
Enter system view
system-view
—
Configure the priority of the AP in a
specified MSTI
stp
[
instance
instance-id
]
priority priority
Required
32768 by default
z
After configuring the AP as the root bridge or a secondary root bridge, you cannot change the
priority of the AP.
z
During root bridge selection, if all bridges in a spanning tree have the same priority, the one with the
lowest MAC address will be selected as the root bridge of the spanning tree.
Configuring the Maximum Hops of an MST Region
By setting the maximum hops of an MST region, you can restrict the region size. The maximum hops
configured on the regional root bridge will be used as the maximum hops of the MST region.
The regional root bridge always sends a configuration BPDU with a hop count set to the maximum value.
When a bridge receives this configuration BPDU, it decrements the hop count by 1 and uses the new
hop count in the BPDUs it propagates. When the hop count of a BPDU reaches 0, it is discarded by the
bridge that received it. Thus, bridges beyond the reach of the maximum hop can no longer take part in
spanning tree calculation, and thereby the size of the MST region is confined.
Make this configuration on the root bridge only. All the bridges other than the root bridge in the MST
region use the maximum hop value set for the root bridge.