Configuring the TPID Value in an Outer VLAN Tag
Context
To enable interoperation between devices from different vendors, set the same TPID value in outer VLAN tags on the devices. Devices from different vendors or in different network plans may use different TPID values in VLAN tags of VLAN packets. To adapt to an existing network plan, the switch supports TPID value configuration. You can set the TPID value on the switch to be the same as the TPID value in the network plan to ensure compatibility with the current 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.
For the CE12800E equipped with FD-X series cards, the qinq protocol and port vlan-stacking commands cannot be configured together.
Procedure
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The interface view is displayed.
- Run qinq protocol protocol-id
The protocol type in the outer VLAN tag is set.
The qinq protocol command cannot be used on Dot1q-tunnel interfaces.
The TPID value can be 0x8100, 0x9100, or 0x88a8. Only two protocol types can be configured on the device.
By default, the TPID value in the outer VLAN tag is 0x8100.
- Run commit
The configuration is committed.