R21xx-HP FlexFabric 11900 Layer 2 LAN Switching Configuration Guide

128
Configuring one-to-one VLAN mapping
Perform one-to-one VLAN mapping on wiring-closet switches (see Figure 33) to isolate traffic by both user
and traffic type.
Before configuring one-to-one VLAN mapping, first create the original VLAN and the translated VLAN.
One-to-one VLAN mapping must be configured on the customer-side port.
To configure one-to-one VLAN mapping:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter Layer 2 Ethernet
interface view or Layer 2
aggregate interface view.
Enter Layer 2 Ethernet interface
view:
interface interface-type
interface-number
Enter Layer 2 aggregate interface
view:
interface bridge-aggregation
interface-number
N/A
3. Set the link type of the port.
Configure the port as a trunk port:
port link-type trunk
Configure the port as a hybrid
port:
port link-type hybrid
By default, the link type of a
port is access.
4. Assign the port to the original
VLANs and the translated
VLANs.
port trunk permit vlan vlan-list
port hybrid vlan vlan-list tagged
Use one of the commands.
By default, a trunk port is
assigned to only VLAN 1, and
a hybrid port is only an
untagged member of VLAN 1.
5. Configuring one-to-one VLAN
mapping.
vlan mapping vlan-id translated-vlan
vlan-id
By default, VLAN mapping is
not configured on an interface.
Configuring one-to-two VLAN mapping
Perform one-to-two VLAN mapping on the edge devices from which customer traffic enters SP networks,
on PE 1 and PE 4 in Figure 34 for example. One-to-two VLAN mapping enables the edge devices to
i
nsert an outer VLAN tag to each incoming packet.
Before configuring one-to-two VLAN mapping, first create the original VLAN and the translated VLAN.
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.
One-to-two VLAN mapping must be configured on the customer-side port.
To configure one-to-two VLAN mapping: