Related Documentation
- ACX Series
- swap
- tag-protocol-id
- unit
- EX Series
- input-vlan-map
- output-vlan-map
- swap
- vlan-id
- tag-protocol-id
- For more information about binding a VLAN ID to the logical interface, see 802.1Q VLANs Overview.
- M Series
- unit
- For more information about the swap operation, see Examples: Stacking and Rewriting Gigabit Ethernet IQ VLAN Tags.
- MX Series
- input-vlan-map
- output-vlan-map
- swap
- unit
- For more information about binding a VLAN ID to the logical interface, see 802.1Q VLANs Overview.
- For more information about the swap operation, see Examples: Stacking and Rewriting Gigabit Ethernet IQ VLAN Tags.
- SRX Series
- unit
- T Series
- unit
- For more information about the swap operation, see Examples: Stacking and Rewriting Gigabit Ethernet IQ VLAN Tags.
- Additional Information
- Junos® OS Ethernet Interfaces
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:
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:
You can include these statements at the following hierarchy levels:
- [edit interfaces interface-name unit logical-unit-number input-vlan-map]
- [edit logical-systems logical-system-name interfaces interface-name unit logical-unit-number input-vlan-map]
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 802.1Q VLANs Overview.
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 Examples: Stacking and Rewriting Gigabit Ethernet IQ VLAN Tags.
Related Documentation
- ACX Series
- swap
- tag-protocol-id
- unit
- EX Series
- input-vlan-map
- output-vlan-map
- swap
- vlan-id
- tag-protocol-id
- For more information about binding a VLAN ID to the logical interface, see 802.1Q VLANs Overview.
- M Series
- unit
- For more information about the swap operation, see Examples: Stacking and Rewriting Gigabit Ethernet IQ VLAN Tags.
- MX Series
- input-vlan-map
- output-vlan-map
- swap
- unit
- For more information about binding a VLAN ID to the logical interface, see 802.1Q VLANs Overview.
- For more information about the swap operation, see Examples: Stacking and Rewriting Gigabit Ethernet IQ VLAN Tags.
- SRX Series
- unit
- T Series
- unit
- For more information about the swap operation, see Examples: Stacking and Rewriting Gigabit Ethernet IQ VLAN Tags.
- Additional Information
- Junos® OS Ethernet Interfaces
Published: 2013-04-03
Related Documentation
- ACX Series
- swap
- tag-protocol-id
- unit
- EX Series
- input-vlan-map
- output-vlan-map
- swap
- vlan-id
- tag-protocol-id
- For more information about binding a VLAN ID to the logical interface, see 802.1Q VLANs Overview.
- M Series
- unit
- For more information about the swap operation, see Examples: Stacking and Rewriting Gigabit Ethernet IQ VLAN Tags.
- MX Series
- input-vlan-map
- output-vlan-map
- swap
- unit
- For more information about binding a VLAN ID to the logical interface, see 802.1Q VLANs Overview.
- For more information about the swap operation, see Examples: Stacking and Rewriting Gigabit Ethernet IQ VLAN Tags.
- SRX Series
- unit
- T Series
- unit
- For more information about the swap operation, see Examples: Stacking and Rewriting Gigabit Ethernet IQ VLAN Tags.
- Additional Information
- Junos® OS Ethernet Interfaces