87
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-id-list
•
In MSTP mode:
stp port-log
{
all
|
instance
instance-list
}
By default, this feature is
enabled.
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. 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
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable the spanning tree
feature.
stp global enable
By default, the spanning tree
feature is disabled globally.
3.
Enter Layer 2 Ethernet or
aggregate interface view.
interface interface-type
interface-number
N/A
4.
(Optional.) Enable the
spanning tree feature for the
port.
stp
enable
By default, the spanning tree
feature is enabled on all ports.
Enabling the spanning tree feature in PVST mode
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable the spanning tree
feature.
stp global enable
By default, the spanning tree
feature is disabled globally.
3.
Enable the spanning tree
feature in VLANs.
stp
vlan
vlan-id-list
enable
By default, the spanning tree
feature is enabled in VLANs.
4.
Enter Layer 2 Ethernet or
aggregate interface view.
interface interface-type
interface-number
N/A
5.
Enable the spanning tree
feature on the port.
stp
enable
By default, the spanning tree
feature is enabled on all ports.
Содержание H3C S7500E-X
Страница 70: ...57 ...