R0106-HP MSR Router Series Layer 2 - LAN Switching Command Reference(V7)

52
When you enable the spanning tree feature, the device dynamically maintains the spanning tree status
of VLANs, based on received configuration BPDUs. When you disable the spanning tree feature, the
device stops maintaining the spanning tree status.
Examples
# In PVST mode, globally enable the spanning tree feature and then enable the spanning tree feature for
VLAN 2.
<Sysname> system-view
[Sysname] stp mode pvst
[Sysname] stp global enable
[Sysname] stp vlan 2 enable
Related commands
stp enable
stp global enable
stp mode
vlan-mapping modulo
Use vlan-mapping modulo to map VLANs in an MST region to MSTIs according to the specified modulo
value and quickly create a VLAN-to-instance mapping table.
Syntax
vlan-mapping modulo modulo
Default
All VLANs are mapped to the CIST (MSTI 0).
Views
MST region view
Predefined user roles
network-admin
Parameters
modulo: Sets the modulo value. The minimum value is 1, and the maximum value is 64.
Usage guidelines
You cannot map a VLAN to different MSTIs. If you map a VLAN that has been mapped to an MSTI to a
new MSTI, the old mapping is automatically removed.
This command maps each VLAN to the MSTI whose ID is (VLAN ID 1) % modulo + 1, where (VLAN ID
– 1) % modulo is the modulo operation for (VLAN ID – 1). If the modulo value is 15, then VLAN 1 is
mapped to MSTI 1, VLAN 2 to MSTI 2, …, VLAN 15 to MSTI 15, VLAN 16 to MSTI 1, and so on.
Examples
# Map VLANs to MSTIs as per modulo 8.
<Sysname> system-view
[Sysname] stp region-configuration
[Sysname-mst-region] vlan-mapping modulo 8
Related commands
active region-configuration