stp bridge-diameter
Use stp bridge-diameter to specify the network diameter.
Use undo stp bridge-diameter to restore the default.
Syntax
stp [ vlan vlan-id-list ] bridge-diameter diameter
undo stp [ vlan vlan-id-list ] bridge-diameter
Default
The network diameter of the switched network is 7.
Views
System view
Predefined user roles
network-admin
Parameters
vlan vlan-id-list: Specifies a space-separated list of up to 10 VLAN items. Each item specifies a VLAN or a range of VLANs in the form of vlan-id1 [ to vlan-id2 ]. The value for vlan-id2 must be equal to or greater than the value for vlan-id1. The value range for the vlan-id argument is 1 to 4094. If you set the STP, RSTP, or MSTP switched network diameter, do not specify this option.
diameter: Specifies the switched network diameter in the range of 2 to 7.
Usage guidelines
The switched network diameter refers to the maximum number of devices on the path for an edge device to reach another through the root bridge.
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 are also set to their defaults.
In STP, RSTP, or MSTP mode, each MST region is considered a device, and the configured network diameter of the switched network takes effect only on the CIST (or the common root bridge).
In PVST mode, the configured network diameter takes effect only on the root bridges of the specified VLANs.
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 in the switched network to 5.
<Sysname> system-view [Sysname] stp vlan 2 bridge-diameter 5
Related commands
stp timer forward-delay
stp timer hello
stp timer max-age