R0106-HP MSR Router Series Layer 2 - LAN Switching Command Reference(V7)

26
Syntax
stp bpdu-protection
undo stp bpdu-protection
Default
The BPDU guard function is disabled.
Views
System view
Predefined user roles
network-admin
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.
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 the PVST switched network diameter for the VLANs specified by a VLAN ID list.
They are in the format of vlan-id-list = { vlan-id [ to vlan-id ] }&<1-10>, where &<1-10> indicates that you
can specify up to 10 vlan-id [ to vlan-id ] parameters. 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 network diameter of the switched network refers to the maximum number of devices on the path for
an edge device to reach another edge device in the switched network 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.