Juniper VLAN inner tags
From falz.net
Sample configuration on a router where xe-0/0/0 faces another carrier. That carrier is handing off a QinQ circuit as vlan2345. This is accessing the inner VLANs. Tested on Juniper MX.
Quite straight forward, you just create a unit per inner vlan (1001, 1002, 1003) and use the same 'outer' (2345) for each. This way you can still use each vlan for different purposes- routing, bridging, l2circuit, etc.
interfaces { xe-0/0/0 { description "NNI Facing carrier"; flexible-vlan-tagging; mtu 9192; encapsulation flexible-ethernet-services; unit 1001 { vlan-tags outer 2345 inner 1001; family inet { mtu 1500; filter { input sample-only; } address 10.10.70.141/30; } } unit 1002 { apply-groups-except ethernet-standards; encapsulation vlan-bridge; vlan-tags outer 2345 inner 1002; } unit 1003 { apply-groups-except ethernet-standards; encapsulation vlan-ccc; vlan-tags outer 2345 inner 1003; } } }