< Home

Configuring the TPID Value in an Outer VLAN Tag

Context

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.

  • To implement interoperability with a non-Huawei device, ensure that the protocol type in the outer VLAN tag added by the switch can be identified by the non-Huawei device.
  • The qinq protocol command identifies incoming packets, and adds or changes the TPID value of outgoing packets.
  • The protocol ID configured on an interface by using the qinq protocol command must be different from other commonly used protocol IDs. Otherwise, the interface cannot distinguish packets of these protocols. For example, protocol-id cannot be set to 0x0806, which is the ARP protocol ID.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The interface view is displayed.

  3. Run qinq protocol protocol-id

    The protocol type ID in the outer VLAN tag is set.

    The qinq protocol command cannot be used on dot1q-tunnel interfaces.

    The default TPID value in an outer VLAN tag is 0x8100.

Verifying the Configuration

Run the display this command in the interface view to check the configured protocol type of the outer VLAN tag.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >