130
Syntax
stp bpdu-protection
undo stp
bpdu-protection
Default
BPDU guard is globally disabled.
Views
System view
Predefined user roles
network-admin
Examples
# Enable BPDU guard globally.
<Sysname> system-view
[Sysname] stp bpdu-protection
Related commands
stp edged-port
stp port bpdu-protection
stp bridge-diameter
Use stp bridge-diameter to set the network diameter. 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.
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
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