107
This command configures SNMP notifications only for PVST topology changes whether you specify
the
tc
keyword or not.
Examples
# Enable SNMP notifications for PVST topology changes.
<Sysname> system-view
[Sysname] snmp-agent trap enable stp tc
stp bpdu-protection
Syntax
stp bpdu-protection
undo stp
bpdu-protection
View
System view
Default level
2: System level
Parameters
None
Description
Use
stp bpdu-protection
to globally enable the BPDU guard function.
Use
undo stp bpdu-protection
to globally disable the BPDU guard function.
By default, the BPDU guard function is globally disabled.
Examples
# Enable the BPDU guard function globally.
<Sysname> system-view
[Sysname] stp bpdu-protection
stp bridge-diameter
Syntax
stp
[
vlan
vlan-list
]
bridge-diameter
diameter
undo stp
[
vlan
vlan-list
]
bridge-diameter
View
System view
Default level
2: System level
Parameters
vlan vlan-list
: Specifies a VLAN list in the format of
vlan-list
=
{
vlan-id
[
to
vlan-id
] }&<1-10>, where
the
vlan-id
argument represents the VLAN ID, in the range of 1 to 4094, and &<1-10>
indicates that
you can specify up to 10 VLAN IDs or VLAN ID ranges.
diameter
: Specifies the switched network diameter, in the range of 2 to 7.