Operation Manual – MSTP
H3C S3100-52P Ethernet Switch
Chapter 1 MSTP Configuration
1-55
To do...
Use the command...
Remarks
Enable log/trap output for
the ports of all instances
stp
portlog
all
Required
By default, log/trap output
is disabled for the ports of
all instances.
1.10.3 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
1.11 Enabling Trap Messages Conforming to 802.1d
Standard
A switch sends trap messages conforming to 802.1d standard to the network
management device in the following two cases:
z
The switch becomes the root bridge of an instance.
z
Network topology changes are detected.
I. Configuration procedure
Follow these steps to enable trap messages conforming to 802.1d standard:
To do...
Use the command...
Remarks
Enter system view
system-view
—
Enable trap messages
conforming to 802.1d
standard in an instance
stp
[
instance instance-id
]
dot1d-trap
[
newroot
|
topologychange
]
enable
Required
II. 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