H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – MSTP
H3C S7500 Series Ethernet Switches Chapter 1
MSTP Configuration Commands
1-47
Description
Use the vlan-mapping modulo command to map VLANs to specific the specific
MSTIs.
By default, all VLANs in a network are mapped to the CIST (MSTI 0).
MSTP uses a VLAN mapping table to describe VLAN-to-MSTI mappings. You can use
this command to establish the VLAN mapping table and to map VLANs to the specific
MSTI.
Note that a VLAN cannot be mapped to multiple different MSTIs at the same time. A
VLAN-to-MSTI mapping becomes invalid when you map the VLAN to another MSTI.
Note:
You can map VLANs to the specific MSTIs quickly by using the vlan-mapping modulo
modulo command. The ID of the MSTI to which a VLAN is mapped can be figured out
by using the following expression:
(VLAN ID-1) % modulo + 1,
Where (VLAN ID-1) % modulo yields the module of (VLAN ID-1) with regards to modulo.
For example, if you set the modulo argument to 16, then VLAN 1 is mapped to MSTI 1,
VLAN 2 is mapped to MSTI 2, …, VLAN 16 is mapped to MSTI 16, VLAN 17 is mapped
to MSTI 1, and so on.
Related commands: check region-configuration, revision-level, region-name,
active region-configuration.
Examples
# Map VLANs to MSTIs, with the modulo being 16.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] stp region-configuration
[H3C-mst-region] vlan-mapping modulo 16
1.1.46 vlan-vpn tunnel
Syntax
vlan-vpn tunnel
undo vlan-vpn tunnel
View
System view