77
Step Command
Remarks
2.
Enter interface view or
port group view.
•
Enter Layer 2 Ethernet interface view or
Layer 2 aggregate interface view:
interface interface-type interface-number
•
Enter port group view:
port-group manual port-group-name
Use one of the
commands.
3.
Configure the mode
that the port uses to
recognize/send MSTP
packets.
stp compliance
{
auto
|
dot1s
|
legacy
}
auto
by default.
Enabling outputting port state transition
information
In a large-scale spanning tree network, you can enable devices to output the port state transition
information of all MSTIs or the specified MSTI in order to monitor the port states in real time.
To enable outputting port state transition information:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable outputting port
state transition
information.
•
In
STP/RSTP
mode:
stp port-log instance 0
•
In PVST mode:
stp port-log vlan
vlan-list
•
In MSTP mode:
stp port-log instance
{
instance-id
|
all
}
Use one of the commands.
Enabled by default.
Enabling the spanning tree feature
You must enable the spanning tree feature for the device before any other spanning tree related
configurations can take effect.
Configuration restrictions and guidelines
•
You can disable the spanning tree feature for certain ports with the
undo stp enable
command
to exclude them from spanning tree calculation and save CPU resources of the device.
•
In PVST mode, when you globally enable the spanning tree feature the device automatically
enables the spanning tree feature for the first
n
(which is the number of PVST instances that the
switch supports and is 16 for the HPE 3100 v2 switch) of the existing VLANs by default. To
enable the spanning tree feature for other VLANs, you must first disable the spanning tree
feature for certain VLANs. This guideline does not apply if the number of existing VLANs on the
switch does not exceed
n
.