I had a lot of issues getting this to work in the virtual environment. From memory, I got it working on the vQFX as a switch.
Original Message:
Sent: 08-21-2025 01:17
From: kronicklez
Subject: dot1q tunneling on EX4300
Hi all,
Weird...I'm test on vJunos-Switch the config not work if uplink port not same config as port facing customer.

Original Message:
Sent: 08-20-2025 10:27
From: JDooley
Subject: dot1q tunneling on EX4300
Oliver and Simon, thanks for those resources!
I tested this config in production for a site, and it's passing encapsulated traffic as expected.
------------------------------
J D
Original Message:
Sent: 08-18-2025 14:04
From: JDooley
Subject: dot1q tunneling on EX4300
I'm encountering an error when configuring Q-in-Q on an EX4300. I'd like to accept a trunk tagged with S-vlans from a vendor, and a list of tagged C-vlans from a customer, encapsulate the customer vlans, and push them inside the vendor S-vlan for transit. The following statement commits:
set interfaces ge-0/0/15 description customer-handoffset interfaces ge-0/0/15 flexible-vlan-taggingset interfaces ge-0/0/15 encapsulation extended-vlan-bridgeset interfaces ge-0/0/15 unit 1200 vlan-id-list 20-40set interfaces ge-0/0/15 native-vlan-id 1set interfaces ge-0/0/15 unit 1200 input-vlan-map pushset interfaces ge-0/0/15 unit 1200 output-vlan-map popset interfaces ge-0/0/15 mtu 9000set interfaces xe-0/2/1 description vendor-trunkset interfaces xe-0/2/1 flexible-vlan-taggingset interfaces xe-0/2/1 encapsulation extended-vlan-bridgeset interfaces xe-0/2/1 unit 1200 vlan-id 1200set interfaces xe-0/2/1 mtu 9000set vlans siteA interface ge-0/0/15.1200set vlans siteA interface xe-0/2/1.1200
However, the documentation provides the following style of config, which doesn't commit and throws an error:
set interfaces ge-0/0/15 description customer-handoffset interfaces ge-0/0/15 flexible-vlan-taggingset interfaces ge-0/0/15 encapsulation extended-vlan-bridgeset interfaces ge-0/0/15 unit 1200 vlan-id-list 20-40set interfaces ge-0/0/15 native-vlan-id 1set interfaces ge-0/0/15 unit 1200 input-vlan-map pushset interfaces ge-0/0/15 unit 1200 output-vlan-map popset interfaces ge-0/0/15 mtu 9000set interfaces xe-0/2/1 description vendor-trunkset interfaces xe-0/2/1 flexible-vlan-taggingset interfaces xe-0/2/1 encapsulation flexible-ethernet-servicesset interfaces xe-0/2/1 unit 1200 encapsulation vlan-bridgeset interfaces xe-0/2/1 unit 1200 vlan-id 1200set interfaces xe-0/2/1 mtu 9000set vlans siteA interface ge-0/0/15.1200set vlans siteA interface xe-0/2/1.1200[edit interfaces xe-0/2/1] 'unit 1200' Link encapsulation type is not valid for device typeerror: configuration check-out failed
Is there a better documentation source I should follow?
Can anyone provide feedback about the best config to achieve this scenario?
Thanks for the feedback!
------------------------------
J D
------------------------------