77
vlan-mapping modulo
Syntax
vlan-mapping modulo
modulo
View
MST region view
Default level
2: System level
Parameters
modulo
: Sets the modulo value, ranging from 1 to 15.
Description
Use
vlan-mapping modulo
to map VLANs in the MST region to MSTIs according to the specified modulo
value, quickly creating a VLAN-to-instance mapping table.
By default, all VLANs are mapped to the CIST (MSTI 0).
You cannot map the same VLAN to different MSTIs. If you map a VLAN that has been mapped to an MSTI
to a new MSTI, the old mapping will be 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, for example, then
VLAN 1 will be mapped to MSTI 1, VLAN 2 to MSTI 2, VLAN 15 to MSTI 15, VLAN 16 to MSTI 1, and
so on.
Related commands:
region-name
,
revision-level
,
display stp region-configuration
,
check
region-configuration
, and
active region-configuration
.
Examples
# Map VLANs to MSTIs as per modulo 8.
<Sysname> system-view
[Sysname] stp region-configuration
[Sysname-mst-region] vlan-mapping modulo 8