< Home

stp bridge-diameter

Function

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.

Format

stp [ vlan { vlan-id1 [ to vlan-id2 ] } &<1-10> ] bridge-diameter diameter

undo stp [ vlan { vlan-id1 [ to vlan-id2 ] } &<1-10> ] bridge-diameter

Parameters

Parameter Description Value
vlan vlan-id1 [ to vlan-id2 ]
Configures the diameter of a spanning tree in VLANs.
  • vlan-id1 specifies the start VLAN ID.
  • to vlan-id2 specifies the end VLAN ID. vlan-id2 must be greater than or equal to vlan-id1. vlan-id2 and vlan-id1 specify a VLAN range.
  • If to vlan-id2 is not specified, the diameter is configured only for the VLAN specified by vlan-id1.

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.

Views

System view or MSTP process view

VBST does not support processes. When VBST is running, you cannot run the stp bridge-diameter command in the MSTP process view.

Default Level

2: Configuration level

Usage Guidelines

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.

The following time parameters are related to the network scale:
  • 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.

Example

# Set the network diameter to 5 when STP/RSTP/MSTP is running.

<HUAWEI> system-view
[HUAWEI] stp bridge-diameter 5
# Set the diameter to 5 for VLAN 10 when VBST is running.
<HUAWEI> system-view
[HUAWEI] stp vlan 10 bridge-diameter 5
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >