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

Rewriting the VLAN Tag on Tagged Frames

To rewrite the VLAN tag on all tagged frames entering the interface to a specified VLAN ID and TPID, include the swap, tag-protocol-id, and vlan-id statements in the input VLAN map:

{
swap;
number;
tpid;
}

To rewrite the VLAN tag on all tagged frames exiting the interface to a specified VLAN ID and TPID, include the swap and tag-protocol-id statements in the output VLAN map:

{
swap;
number;
tpid;
}

You can include this statement at the following hierarchy levels:

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

You cannot include both the swap statement and the vlan-id statement in the output VLAN map configuration. If you include the swap statement in the configuration, the VLAN ID in outgoing frames is rewritten to the VLAN ID bound to the logical interface. For more information about binding a VLAN ID to the logical interface, see .

The swap operation works on the outer tag only, whether or not you include the stacked-vlan-tagging statement in the configuration. For more information, see .


Updated: 2009-04-07

[an error occurred while processing this directive]