stp bridge-diameter

Syntax

stp [ vlan vlan-list ] bridge-diameter diameter

undo stp [ vlan vlan-list ] bridge-diameter

View

System view

Default level

2: System level

Parameters

vlan vlan-list: Specifies a VLAN list in the format of vlan-list = { vlan-id [ to vlan-id ] }&<1-10>, where the vlan-id argument represents the VLAN ID, in the range of 1 to 4094, and &<1-10> indicates that you can specify up to 10 VLAN IDs or VLAN ID ranges.

diameter: Specifies the switched network diameter, in the range of 2 to 7.

Description

Use stp bridge-diameter to specify the network diameter, the maximum possible number of stations between any two terminal devices on the switched network.

Use undo stp bridge-diameter to restore the default.

By default, the network diameter of the switched network is 7.

An appropriate setting of hello time, forward delay, and max age can speed up network convergence. The values of these timers are related to the network size and you can set the timers by setting the network diameter. With the network diameter set to 7 (the default), the three timers will also be set to their defaults.

To set the network diameter of an STP/RSTP/MSTP switched network, use this command without specifying any VLAN. To set the network diameter of a specified VLAN or multiple VLANs in a PVST switched network, use this command with a VLAN list specified.

In STP, RSTP, or MSTP mode, each MST region is considered as a device, and the configured network diameter of the switched network is only effective for the CIST (or the common root bridge), not for MSTIs.

In PVST mode, the network diameter configuration takes effect only on the root bridge.

Related commands: stp timer forward-delay, stp timer hello, and stp timer max-age.

Examples

# In MSTP mode, set the network diameter of the switched network to 5.

<Sysname> system-view
[Sysname] stp bridge-diameter 5

# In PVST mode, set the network diameter of VLAN 2 to 5.

<Sysname> system-view
[Sysname] stp mode pvst
[Sysname] stp vlan 2 bridge-diameter 5