Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Supported Platforms

Configuring VLAN Ranges for Use with Dynamic Profiles

You define dynamic VLAN ranges under the [edit interfaces] hierarchy. You can configure VLAN ranges in the following ways for use with dynamic profiles:

Configuring Single-Level VLAN Ranges for Use with VLAN Dynamic Profiles

You configure VLAN ranges at the [edit interfaces] hierarchy level by specifying the vlan-tagging statement for the interface and defining up to 32 VLAN ranges for use with a VLAN dynamic profile.

To configure a VLAN range:

  1. Access the interface over which you want to create dynamic VLANs.
    user@host# edit interfaces ge-0/0/0
  2. Specify the vlan-tagging statement to indicate that this interface is for use with stacked VLAN ranges.
    [edit interfaces ge-0/0/0]user@host# set vlan-tagging
  3. Access the VLAN [auto-configure] hierarchy level.
    [edit interfaces ge-0/0/0]user@host# edit auto-configure
  4. Access the [vlan-ranges] hierarchy level.
    [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.
    [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 3000 and any upper VLAN ID limit (a range from 1 through 4094).
    [edit interfaces ge-0/0/0 auto-configure vlan-ranges]user@host# set ranges 3000-any

    Note: You can configure multiple VLAN range groups (up to 32 total) on the same physical interface that use different VLAN dynamic profiles.

  7. (Optional) Access another VLAN dynamic profile for which you want to configure VLAN ranges.
    [edit interfaces ge-0/0/0 auto-configure vlan-ranges]user@host# edit dynamic-profile VLAN-PROF2
  8. (Optional) Specify the VLAN ranges that you want the dynamic profile to use. The following example specifies a lower VLAN ID limit of 5000 and any upper VLAN ID limit (a range from 1 through 4094).
    [edit interfaces ge-0/0/0 auto-configure vlan-ranges]user@host# set ranges 5000-any

Configuring Stacked VLAN Ranges for Use with Stacked VLAN Dynamic Profiles

You configure stacked VLAN ranges at the [edit interfaces] hierarchy level by specifying the stacked-vlan-tagging statement for the interface and defining up to 32 stacked VLAN ranges for use with a stacked VLAN dynamic profile.

To configure a VLAN range:

  1. Access the interface over which you want to create dynamic VLANs.
    user@host# edit interfaces ge-0/0/0
  2. Specify the stacked-vlan-tagging statement to indicate that this interface is for use with stacked VLAN ranges.
    [edit interfaces ge-0/0/0]user@host# set stacked-vlan-tagging
  3. Access the VLAN [auto-configure] hierarchy level.
    [edit interfaces ge-0/0/0]user@host# edit auto-configure
  4. Access the [stacked-vlan-ranges] hierarchy level.
    [edit interfaces ge-0/0/0 auto-configure]user@host# edit stacked-vlan-ranges
  5. Access the VLAN dynamic profile for which you want to configure VLAN ranges.
    [edit interfaces ge-0/0/0 auto-configure vlan-ranges]user@host# edit dynamic-profile VLAN-PROF1
  6. 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 2000 through 4000 and an inner stacked VLAN ID range of any (enabling a range from 1 through 4094 for the inner stacked VLAN ID).
    [edit interfaces ge-0/0/0 auto-configure vlan-ranges]user@host# set ranges 2000-4000,any

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

  7. (Optional) Access another VLAN dynamic profile for which you want to configure VLAN ranges.
    [edit interfaces ge-0/0/0 auto-configure vlan-ranges]user@host# edit dynamic-profile VLAN-PROF2
  8. (Optional) 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 4001 through 6000 and an inner stacked VLAN ID range of any (enabling a range from 1 through 4094 for the inner stacked VLAN ID).
    [edit interfaces ge-0/0/0 auto-configure vlan-ranges]user@host# set ranges 4001-6000,any

Configuring Dynamic Mixed VLAN Ranges

Dynamic VLAN and dynamic stacked VLAN configuration supports mixed (or flexible) VLAN ranges. You configure mixed VLAN ranges at the [edit interfaces] hierarchy level by specifying the flexible-vlan-tagging statement for the interface and defining up to 32 VLAN and stacked VLAN range groups for use with different VLAN or stacked VLAN dynamic profiles.

Note: 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.

To configure both VLAN and stacked VLAN ranges:

  1. Access the interface over which you want to create dynamic VLANs.
    user@host# edit interfaces ge-0/0/0
  2. Specify the flexible-vlan-tagging statement to indicate that this interface is for use with both VLAN and stacked VLAN ranges.
    [edit interfaces ge-0/0/0]user@host# set flexible-vlan-tagging
  3. Define interface automatic configuration values.
    [edit interfaces ge-0/0/0]user@host# edit auto-configure
  4. Specify that you want to modify VLAN ranges.
    [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.
    [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.
    [edit interfaces ge-0/0/0 auto-configure vlan-ranges]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.
    [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.
    [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).
    [edit interfaces ge-0/0/0 auto-configure stacked-vlan-ranges]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.

Configuring VLAN Dynamic Profile Override

You can override dynamic profile assignment to individual VLANs that are already part of a previously defined VLAN range. This functionality provides a type of exception to an assigned VLAN range. It enables you to configure individual VLAN IDs to use a different dynamic profile from the one assigned to the VLAN range that includes the individual VLAN ID.

To configure dynamic profile override for a specific VLAN:

  1. Access the interface on which you want to create a dynamic profile override.
    user@host# edit interfaces ge-0/0/0
  2. Access the interface automatic configuration hierarchy.
    [edit interfaces ge-0/0/0]user@host# edit auto-configure
  3. Access either the single-tagged or dual-tagged (stacked) VLAN ranges that you want to modify.
    [edit interfaces ge-0/0/0 auto-configure]user@host# edit vlan-ranges

    or

    [edit interfaces ge-0/0/0 auto-configure]user@host# edit stacked-vlan-ranges
  4. Define the override statement along with the VLAN tag that you want to override and the dynamic profile that you want to use when overriding the specified VLAN tag.
    [edit interfaces ge-0/0/0 auto-configure vlan-ranges]user@host# set override tag 20 dynamic-profile NewProfile

    or

    [edit interfaces ge-0/0/0 auto-configure stacked-vlan-ranges]user@host# set override tag 20 dynamic-profile NewProfile

Published: 2013-02-11

Supported Platforms

Published: 2013-02-11