Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

mapping-range

date_range 28-Jun-24

Syntax

content_copy zoom_out_map
mapping-range C-VLAN-range (push | swap) <vlan-id-start S-VLAN-ID>;

Hierarchy Level

content_copy zoom_out_map
[edit vlans vlan-name vlans interface-name]

Description

Configure an access interface to map a range of C-VLANs to a range of S-VLANs. Use this statement instead of using multiple set vlans VLAN-name interfaces interface-name mapping (push | swap) statements to configure Q-in-Q tunneling or VLAN translation on a per-VLAN basis. This statement is particularly useful if you have used the vlan-range statement to create multiple VLANs.

Options

push—Retain the incoming tag and adds an additional VLAN tag (Q-in-Q tunneling).

swap—Swap the incoming VLAN tag with the VLAN ID tag of the S-VLAN (VLAN translation).

vlan-ID-start S-VLAN-ID—(Optional) Set the start of the S-VLAN range that the C-VLANs will be mapped to. If you omit this option, mapping begins with the first ID in the range of S-VLAN IDs (which you configure using the set vlans vlan-range statement).

Required Privilege Level

system—To view this statement in the configuration.

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

Release Information

Statement introduced in Junos OS Release 12.1.

footer-navigation