Configuring a Dynamic Profile Used to Create Single-Tag VLANs
You can configure a dynamic profile for creating single-tagged VLANs.
To configure a dynamic VLAN profile:
-
Create a dynamic profile.
user@host# set dynamic-profile VLAN-PROF1 interfaces "$junos-interface-ifd-name" unit "$junos-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 inet
-
For 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-id
When 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-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.
-
-
Define the unit family type.
-
For IPv4 interfaces:
[edit dynamic-profiles VLAN-PROF1 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit"] user@host# set family inet
-
For IPv6 interfaces:
[edit dynamic-profiles VLAN-PROF1 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit"] user@host# set family inet6
-
For IPv4 interfaces:
-
(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
Related Documentation
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.