Removing the Outer VLAN Tag and Rewriting the Inner VLAN Tag
On Ethernet IQ, IQ2 and IQ2-E interfaces, on MX Series router Gigabit Ethernet,
Tri-Rate Ethernet copper, and 10-Gigabit Ethernet interfaces, and on aggregated
Ethernet interfaces using Gigabit Ethernet IQ2 and IQ2-E or 10-Gigabit Ethernet PICs
on MX Series routers, to remove the outer VLAN tag of the frame and replace the
inner VLAN tag of the frame with a user-specified VLAN tag value, include the
pop-swap
statement in the input VLAN map or output VLAN map:
pop-swap;
The inner tag becomes the outer tag in the final frame.
You can include this statement at the following hierarchy levels:
-
[edit interfaces interface-name unit logical-unit-number input-vlan-map]
-
[edit interfaces interface-name unit logical-unit-number output-vlan-map]
-
[edit logical-systems logical-system-name interfaces interface-name unit logical-unit-number input-vlan-map]
-
[edit logical-systems logical-system-name interfaces interface-name unit logical-unit-number output-vlan-map]