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

vlan-id-list

date_range 19-Mar-24

Syntax

content_copy zoom_out_map
vlan-id-list [ vlan-id-numbers ];

Hierarchy Level

content_copy zoom_out_map
[edit bridge-domains bridge-domain-name],
[edit logical-systems logical-system-name bridge-domains bridge-domain-name],
[edit logical-systems logical-system-name routing-instances routing-instance-name bridge-domains bridge-domain-name],
[edit routing-instances routing-instance-name bridge-domains bridge-domain-name],
[edit interfaces interface-name unit 0],
[edit interfaces interface-name unit logical-unit-number],
[edit vlans vlan-name]

Description

Specify a VLAN identifier list to use for a bridge domain or VLAN in trunk mode. VLAN identifier list can be used on C-VLAN interfaces in Q–in–Q tunneling for EX and QFX Series switches.

Specify the trunk option in the interface-mode statement to accept packets with a VLAN ID that matches the list of VLAN IDs specified in the vlan-id-list statement to forward the packet within the bridge domain or VLAN configured with the matching VLAN ID. Specify the access option to accept packets with no VLAN ID to forward the packet within the bridge domain or VLAN configured with the VLAN ID that matches the VLAN ID specified in the vlan-id statement.

This statement also enables you to bind a logical interface to a list of VLAN IDs, thereby configuring the logical interface to receive and forward a frame with a tag that matches the specified VLAN ID list.

Warning:

On EX2000, EX3000, EX4000, and QFX5000 Series switches, if VLAN identifier list (vlan-id-list) is used for Q-in-Q tunnelling, you can apply no more than eight VLAN ID ranges to a physical interface, regardless of the number of logical interfaces or the number of VLAN ID lists configured. When more than eight VLAN ID ranges are configured and committed, only the first eight ranges are considered. Traffic will not be forwarded to the vlans specified in VLAN ID ranges nine and above.

In the example below, traffic will not be forwared to the vlans specified in the range 170-180.

content_copy zoom_out_map
user@host# show interfaces xe-0/0/44                               
flexible-vlan-tagging;
encapsulation flexible-ethernet-services;
unit 1 {
    encapsulation vlan-bridge;
    vlan-id-list [ 10-20 30-40 50-60 70-80];
    input-vlan-map push;
    output-vlan-map pop;
}
unit 2 {
    encapsulation vlan-bridge;
    vlan-id-list [ 90-100 110-120 130-140 150-160];
    input-vlan-map push;
    output-vlan-map pop;
}
unit 3 {
    encapsulation vlan-bridge;
    vlan-id-list 170-180;
    input-vlan-map push;
    output-vlan-map pop;
}

Options

vlan-id-numbers—Valid VLAN identifiers. You can combine individual numbers with range lists by including a hyphen.

  • Range: 0 through 4095

    Note:

    On EX Series switches and the QFX Series, the range is 0 through 4094.

Required Privilege Level

routing—To view this statement in the configuration.

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

Release Information

Statement introduced in Junos OS Release 9.4.

Support for logical systems added in Junos OS Release 9.6.

footer-navigation