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
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Configuring Interfaces to Support Both Single and Stacked VLANs

date_range 06-Dec-23

Starting in Junos OS Release 14.1, you can configure VLANs to support simultaneous transmission of 802.1Q VLAN single-tag and stacked frames on logical interfaces on the same Ethernet port, and on pseudowire logical interfaces.

Junos VLAN IDs for single-tag VLANs are equivalent to the outer tags used for stacked (dual-tag) VLANs. When configuring mixed (flexible) VLANs, any overlap on single-tag VLAN IDs and stacked VLAN outer tag values is supported only for dynamic VLANs on MPC line cards. When configuring mixed (flexible) VLANS on DPCE line cards, overlapping single-tag VLAN IDs and stacked VLAN outer tag values is not supported. This means that a dynamically created single-tagged VLAN interface prevents any overlapping stacked VLAN interfaces from being created or a dynamically created stacked VLAN interface prevents any overlapping single-tagged VLAN interfaces from being created.

Note:

For information about the maximum number of dynamic profiles, VLAN ranges, and stacked VLAN ranges for dynamic mixed VLAN configurations, see Dynamic 802.1Q VLAN Overview.

To configure both VLAN and stacked VLAN ranges:

  1. Access the interface over which you want to create dynamic VLANs.
    content_copy zoom_out_map
    user@host# edit interfaces ge-0/0/0
    
  2. Indicate that this interface is for use with both VLAN and stacked VLAN ranges.
    content_copy zoom_out_map
    [edit interfaces ge-0/0/0]
    user@host# set flexible-vlan-tagging
    
  3. Define interface automatic configuration values.
    content_copy zoom_out_map
    [edit interfaces ge-0/0/0]
    user@host# edit auto-configure
    
  4. Specify that you want to modify VLAN ranges.
    content_copy zoom_out_map
    [edit interfaces ge-0/0/0 auto-configure]
    user@host# edit vlan-ranges
    
  5. Access the VLAN dynamic profile for which you want to configure VLAN ranges.
    content_copy zoom_out_map
    [edit interfaces ge-0/0/0 auto-configure vlan-ranges]
    user@host# edit dynamic-profile VLAN-PROF1
    
  6. Specify the VLAN ranges that you want the dynamic profile to use. The following example specifies a lower VLAN ID limit of 2000 and an upper VLAN ID limit of 3000.
    content_copy zoom_out_map
    [edit interfaces ge-0/0/0 auto-configure vlan-ranges dynamic-profile VLAN-PROF1]
    user@host# set ranges 2000-3000
    
    Note:

    You can configure multiple dynamic profile associations (up to 32) with different VLAN range groups on each physical interface.

  7. Specify that you want to modify stacked VLAN ranges.
    content_copy zoom_out_map
    [edit interfaces ge-0/0/0 auto-configure]
    user@host# edit stacked-vlan-ranges
    
  8. Access the VLAN dynamic profile for which you want to configure VLAN ranges.
    content_copy zoom_out_map
    [edit interfaces ge-0/0/0 auto-configure stacked-vlan-ranges]
    user@host# edit dynamic-profile VLAN-PROF2
    
  9. Specify the outer and inner stacked VLAN ranges that you want the dynamic profile to use. The following example specifies an outer stacked VLAN ID range from 3001 through 4000 (to avoid overlapping VLAN IDs with single-tag VLANs) and an inner stacked VLAN ID range of any (enabling a range from 1 through 4094 for the inner stacked VLAN ID).
    content_copy zoom_out_map
    [edit interfaces ge-0/0/0 auto-configure stacked-vlan-ranges dynamic-profile VLAN-PROF2]
    user@host# set ranges 3001-4000,any
    
    Note:

    You can configure multiple dynamic profile associations (up to 32) with different VLAN range groups on each physical interface.

Change History Table

Feature support is determined by the platform and release you are using. Use Feature Explorer to determine if a feature is supported on your platform.

Release
Description
14.1
Starting in Junos OS Release 14.1, you can configure VLANs to support simultaneous transmission of 802.1Q VLAN single-tag and stacked frames on logical interfaces on the same Ethernet port, and on pseudowire logical interfaces.
footer-navigation