The stp bridge-diameter command configures the diameter of the spanning tree.
The undo stp bridge-diameter command restores the default diameter.
By default, the diameter of the spanning tree is 7.
stp [ vlan { vlan-id1 [ to vlan-id2 ] } &<1-10> ] bridge-diameter diameter
undo stp [ vlan { vlan-id1 [ to vlan-id2 ] } &<1-10> ] bridge-diameter
Parameter | Description | Value |
---|---|---|
vlan vlan-id1 [ to vlan-id2 ] | Configures the diameter of a spanning tree in VLANs.
In the stp bridge-diameter command, you can specify a maximum of 10 VLAN ranges. NOTE:
VLANs can be specified only when VBST is running. |
The value is an integer that ranges from 1 to 4094. |
diameter | Specifies the diameter. | The value is an integer ranging from 2 to 7. |
System view or MSTP process view
Usage Scenario
On a network running a spanning tree protocol, the network diameter is the maximum number of devices between two switching devices. If the network diameter is improperly set, network converge may slow down, affecting users' normal communication.
The stp bridge-diameter command can be used to set a proper network diameter based on the network scale. This helps to accelerate network convergence.
Hello Time
Forward Delay
Max Age
Precautions
After the stp bridge-diameter command is used on a switching device, the switching device will automatically set proper values for Hello Time, Forward Delay, and Max Age based on the configured network diameter.
On an MSTP network, the network diameter configured using the stp bridge-diameter command is valid only for CISTs.