[an error occurred while processing this directive][an error occurred while processing this directive]

Configuring a Stacked VLAN Dynamic Profile

You can configure a dynamic profile for creating stacked 802.1Q VLANs.

Before you begin:

To configure a stacked VLAN dynamic 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 using the demux-source statement.
    1. For IPv4 demux interfaces, specify inet as the source type.
      [edit dynamic-profiles VLAN-PROF1 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit"]user@host# set demux-source inet
    2. For IPv6 demux interfaces, specify inet6 as the source type.
      [edit dynamic-profiles 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.
    [edit dynamic-profiles VLAN-PROF1 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit"]user@host# set proxy-arp
  4. Specify the outer VLAN ID variable.
    [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.
    [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, specify the inet family type.
      [edit dynamic-profiles VLAN-PROF1 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit"]user@host# set family inet
    2. For IPv6 interfaces, specify the inet6 family type.
      [edit dynamic-profiles 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.
    [edit dynamic-profiles VLAN-PROF1 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" family inet]user@host# set mac-validate strict
  8. Specify the unnumbered address.
    [edit dynamic-profiles VLAN-PROF1 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" family inet]user@host# set unnumbered-address lo.0
  9. Specify the preferred source address.
    [edit dynamic-profiles VLAN-PROF1 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" family inet]user@host# set preferred-source-address 192.0.16.1

Published: 2010-04-15

[an error occurred while processing this directive]