Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

mapping

Syntax

mapping (native (push | swap) | tag (push | swap));

Hierarchy Level

[edit vlans vlan-name interface interface-name egress],[edit vlans vlan-name interface interface-name ingress],[edit vlans vlan-name interface interface-name]

Release Information

Statement introduced in Junos OS Release 12.1 for the QFX Series.

Description

Map a specific C-VLAN to an S-VLAN. By default, the received incoming or outgoing tag is replaced with the new tag.

Options

native—Map untagged and priority-tagged packets to an S-VLAN.

push—Retain the incoming tag (as an inner tag) and adds an additional VLAN tag. When you use this option, the TPID of the outer tag is set as follows:

  • If Q-in-Q tunneling is not enabled in the VLAN, then the Ethertype for outer tag is set to 0x8100.
  • If Q-in-Q tunneling is enabled in the VLAN and a packet is egressing from a trunk port, then the Ethertype is set to 0x88a8 (or as configured by an ether-typestatement).

swap—Replaces the incoming VLAN tag with the VLAN ID tag of the S-VLAN. Using this option is also referred to as VLAN ID translation. When you use this option on a trunk port for which Q-in-Q tunneling is enabled, use the ether-type statement to set the Ethertype.

tag—Original VLAN tag that will be replaced (with swap) or that will become an inner tag (with push).

Required Privilege Level

system—To view this statement in the configuration.
system-control—To add this statement to the configuration.

Published: 2013-09-24