[an error occurred while processing this directive] [an error occurred while processing this directive]

Rewriting a VLAN Tag and Adding a New 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 routing platforms, to replace the outer VLAN tag of the incoming frame with a user-specified VLAN tag value, include the swap-push statement in the input VLAN map or output VLAN map:

{
swap-push;
}
{
swap-push;
}

A user-specified outer VLAN tag is pushed in front. The outer tag becomes an inner tag in the final frame.

You can include this statement at the following hierarchy levels:

  • [edit interfaces interface-name unit logical-unit-number]
  • [edit logical-systems logical-system-name interfaces interface-name unit logical-unit-number]

See Configuring Inner and Outer TPIDs and VLAN IDs and Configuring Inner and Outer TPIDs and VLAN IDs for information about configuring inner and outer VLAN ID values and inner and outer TPID values required for VLAN maps.


Updated: 2009-04-07

[an error occurred while processing this directive]