Enabling outputting port state transition
information
About outputting port state transition information
In a large-scale spanning tree network, you can enable devices to output the port state transition
information. Then, you can monitor the port states in real time.
Procedure
Enter system view.
1.
system-view
Enable outputting port state transition information.
2.
In STP/RSTP mode:
stp port-log instance 0
In PVST mode:
stp port-log vlan vlan-id-list
In MSTP mode:
stp port-log { all | instance instance-list }
By default, outputting port state transition information is disabled.
Enabling the spanning tree feature
Restrictions and guidelines
You must enable the spanning tree feature for the device before any other spanning tree related
configurations can take effect. In STP, RSTP, or MSTP mode, make sure the spanning tree feature is
enabled globally and on the desired ports. In PVST mode, make sure the spanning tree feature is
enabled globally, in the desired VLANs, and on the desired ports.
To exclude specific ports from spanning tree calculation and save CPU resources, disable the
spanning tree feature for these ports with the undo stp enable command. Make sure no loops
occur in the network after you disable the spanning tree feature on these ports.
Enabling the spanning tree feature in STP/RSTP/MSTP
mode
Enter system view.
1.
system-view
Enable the spanning tree feature.
2.
stp global enable
When the device starts up with initial settings, the spanning tree feature is globally disabled by
default.
When the device starts up with factory defaults, the spanning tree feature is globally enabled by
default.
For more information about the initial settings and factory defaults, see Fundamentals
Configuration Guide.
Enter interface view.
3.
41