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.
- [edit dynamic-profiles basic-profile]
- user@host# set unit $junos-underlying-interface-unit

