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

Configuring a VLAN Dynamic Profile for Creating Single-Tag VLANs Using Any TPID Values

You can configure a VLAN dynamic profile to create single-tag VLANs that accept any TPID values by configuring the vlan-tags statement and the $junos-vlan-id variable.

Note: For procedures to configure a VLAN dynamic profile for creating single-tag VLANs that use only standard TPID values (a TPID value of 0x8100), see Configuring a VLAN Dynamic Profile for Creating Single-Tag VLANs Using Standard TPID Values.

Before you begin:

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 using the demux-source statement.
    [edit dynamic-profiles VLAN-PROF1 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit"]
    user@host# set demux-source inet
  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 that you want to use dynamic VLAN IDs in the dynamic profile.
    [edit dynamic-profiles VLAN-PROF1 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit"]
    user@host# set vlan-tags outer $junos-vlan-id

    The variable is dynamically replaced with both the TPID value and a VLAN ID within the VLAN range specified at the [interfaces] hierarchy level.

  5. Define the unit family.
    1. Specify the family type.
      [edit dynamic-profiles VLAN-PROF1 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit"]
      user@host# set family inet
    2. (Optional) Enable IP and MAC address validation for dynamic IP 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
    3. 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
    4. 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

Updated: 2009-04-06

[an error occurred while processing this directive]