Step
2.
Configure the priority of
the current device.
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.
Configuration BPDUs sent by the regional root bridge always have a hop count set to the maximum value.
When a device receives this configuration BPDU, it decrements the hop count by 1, and uses the new hop
count in the BPDUs that it propagates. When the hop count of a BPDU reaches 0, it is discarded by the
device that received it. This prevents devices beyond the reach of the maximum hop from participate in
spanning tree calculation, so the size of the MST region is limited.
Make this configuration on the root bridge only. All other devices in the MST region use the maximum
hop value set for the root bridge.
To configure the maximum number of hops of an MST region:
Step
1.
Enter system view.
2.
Configure the maximum hops
of the MST region.
Configuring the network diameter of a switched
network
Any two terminal devices in a switched network are connected through a specific path composed of a
series of devices. The network diameter is the number of devices on the path composed of the most
devices. The network diameter is a parameter that indicates the network size. A bigger network diameter
indicates a larger network size. Based on the network diameter you configured, the system automatically
sets an optimal hello time, forward delay, and max age for the device.
Each MST region is considered as a device and the configured network diameter is effective only for the
CIST (or the common root bridge), but not for MSTIs.
To configure the network diameter of a switched network:
Step
1.
Enter system view.
2.
Configure the network
diameter of the switched
network.
Command
•
In STP/RSTP mode:
stp priority priority
•
In MSTP mode:
stp [ instance instance-id ] priority priority
Command
system-view
stp max-hops hops
Command
system-view
stp bridge-diameter diameter
69
Remarks
Use one of the commands.
The default setting is
32768.
Remarks
N/A
20 by default.
Remarks
N/A
Use one of the
commands.
The default setting is 7.