Supported Platforms
Related Documentation
- For information about configuring logical interfaces and static VLAN interfaces, see the Junos® OS Network Interfaces
Associating Dynamic Profiles with Statically Created Interfaces
When configuring the interfaces stanza within a dynamic profile, you use variables to specify the interface name and the logical unit value. When a DHCP subscriber sends a DHCP request to the interface, the dynamic profile replaces the interface name variable and logical unit name variable with the actual interface name and logical unit number of the interface that received the DHCP request.
![]() | Note: Configuration of the interface name variable and logical interface name variable at the [edit dynamic-profiles profile-name interfaces] hierarchy level is required for a dynamic profile to function. |
To configure the interface for a dynamic profile, specify the interface name variable and include the unit statement and associated logical interface name variable:
- Access the profile.[edit]user@host# edit dynamic-profiles basic-profile
- Specify the interface name variable.[edit dynamic-profiles basic-profile]user@host# set interfaces $junos-interface-ifd-name
- Specify the logical interface name variable with the unit statement.
When referencing an existing interface, specify the $junos-underlying-interface-unit variable used by the router to match the unit value of the receiving interface:
[edit dynamic-profiles basic-profile]user@host# set unit $junos-underlying-interface-unitWhen creating dynamic interfaces, specify the $junos-interface-unit variable used by the router to generate a unit value for the interface:
[edit dynamic-profiles basic-profile]user@host# set unit $junos-interface-unit
Related Documentation
- For information about configuring logical interfaces and static VLAN interfaces, see the Junos® OS Network Interfaces
Published: 2013-02-11
Supported Platforms
Related Documentation
- For information about configuring logical interfaces and static VLAN interfaces, see the Junos® OS Network Interfaces