R211x-HP Flexfabric 11900 Layer 2 - LAN Switching Command Reference

201
where &<1-10> indicates that you can specify up to ten VLAN IDs. The value range for the vlan-id
argument is 1 to 4094. Any of the original VLAN cannot be the same as the translated VLAN.
tunnel outer-vlan-id inner-vlan-id translated-vlan outer-vlan-id inner-vlan-id: Configures the original outer
VLAN ID and inner VLAN ID and the translated outer VLAN ID and inner VLAN ID for two-to-two VLAN
mapping. The value range for either outer-vlan-id or inner-vlan-id is 1 to 4094.
all: Deletes all VLAN mapping configurations from the interface.
Usage guidelines
For different types of VLAN mapping entries on an interface, both the original VLANs and the
translated VLANs cannot overlap. For one-to-one VLAN mapping entries or two-to-two VLAN
mapping entries, the translated VLANs cannot overlap. When the original VLANs of one-to-one or
two-to-two VLAN mapping entries overlap, the most recent configuration takes effect.
On an interface, a transparent VLAN cannot be configured as an original VLAN or translated
VLAN (for packets carrying two layers of VLAN tags, the translated VLANs and original VLANs
refer to only the outer VLANs). For more information about transparent VLANs, see Layer 2—LAN
Switching Configuration Guide.
Before enabling or disabling QinQ, first clear the existing VLAN mapping entries.
QinQ is mutually exclusive with two-to-two VLAN mapping. After QinQ is enabled on an interface,
the interface can recognize only the outermost VLAN tag of packets. As a result, the interface
cannot implement two-to-two VLAN mapping.
The MTU of an interface is 1500 bytes by default. After a VLAN tag is added to a packet, the packet
length is added by four bytes. When you configure one-to-two VLAN mapping, HP recommends
increasing the MTU (to at least 1504 bytes) on interfaces in the service provider network.
VLAN mapping takes effect on only VLAN-tagged packets received on an interface.
VLAN mapping is mutually exclusive with EVB. Do not configure VLAN mapping and EVB on a
port.
Examples
# Configure one-to-one VLAN mapping on Ten-GigabitEthernet 1/0/1 to map VLAN 1 to VLAN 101.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] vlan mapping 1 translated-vlan 101
# Configure one-to-two VLAN mapping on Ten-GigabitEthernet 1/0/4 to add outer VLAN tag 101 to
packets carrying VLAN tags 1 through 10 and VLAN tag 80.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/4
[Sysname-Ten-GigabitEthernet1/0/4] vlan mapping nest range 1 to 10 nested-vlan 101
[Sysname-Ten-GigabitEthernet1/0/4] vlan mapping nest single 80 nested-vlan 101
# Configure two-to-two VLAN mapping on Ten-GigabitEthernet 1/0/5 to map outer VLAN 101 and
inner VLAN 1 to outer VLAN 201 and inner VLAN 10.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/5
[Sysname-Ten-GigabitEthernet1/0/5] vlan mapping tunnel 101 1 translated-vlan 201 10
Related commands
display vlan mapping