Configuring a Dynamic Profile Used to Create Single-Tag VLANs
Starting in Junos OS Release 14.1, you can configure a dynamic profile for creating single-tagged VLANs.
Before you begin:
Configure the dynamic profile.
To configure a dynamic VLAN profile:
- 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.
(Optional) To support dynamic demux interfaces, enable them for IPv4 or IPv6.
For IPv4 demux interfaces:
[edit dynamic-profiles VLAN-PROF1 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit"]user@host# set demux-source inetFor IPv6 demux interfaces:
[edit dynamic-profiles VLAN-PROF1 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit"]user@host# set demux-source inet6
- (Optional) To configure the router to respond to any ARP
request, specify the proxy-arp (Dynamic Profiles) statement.[edit dynamic-profiles VLAN-PROF1 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit"]user@host# set proxy-arp (Dynamic Profiles)
Specify that you want to use dynamic VLAN IDs in the dynamic profile. You can configure the dynamic profile to create a single-tag VLAN using only standard tag protocol identifier (TPID) values (0x8100) or to create a VLAN using any TPID value.
To configure the dynamic profile to create single-tag VLANs that accept only standard TPID values (a TPID value of 0x8100):
[edit dynamic-profiles VLAN-PROF1 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit"]user@host# set vlan-id $junos-vlan-idWhen the dynamic profile is instantiated, the variable is dynamically replaced with a VLAN ID within the VLAN range specified at the [interfaces] hierarchy level.
To configure the dynamic profile to create single-tag VLANs that accept any TPID value:
[edit dynamic-profiles VLAN-PROF1 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit"]user@host# set vlan-tags outer $junos-vlan-idThe variable is dynamically replaced with both the TPID value and a VLAN ID within the VLAN range specified at the [interfaces] hierarchy level.
- Define the unit family type.
- (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 loose
- Specify the unnumbered address and preferred source address.[edit dynamic-profiles 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