93
Description
Use the
stp bpdu-protection
command to enable the BPDU guard function.
Use the
undo stp bpdu-protection
command to disable the BPDU guard function.
By default, the BPDU guard function is disabled.
Examples
# Enable the BPDU guard function.
<Sysname> system-view
[Sysname] stp bpdu-protection
stp bridge-diameter
Syntax
stp bridge-diameter
diameter
undo stp
bridge-diameter
View
System view
Default level
2: System level
Parameters
diameter
: Specifies the switched network diameter, ranging from 2 to 7.
Description
Use the
stp bridge-diameter
command to specify the network diameter, namely the maximum possible
number of stations between any two terminal devices on the switched network.
Use the
undo stp bridge-diameter
command 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. You can set these timers by setting the network
diameter. With the network diameter set to 7 (the default), the three timers will be set to their defaults.
In MSTP mode, each MST region is regarded as a device. The network diameter configuration is only
effective for the CIST, not for MSTIs. The network diameter configuration is effective only on the common
root bridge.
Related commands:
stp timer forward-delay
,
stp timer hello
, and
stp timer max-age
.
Examples
# Set the network diameter of the switched network to 5.
<Sysname> system-view
[Sysname] stp bridge-diameter 5
stp compliance
Syntax
stp compliance
{
auto
|
dot1s
|
legacy
}