< Home

qinq mapping pe-vid ce-vid

Function

The qinq mapping pe-vid ce-vid command configures a sub-interface to map the outer VLAN tag of a frame.

The undo qinq mapping pe-vid ce-vid command cancels the configuration.

By default, VLAN mapping is not configured on a sub-interface.

Format

qinq mapping pe-vid vlan-id1 ce-vid vlan-id2 [ to vlan-id3 ] map-vlan vid vlan-id4

undo qinq mapping pe-vid vlan-id1 ce-vid vlan-id2 [ to vlan-id3 ] map-vlan vid vlan-id4

Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support this configuration.

Parameters

Parameter

Description

Value

pe-vid vlan-id1

Specifies the outer VLAN tag in a received frame.

The value is an integer that ranges from 2 to 4094.

ce-vid vlan-id2 [ to vlan-id3 ]

Specifies the inner VLAN tag in a received frame.
  • vlan-id2: specifies the start inner VLAN tag.
  • vlan-id3: specifies the end inner VLAN tag.
  • The value of vlan-id3 must be greater than or equal to the value of vlan-id2. vlan-id2 and vlan-id3 identify a VLAN range.

The value of vlan-id2 is an integer that ranges from 1 to 4094.

The value of vlan-id3 is an integer that ranges from 1 to 4094.

map-vlan vid vlan-id4

Specifies the VLAN ID in the mapped outer tag.

The value is an integer that ranges from 1 to 4094.

Views

GE sub-interface view, XGE sub-interface view, 25GE sub-interface view, 40GE sub-interface view, 100GE sub-interface view, VE sub-interface view, Eth-Trunk sub-interface view, MultiGE sub-interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

QinQ mapping is generally deployed on edge devices of a metro Ethernet and often used to map the VLAN tag carried in a frame to a specified VLAN tag before the frame is transmitted on the public network. QinQ mapping can be applied to the following scenarios:

  • The VLAN IDs deployed in new sites and old sites conflict, but new sites need to communicate with old sites.

  • The VLAN ID planning of each site on the public network is different. As a result, the VLAN IDs conflict. However, the sites do not need to communicate.

  • The VLAN IDs on both ends of the public network are different.

When a network edge device receives double-tagged frames, the inner tags indicate users and outer tags indicates services. To differentiate services on the ISP network, you can configure 2 to 1 QinQ mapping on network edge devices. The double tags of frames are mapped to a specified S-VLAN tag so that the outer tag can be transparently transmitted on the ISP network.

The qinq mapping pe-vid ce-vid command on a sub-interface has similar functions with the port vlan-mapping vlan inner-vlan command on the main interface. The differences are as follows:
  • QinQ mapping on a sub-interface is mainly used to access the L2VPN.

  • QinQ mapping used on the main interface is used for interconnection on the Layer 2 MAN so that users of different VLANs can communicate with each other.

  • QinQ mapping saves a large number of physical ports.

Precautions

The qinq mapping pe-vid ce-vid command maps the outer VLAN tags of the frames on a sub-interface, but does not change the inner VLAN tags. This command takes effect for only incoming frames.

The original VLAN IDs specified for QinQ mapping on a sub-interface cannot be globally created or displayed by display commands.

VLAN mapping or VLAN stacking cannot be configured for the same VLAN on the main interface and its sub-interfaces.

The mapped VLAN IDs specified in QinQ mapping configuration must be different from the control VLAN IDs for ring protocols such as SEP, RRPP, and ERPS. Otherwise, an error message will be displayed, indicating that the configuration fails.

Example

# On XGigabitEthernet0/0/1.1, set the outer VLAN tag 10 of frames with the inner VLAN tag 20 to outer VLAN tag 30.

<HUAWEI> system-view
[HUAWEI] vcmp role silent
[HUAWEI] interface xgigabitethernet 0/0/1
[HUAWEI-XGigabitEthernet0/0/1] port link-type hybrid
[HUAWEI-XGigabitEthernet0/0/1] quit
[HUAWEI] interface xgigabitethernet 0/0/1.1
[HUAWEI-XGigabitEthernet0/0/1.1] qinq mapping pe-vid 10 ce-vid 20 map-vlan vid 30
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >