< Home

qinq protocol

Function

The qinq protocol command sets the TPID value in the outer VLAN tag of an interface.

The undo qinq protocol command restores the default TPID value in the outer VLAN tag.

By default, the TPID value in the outer VLAN tag is 0x8100.

Format

qinq protocol protocol-id

undo qinq protocol

Parameters

Parameter

Description

Value

protocol-id

Specifies the TPID value in the outer VLAN tag.

The value is a 4-digit hexadecimal integer that ranges from 0x0600 to 0xFFFF. The default TPID value is 0x8100.

Views

Ethernet interface view, GE interface view, XGE interface view, 40GE interface view, 100GE interface view, MultiGE interface view, Eth-Trunk interface view, 25GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To enable devices from different vendors to interoperate, set the same TPID value in outer VLAN tags on the devices. Devices from different vendors or in different network plans may use different Tag Protocol Identifier (TPID) values in VLAN tags of VLAN packets. The switch supports configuration of the TPID value in outer VLAN tags so that it can interoperate with devices from different vendors or operate seamlessly on an existing network.

Precautions

  • In earlier versions of V200R010, this command can be configured on Eth-Trunk member interfaces but not the Eth-Trunk. In V200R010 and later versions, this command can be configured on the Eth-Trunk but not Eth-Trunk member interfaces.
  • When the device is upgraded from an earlier version of V200R010 to V200R010 or later and the qinq protocol command is configured on Eth-Trunk member interfaces, the following situations may occur:

    • If the same qinq protocol command has been configured on all Eth-Trunk member interfaces, the qinq protocol command configuration takes effect on the Eth-Trunk after the upgrade.

    • If different qinq protocol commands are configured on Eth-Trunk member interfaces, the qinq protocol command configuration takes effect on the Eth-Trunk member interfaces after the upgrade and there is the configuration on the Eth-Trunk member interfaces. To configure the qinq protocol command in the Eth-Trunk interface view, first manually run the undo qinq protocol command on Eth-Trunk member interfaces to delete the configuration. In this situation, automatic completion of the undo qinq protocol command is not supported. You must manually enter the undo qinq protocol command.

  • The device directly connected to an interface must be able to identify the TPID value in the outer VLAN tag on the interface.

  • The qinq protocol command identifies incoming frames, and adds or changes the TPID value of outgoing frames.

  • The TPID value specified by the qinq protocol command must be different from TPID values of specific protocols. Otherwise, the interface cannot correctly classify protocol packets. The TPID value cannot be any of the values in the following table.
    Table 1 Description of protocol types and values

    Protocol Type

    Value

    ARP

    0x0806

    RARP

    0x8035

    IP

    0x0800

    IPv6

    0x86DD

    PPPoE

    0x8863/0x8864

    MPLS

    0x8847/0x8848

    IPX/SPX

    0x8137

    LACP

    0x8809

    802.1x

    0x888E

    HGMP

    0x88A7

    Reserved

    0xFFFD/0xFFFE/0xFFFF

Example

# Set the TPID value in the outer VLAN tag of a QinQ frame to 0x9100 on GE0/0/1.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet0/0/1
[HUAWEI-GigabitEthernet0/0/1] qinq protocol 9100
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >