This article provides an example configuration of Q-in-Q tunneling for receiving both untagged and tagged traffic using a customer scenario with the following requirements:
The traffic flow is working as expected, meaning if we take flow from ce1 to ce2:
To achieve this, the following configuration needs to be applied on the ACX:
set interfaces ge-0/0/0 flexible-vlan-taggingset interfaces ge-0/0/0 native-vlan-id 123set interfaces ge-0/0/0 encapsulation flexible-ethernet-servicesset interfaces ge-0/0/0 gigether-options ethernet-switch-profile tag-protocol-id 0x88a8set interfaces ge-0/0/0 gigether-options ethernet-switch-profile tag-protocol-id 0x8100set interfaces ge-0/0/0 gigether-options ethernet-switch-profile tag-protocol-id 0x9100set interfaces ge-0/0/0 unit 0 encapsulation vlan-bridgeset interfaces ge-0/0/0 unit 0 vlan-id-list 121-122set interfaces ge-0/0/0 unit 0 input-vlan-map pushset interfaces ge-0/0/0 unit 0 input-vlan-map tag-protocol-id 0x88a8set interfaces ge-0/0/0 unit 0 input-vlan-map vlan-id 3410set interfaces ge-0/0/0 unit 0 output-vlan-map popset interfaces ge-0/1/0 flexible-vlan-taggingset interfaces ge-0/1/0 media-type copperset interfaces ge-0/1/0 encapsulation flexible-ethernet-servicesset interfaces ge-0/1/0 gigether-options ethernet-switch-profile tag-protocol-id 0x88a8set interfaces ge-0/1/0 gigether-options ethernet-switch-profile tag-protocol-id 0x8100set interfaces ge-0/1/0 gigether-options ethernet-switch-profile tag-protocol-id 0x9100set interfaces ge-0/1/0 unit 3410 encapsulation vlan-bridgeset interfaces ge-0/1/0 unit 3410 vlan-tags outer 0x88a8.3410set bridge-domains test interface ge-0/0/0.0set bridge-domains test interface ge-0/1/0.3410
On the MX, the following needs to be added:
set interfaces ge-0/3/0 flexible-vlan-taggingset interfaces ge-0/3/0 encapsulation flexible-ethernet-servicesset interfaces ge-0/3/0 gigether-options ethernet-switch-profile tag-protocol-id 0x88a8set interfaces ge-0/3/0 gigether-options ethernet-switch-profile tag-protocol-id 0x8100set interfaces ge-0/3/0 gigether-options ethernet-switch-profile tag-protocol-id 0x9100set interfaces ge-0/3/0 unit 3410 encapsulation vlan-bridgeset interfaces ge-0/3/0 unit 3410 vlan-tags outer 0x88a8.3410set interfaces ge-0/3/1 encapsulation ethernet-bridgeset interfaces ge-0/3/1 gigether-options ethernet-switch-profile tag-protocol-id 0x88a8set interfaces ge-0/3/1 gigether-options ethernet-switch-profile tag-protocol-id 0x8100set interfaces ge-0/3/1 gigether-options ethernet-switch-profile tag-protocol-id 0x9100set interfaces ge-0/3/1 unit 0 input-vlan-map pushset interfaces ge-0/3/1 unit 0 input-vlan-map tag-protocol-id 0x88a8set interfaces ge-0/3/1 unit 0 input-vlan-map vlan-id 3410set interfaces ge-0/3/1 unit 0 output-vlan-map popset bridge-domains test interface ge-0/3/0.3410set bridge-domains test interface ge-0/3/1.0
For tagged VLAN:
2024-08-22: Updated Data Category2020-10-23: Article reviewed for accuracy, no changes required; article accurate and valid