Configuration Example; Enabling Trap Messages Conforming To 802.1D Standard; Displaying And Maintaining Mstp - H3C S3100 Series Operation Manual

H3c s3100 series ethernet switches operation manual
Hide thumbs Also See for S3100 Series:
Table of Contents

Advertisement

Configuration Example

# Enable log/trap output for the ports of instance 1.
<Sysname> system-view
[Sysname] stp instance 1 portlog
# Enable log/trap output for the ports of all instances.
<Sysname> system-view
[Sysname] stp portlog all

Enabling Trap Messages Conforming to 802.1d Standard

When enabled, the switch sends the following two types of 802.1d-compliant traps to the network
management device:
When the switch is configured to be the root bridge of a spanning tree instance, it sends
802.1d-compliant newroot traps to the network management device.
When the switch detects a topology change, it sends 802.1d-compliant topology-change traps to
the network management device.
The stp instance instance-id dot1d-trap enable command enables both newroot and topology-change
trap functions for the specified spanning tree instance at the same time.
Configuration procedure
Follow these steps to enable trap messages conforming to 802.1d standard:
To do...
Enter system view
Enable trap messages conforming
to 802.1d standard in an instance
Configuration example
# Enable a switch to send trap messages conforming to 802.1d standard to the network management
device when the switch becomes the root bridge of instance 1.
<Sysname> system-view
[Sysname] stp instance 1 dot1d-trap newroot enable

Displaying and Maintaining MSTP

To do...
Display the state and statistics
information about spanning trees of
the current device
Display region configuration
Display information about the ports
that are shut down by STP
protection
Display information about the ports
that are blocked by STP protection
Use the command...
system-view
stp [ instance instance-id ] dot1d-trap
[ newroot | topologychange ] enable
Use the command...
display stp [ instance instance-id ]
[ interface interface-list | slot
slot-number ] [ brief ]
display stp region-configuration
display stp portdown
display stp abnormalport
1-46
Remarks
Required
Remarks
Available in any view

Advertisement

Chapters

Table of Contents
loading

Table of Contents