123
Enabling PVST BPDU guard
An MSTP-enabled device forwards PVST BPDUs as data traffic because it cannot recognize PVST
BPDUs. If a PVST-enabled device in another independent network receives the PVST BPDUs, a
PVST calculation error might occur. To avoid PVST calculation errors, enable PVST BPDU guard on
the MSTP-enabled device. The device shuts down a port if the port receives PVST BPDUs.
To enable PVST BPDU guard:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable PVST BPDU guard.
stp pvst-bpdu-protection
By default, PVST BPDU guard is
disabled.
Enabling the device to log events of detecting or
receiving TC BPDUs
This feature allows the device to generate logs when it detects or receives TC BPDUs. This feature
applies only to PVST mode.
To enable the device to log events of detecting or receiving TC BPDUs:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable the device to log
events of receiving or
detecting TC BPDUs.
stp log enable tc
By default, the device does not
generate logs when it detects or
receives TC BPDUs.
Enabling SNMP notifications for new-root election
and topology change events
This task enables the device to generate logs and report new-root election events or spanning tree
topology changes to SNMP. For the event notifications to be sent correctly, you must also configure
SNMP on the device. For more information about SNMP configuration, see the network
management and monitoring configuration guide for the device.
When you use the
snmp-agent trap enable stp
[
new-root
|
tc
] command, follow these guidelines:
•
The
new-root
keyword applies only to STP, MSTP, and RSTP modes.
•
The
tc
keyword applies only to PVST mode.
•
In STP, MSTP, or RSTP mode, the
snmp-agent trap enable stp
command enables SNMP
notifications for new-root election events.
•
In PVST mode, the
snmp-agent trap enable stp
enables SNMP notifications for spanning tree
topology changes.
To enable SNMP notifications for new-root election and topology change events:
Step Command
Remarks
1.
Enter system view.
system-view
N/A