Supported Platforms
Related Documentation
Configuring a VLAN Dynamic Profile for Creating Single-Tag VLANs Using Standard TPID Values
You can configure a VLAN dynamic profile to create single-tag VLANs that accept only standard TPID values (a TPID value of 0x8100) by using the vlan-id statement and the $junos-vlan-id variable.
![]() | Note: This procedure configures a dynamic profile that accepts only TPID values of 0x8100. To configure a VLAN dynamic profile for creating VLANs using any TPID values, see Configuring a VLAN Dynamic Profile for Creating Single-Tag VLANs Using Any TPID Values. |
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 using the demux-source statement.
- 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
- 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
- For IPv4 demux interfaces, specify inet as the
source type.
- (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
- 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-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.
- Define the unit family type.
- 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
- 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
- For IPv4 interfaces, specify the inet 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.16.1