Configuring the TPID for VLAN-tagged packets

TPID identifies whether or not a frame contains VLAN tags. By default, the value of 0x8100 identifies an IEEE 802.1Q-tagged frame. You can set another TPID value to identify VLAN-tagged packets.

To work with VLAN termination on a subinterface, set the TPID value in the outermost VLAN tag of packets on the main interface of the subinterface.

The interface processes packets as untagged packets if their outermost VLAN tag is not 0x8100 or the configured value.

When sending a packet, the interface sets the TPID value in the outermost VLAN tag to the configured value. If the packet includes two or more layers of VLAN tags, the interface sets the TPID values to 0x8100 in all VLAN tags except the outermost VLAN tag.

To set the TPID value for VLAN-tagged packets:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter interface view.

  • Enter Layer 3 Ethernet interface view:interface interface-type interface-number

  • Enter Layer 3 aggregate interface view:interface route-aggregation interface-number

  • Enter L3VE interface view:interface ve-l3vpn interface-number.subnumber

Configurations made in the following views take effect on all the subinterfaces:

  • Layer 3 Ethernet interface view.

  • Layer 3 aggregate interface view.

  • L3VE interface view.

3. Set the TPID value in the outermost VLAN tag of packets received and sent by the interface.

dot1q ethernet-type hex-value

The default setting is 0x8100.