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 a Dynamic Profile Used to Create Stacked VLANs

date_range 06-Dec-23

Before you begin:

Starting in Junos OS Release 14.1, you can configure a dynamic profile for creating stacked 802.1Q VLANs.

To configure a dynamic VLAN profile:

  1. Ensure that the VLAN dynamic profile uses the $junos-interface-ifd-name variable for the dynamic interface and the $junos-interface-unit variable for the interface unit.
  2. (Optional) To support dynamic demux interfaces, enable them for IPv4 or IPv6.
    • For IPv4 demux interfaces:

      content_copy zoom_out_map
      [edit dynamic-profiles STACKED-VLAN-PROF1 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit"]
      user@host# set demux-source inet
      
    • For IPv6 demux interfaces:

      content_copy zoom_out_map
      [edit dynamic-profiles STACKED-VLAN-PROF1 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit"]
      user@host# set demux-source inet6
      
  3. (Optional) To configure the router to respond to any ARP request, specify the proxy-arp statement.
    content_copy zoom_out_map
    [edit dynamic-profiles STACKED-VLAN-PROF1 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit"]
    user@host# set proxy-arp
    
  4. Specify the outer VLAN ID variable.
    content_copy zoom_out_map
    [edit dynamic-profiles STACKED-VLAN-PROF1 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit"]
    user@host# set vlan-tags outer $junos-stacked-vlan-id
    

    The variable is dynamically replaced with an outer VLAN ID within the VLAN range specified at the [interfaces] hierarchy level.

  5. Specify the inner VLAN ID variable.
    content_copy zoom_out_map
    [edit dynamic-profiles STACKED-VLAN-PROF1 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit"]
    user@host# set vlan-tags inner $junos-vlan-id
    

    The variable is dynamically replaced with an inner VLAN ID within the VLAN range specified at the [interfaces] hierarchy level.

  6. Define the unit family type.
    1. For IPv4 interfaces:
      content_copy zoom_out_map
      [edit dynamic-profiles STACKED-VLAN-PROF1 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit"]
      user@host# set family inet
      
    2. For IPv6 interfaces:
      content_copy zoom_out_map
      [edit dynamic-profiles STACKED-VLAN-PROF1 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit"]
      user@host# set family inet6
      
  7. (Optional) Enable IP and MAC address validation for dynamic demux interfaces in a dynamic profile.
    content_copy zoom_out_map
    [edit dynamic-profiles STACKED-VLAN-PROF1 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" family inet]
    user@host# set mac-validate loose
    
  8. Specify the unnumbered address and preferred source address.
    content_copy zoom_out_map
    [edit dynamic-profiles STACKED-VLAN-PROF1 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" family inet]
    user@host# set unnumbered-address lo.0 preferred-source-address 192.0.2.16
    

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 a dynamic profile for creating stacked 802.1Q VLANs.
footer-navigation