Hi!
Here is a simple configuration from EX4300 (should work on QFX5120 as well):
Customer Port
set interfaces ge-0/0/0 flexible-vlan-tagging
set interfaces ge-0/0/0 encapsulation extended-vlan-bridge
set interfaces ge-0/0/0 unit 1004 vlan-id-list 1-100
set interfaces ge-0/0/0 unit 1004 input-vlan-map push
set interfaces ge-0/0/0 unit 1004 output-vlan-map pop
Service Provider Port
set interfaces xe-0/2/2 flexible-vlan-tagging
set interfaces xe-0/2/2 encapsulation extended-vlan-bridge
set interfaces xe-0/2/2 unit 1004 vlan-id 1004
If you just need to transport a double tagged VLAN (Q-in-Q) through a QFX or EX, you can just configure the VLAN as usual, but the above lets you insert single-tagged frames with tags in the range 1-100 into the tunnel. It is possible to allow untagged frames as well.
Always remember to increase the interface L2 MTU to max (no need to "save" on the L2 MTU, it's just for limiting the frame size, nothing else):
set groups AE-default interfaces "<ae[0-9]>" mtu 9216
set groups AE-default interfaces "<ae[1-3]*>" mtu 9216
set groups AE-default interfaces "<ae4[0-7]>" mtu 9216
set interfaces apply-groups AE-default
or just:
set interfaces ae0 mtu 9216
set interfaces ge-1/0/32 mtu 9216
Another example:
set interfaces xe-0/0/46 description "Link to someone"
set interfaces xe-0/0/46 flexible-vlan-tagging
set interfaces xe-0/0/46 mtu 9216
set interfaces xe-0/0/46 encapsulation flexible-ethernet-services
set interfaces xe-0/0/46 ether-options ethernet-switch-profile tag-protocol-id 0x8100
set interfaces xe-0/0/46 unit 2002 encapsulation vlan-bridge
set interfaces xe-0/0/46 unit 2002 vlan-id-list 2-115
set interfaces xe-0/0/46 unit 2002 vlan-id-list 117-119
set interfaces xe-0/0/46 unit 2002 vlan-id-list 121-1900
set interfaces xe-0/0/46 unit 2002 vlan-id-list 1902-1998
set interfaces xe-0/0/46 unit 2002 vlan-id-list 2000-4094
set interfaces xe-0/0/46 unit 2002 input-vlan-map push
set interfaces xe-0/0/46 unit 2002 output-vlan-map pop
set vlans svlan-2002 description QinQ-2002
set vlans svlan-2002 interface ae47.2002
set vlans svlan-2002 interface ae4.2002
set vlans svlan-2002 interface ae0.2002
set vlans svlan-2002 interface ae1.2002
set vlans svlan-2002 interface xe-0/0/46.2002
set vlans svlan-2002 interface xe-1/0/46.2002
Have fun!
Original Message:
Sent: 07-03-2023 10:57
From: TAMAS VARGA
Subject: Q-in-Q on QFX5120-48y-8c
Hi,
I would like to use dot1q tunneling on a QFX5120-48Y-8C switch (19.4R1.10) and I started based on this documentation.
Unfortunately the
set vlans MY-VLAN dot1q-tunneling
command is not available on my device. I checked the Feature Navigator and it seems that the function should be available since Junos OS 18.3R1.
What do I miss ?
------------------------------
TAMAS VARGA
------------------------------