R211x-HP Flexfabric 11900 Layer 2 - LAN Switching Command Reference
132
Examples
# Enable the BPDU guard function.
<Sysname> system-view
[Sysname] stp bpdu-protection
stp bridge-diameter
Use stp bridge-diameter to specify the network diameter, which is the maximum possible number of
stations between any two terminal devices on the switched network.
Use undo stp bridge-diameter to restore the default.
Syntax
stp bridge-diameter diameter
undo stp bridge-diameter
Default
The network diameter of the switched network is 7.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
diameter: Specifies the switched network diameter in the range of 2 to 7.
Usage guidelines
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.
Each MST region is considered a device, and the configured network diameter of the switched network
is effective only on MSTI 0 (or the common root bridge).
Examples
# In MSTP mode, set the network diameter of the switched network to 5.
<Sysname> system-view
[Sysname] stp bridge-diameter 5
Related commands
• stp timer forward-delay
• stp timer hello
• stp timer max-age
stp compliance
Use stp compliance to configure the mode a port uses to recognize and send MSTP BPDUs.










