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) | policy | tag (push | swap));

Hierarchy Level

[edit vlans vlan-name interface (VLANs) interface-name egress],[edit vlans vlan-name interface (VLANs) interface-name ingress],[edit vlans vlan-name interface (VLANs) interface-name]

Release Information

Statement introduced in Junos OS Release 9.6 for EX Series switches.

Option swap introduced in Junos OS Release 10.0 for EX Series switches.

Description

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

This statement is also required if you are configuring firewall filters to map traffic from an interface to a VLAN. If you are configuring firewall filters to map traffic from an interface to a VLAN, the mapping policy option must be configured using this command. The firewall filter also has to be configured using the vlan action for a match condition in the firewall filter stanza for firewall filters to map traffic from an interface for a VLAN.

Options

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

policy—Maps the interface to a firewall filter policy to an S-VLAN.

push—Retains the incoming tag and add an additional VLAN tag instead of replacing the original tag.

swap—Swaps the incoming VLAN tag with the VLAN ID tag of the S-VLAN. Use of this option is also referred to as VLAN ID translation.

tag—Retains the incoming 802.1Q tag on the interface.

Required Privilege Level

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

Published: 2014-04-23