qinq termination pe-vid ce-vid any

Function

The qinq termination pe-vid ce-vid any command enables a sub-interface to terminate double-tagged packets.

The undo qinq termination pe-vid ce-vid any command disables a sub-interface from terminating double-tagged packets.

By default, a sub-interface is disabled from terminating double-tagged packets.

Format

qinq termination pe-vid pe-vid [ to high-pe-vid ] ce-vid any

undo qinq termination pe-vid pe-vid [ to high-pe-vid ] ce-vid any

Parameters

Parameter Description Value
pe-vid

Specifies the start VLAN ID in the outer VLAN tag.

The value is an integer ranging from 1 to 4094.

to high-pe-vid

Specifies the end VLAN ID in the outer VLAN tag.

If the command with pe-vid to high-pevid specified is run more than once, all configurations take effect.

The value is an integer ranging from 1 to 4094.

Views

100ge sub-interface view, 10GE sub-interface view, 200GE sub-interface view, 25GE sub-interface view, 400GE sub-interface view, 40GE sub-interface view, 50GE sub-interface view, Eth-Trunk sub-interface view, GE sub-interface view, Global VE sub-interface view, VE sub-interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ethernet write

Usage Guidelines

Usage Scenario

  • Inter-VLAN communication

    VLANs are widely used because they can isolate Layer 2 user packets. Each VLAN logically isolates a broadcast domain from other broadcast domains in a physical LAN. Hosts in each VLAN can communicate with each other, but not hosts in other VLANs. Layer 3 routing techniques must be used to enable inter-VLAN communication. The following interfaces can be used to implement inter-VLAN communication:
  • VLANIF interfaces on Layer 3 switches
  • Layer 3 Ethernet interfaces on routers

    Traditional Layer 3 Ethernet interfaces do not identify VLAN packets. After receiving VLAN packets, they consider the packets invalid and discard them. To implement inter-VLAN communication, create Ethernet sub-interfaces on a Layer 3 Ethernet interface and configure the sub-interfaces to remove tags from VLAN packets.
  • Communication between devices in the LAN and WAN

    Most LAN packets carry VLAN tags. Certain WAN protocols such as Point-to-Point Protocol (PPP) cannot identify VLAN packets. To send VLAN packets from a LAN to a WAN, a device must record VLAN information carried in VLAN packets, remove VLAN tags, and then forward the packets.

    VLAN packets are classified as dot1q packets (each carries only one VLAN tag) or QinQ packets (each carries two VLAN tags). Accordingly, there are two VLAN tag termination modes:
  • Dot1q termination, which terminates tags carried in dot1q packets.To configure dot1q termination, run the dot1q termination vid command in the sub-interface view.
  • QinQ termination, which terminates tags carried in QinQ packets.To configure QinQ termination, run the qinq termination pe-vid ce-vid any command in the sub-interface view.

Prerequisites

QinQ termination has been configured on a sub-interface using the encapsulation qinq-termination command.

The encapsulation qinq-termination command is replaced by the control-vid qinq-termination command.

When users need to communicate through an L2VPN, the qinq termination l2 sysmetry command must be run to configure a QinQ VLAN tag termination sub-interface to access the L2VPN in symmetric mode and then any must be specified in the qinq termination pe-vid ce-vid command to configure the sub-interface to ignore the VLAN ID in the inner tag.

Configuration Impact

After the qinq termination pe-vid ce-vid command is run, the VLAN tag termination sub-interface processes packets in the following ways:

  • After receiving a packet, the inbound interface removes the tag carried in the packet and then forwards the packet at Layer 2. The outbound interface determines whether the sent packet carries tags.
  • Before sending a packet, the outbound interface adds the corresponding VLAN information to the packet.

    If you bind a QinQ VLAN tag termination sub-interface to a virtual switching instance (VSI) or virtual private wire service (VPWS) to access a Layer 2 virtual private network (L2VPN), configure the mode in which the sub-interface connects to the L2VPN. For details, see the qinq termination l2 command.

Example

# Configure QinQ termination on GE 0/1/1.1, set the VLAN ID ranges in the inner tag of user packets to 100 to 200 and 400 to 500, set the VLAN ID in the outer tag to 1000, and bind GE 0/1/1.1 to VLAN group 1.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet0/1/1.1
[*HUAWEI-GigabitEthernet0/1/1.1] control-vid 1 qinq-termination
[*HUAWEI-GigabitEthernet0/1/1.1] qinq termination l2 symmetry
[*HUAWEI-GigabitEthernet0/1/1.1] qinq termination pe-vid 1000 ce-vid any
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >