65
Task Remarks
Optional
Configuring No Agreement Check
Optional
Optional
Configuring protection functions
Optional
Disabling the device to reactivate edge ports shut down by BPDU guard
Optional
Setting the spanning tree mode
The spanning tree modes include:
•
STP
mode
—All ports of the device send STP BPDUs. Select this mode when the peer device
of a port supports only STP.
•
RSTP
mode
—All ports of the device send RSTP BPDUs. A port in this mode automatically
transitions to the STP mode when receiving STP BPDUs from the peer device, and a port in this
mode does not transition to the MSTP mode when receiving MSTP BPDUs from the peer
device.
•
MSTP
mode
—All ports of the device send MSTP BPDUs. A port in this mode automatically
transitions to the STP mode when receiving STP BPDUs from the peer device, and a port in this
mode does not transition to the RSTP mode when receiving RSTP BPDUs from the peer
device.
•
PVST
mode
—
The device sends PVST BPDUs through all ports and maintains a spanning tree
for each VLAN. The number of VLANs that PVST can maintain instances for depends on the
switch model. Suppose the number is n, which is 16 on the HPE 3100 v2. When you configure
PVST on devices of different models in a network, to avoid network failures, make sure that the
number of VLANs for which PVST maintains instances does not exceed the lowest
n
.
The MSTP mode is compatible with the RSTP mode, and the RSTP mode is compatible with the STP
mode. The PVST mode's compatibility with the other spanning tree mode varies by port type:
•
On an access port, the PVST mode is compatible with any other spanning tree mode in any
VLAN.
•
On a trunk or hybrid port, the PVST mode is compatible with any other spanning tree mode in
only VLAN 1.
To set the spanning tree mode:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Set the spanning tree mode.
stp mode
{
stp
|
rstp
|
mstp
|
pvst
}
MSTP mode by default.
Configuring an MST region
Two or more spanning tree devices belong to the same MST region only if they are configured to
have the same format selector (0 by default, not configurable), MST region name, MST region
revision level, and the same VLAN-to-instance mapping entries in the MST region, and they are
connected via a physical link.