Though this is a very old post but I think this might help someone like me.
I have gone through the same problem where I need to allow normal tag vlans to pass through the qinq interface.
So I have gone through the below work around.
First configure your trunk interface as normal.
set interfaces xe-0/0/0 unit 0 family ethernet-switching interface-mode trunk
set interfaces xe-0/0/0 unit 0 family ethernet-switching vlan members 100 200 300
Now add the flexible-vlan-tagging and encapsulation extended-vlan-bridge on the trunk interface to enable Q-in-Q
set interfaces xe-0/0/0 flexible-vlan-tagging
set interfaces xe-0/0/0 encapsulation extended-vlan-bridge
In my case I am using vlan 10 as S-VLAN. To allow the trunk qinq port to encapsulate the qinq tags use the below.
set interfaces xe-0/0/0 unit 10 vlan-tags outer 0x8100.10
For the customer facing port you can configure like below:
set interfaces xe-0/0/1 flexible-vlan-tagging
set interfaces xe-0/0/1 native-vlan-id 10
set interfaces xe-0/0/1 encapsulation extended-vlan-bridge
set interfaces xe-0/0/1 unit 10 vlan-id-list 1-4094
set interfaces xe-0/0/1 unit 10 input-vlan-map push
set interfaces xe-0/0/1 unit 10 output-vlan-map pop
On the VLAN configuration do it like below:
set vlans s-vlan-10 interface xe-0/0/0.10
set vlans s-vlan-10 interface xe-0/0/8.10
and for normal tag vlan
set vlans non-qinq-vlan100 vlan-id 100
set vlans non-qinq-vlan200 vlan-id 200
set vlans non-qinq-vlan300 vlan-id 300
If you are still active on this post then please mark answer as solution. If you still have any question then please reply me.
------------------------------
MD SHAHED FARDOUS
------------------------------
Original Message:
Sent: 08-30-2017 17:27
From: Erdem Sener
Subject: EX - QinQ on trunk interface
Hello All,
I hope you are doing well. I have a question regarding Juniper EX4200.
I have an EX4200 with two port-mode trunk interfaces:
- one facing the customer where I receive many different vlans (10, 20, 30 and 40),
- another one facing a Juniper MX where the vlans are received in different subinterfaces according to the vlans.
Is there a way to do the following:
- Vlans 30 and 40 pass through as normal single tagged frames.
- Vlans 10 and 20 have to be encapsulated in another S-VLAN 100, and pass as VLAN 100 to the MX.
How could I configure this in the switch?
I tried configuring vlan 100 with dot1q-tunneling customer-vlans [ 10 20 ], but it won't work. Please take into account both interfaces are trunk.
I understand set ethernet-switching-options dot1q-tunneling ether-type 0x8100 should be configured, so that in the trunk with Juniper MX both single and dual tagged frames can be sent.
Thank you very much for your help