Configuring Tag Protocol IDs (TPIDs) on QFX Series Switches
This topic describes how to configure the TPIDs expected to be sent or received on a particular VLAN for QFX series switches.
The QFX5100, QFX5110, QFX5120, QFX5200, and QFX5210 devices provide support for up to 4 TPID configurations per VLAN on an interface device. A TPID needs to be defined in the command-line interface (CLI) for aggregated ethernet interfaces and ether interfaces for the QFX device before it can be sent or received. The following values are supported for the TPID configuration:
-
0x8100
-
0x9200
-
0x88a8
-
0x9100
When a TPID is configured for a VLAN on a logical interface, the traffic packets that ingress on the port with TPIDs 0x8100, 0x88a8, 0x9100, and 0x9200 are accepted, and the packets that egress from the port for a particular VLAN carry the packets with the TPID configured on that VLAN.
To configure the TPID values, use the tag-protocol-id
statement.
See, tag-protocol-id (TPIDs Expected to Be Sent or Received).
The TPID values should be configured at the device interface level to be able to
implement TPID support. The vlan-tags outer
statement can be used
for configuring a TPID per VLAN. See, vlan-tags.
Conditions for Configuring Tag Protocol IDs (TPIDs) on QFX Series Switches
Note the following conditions before configuring TPIDs on QFX series switches:
-
The TPID configured for the VLAN profile for the logical interface takes precedence over the TPID configured for the port.
In the following example, it is assumed that the traffic that egress from unit 200 will have the TPID 0x9200 as that is the TPID set at the port level. However, since TPIDs are configured for logical interfaces, the traffic takes the value of the TPID from the VLAN profile rather than the port profile for all the logical interfaces configured on the interface device. Therefore, though
ae1
is set with TPID 0x9200 at the port level, packets that egress out ofae1.200
will have the VLAN’s default TPID 0x8100. The same concept applies toae1.400
as well.xe-0/0/0 { gigether-options { 802.3ad ae1; } } ae1 { flexible-vlan-tagging; encapsulation flexible-ethernet-services; aggregated-ether-options { ethernet-switch-profile { tag-protocol-id 0x9200; } } unit 100 { encapsulation vlan-bridge; vlan-tags outer 0x9200.100; } unit 200 { encapsulation vlan-bridge; vlan-id 200; } unit 400 { family ethernet-switching { interface-mode trunk; vlan { members 400; } } }
-
VXLAN scenarios are not supported.
-
If two logical interfaces with different TPIDs are a part of a VLAN, then the most recently configured TPID value is configured in the VLAN profile, as the hardware register supports only one TPID index per VLAN profile. In the example below, the TPID value for VLAN 100 is 0x9200 as
ae2.100
is the last configured value.ae1 { flexible-vlan-tagging; encapsulation flexible-ethernet-services; aggregated-ether-options { ethernet-switch-profile { tag-protocol-id 0x9100; } } unit 100 { encapsulation vlan-bridge; vlan-tags outer 0x9100.100; } ae2 { flexible-vlan-tagging; encapsulation flexible-ethernet-services; aggregated-ether-options { ethernet-switch-profile { tag-protocol-id 0x9200; } } unit 100 { encapsulation vlan-bridge; vlan-tags outer 0x9200.100; } vlans { v_100 { vlan-id 100; interface ae1.100; interface ae2.100; }
-
If multiple TPIDs are configured under the interface device with no logical interface level setting, then the first TPID value in the list is set at the port level.
In the example below, 0x9200 is set at the port level.
xe-0/0/0 { flexible-vlan-tagging; encapsulation flexible-ethernet-services; ether-options { ethernet-switch-profile { tag-protocol-id [0x9200 0x88a8 0x9100]; } } }
- If only a single logical interface is configured on an interface device with
0x8100, then the packets egress with the TPID value configured at the port
level. However, as shown in the example below, if multiple logical interfaces
are configured with different TPIDs from the list at the interface device level,
then packets going out with VLAN 100 will egress with the TPID 0x8100.
xe-0/0/0 { flexible-vlan-tagging; encapsulation flexible-ethernet-services; ether-options { ethernet-switch-profile { tag-protocol-id [0x9200 0x88a8 0x8100]; } } } unit 100 { encapsulation vlan-bridge; vlan-tags outer 0x8100.100; }