This topic discusses how to configure the user-defined dynamic variables in a dynamic profile. You define user-defined variables for individual dynamic profiles at the [dynamic-profiles profile-name variables] hierarchy level. At this hierarchy level, you create an association between a variable call value (for example, $junos-igmp-version) that appears in the body of the dynamic profile and data associated with that call value that is managed in an externally configured server (for example, a RADIUS VSA managed on a RADIUS server) or defined as a default value in the variables stanza.
Before you configure dynamic variables:
See Specifying the Authentication and Accounting Methods for Subscriber Access.
See Configuring RADIUS Server Parameters for Subscriber Access
To configure variables in a dynamic profile:
- user@host# edit dynamic-profiles profile1
variables
- [edit dynamic-profiles profile1 variables]
The variable name can be any alphanumeric value. The name is an association to a variable in the dynamic profile configuration. For example, if you specify a variable name of “igmp-version” as the variable name, you must specify the call variable “$igmp-version” in the dynamic profile configuration for the statement you want the variable to define.
- [edit dynamic-profiles igmpProfile1variables]
- user@host# set igmp-version
- [edit dynamic-profiles igmpProfile1 variables]
- user@host# set igmp-version radius vendor-id 4874 attribute 78
- [edit dynamic-profiles igmpProfile1variables]
- user@host# set igmp-version default-value 3
![]() |
Note: You can configure variables by either using the RADIUS method, the default value method, or both. If you choose to configure both a RADIUS attribute and a default value for the variable, the RADIUS attribute takes precedence over the default value. However, the dynamic profile applies the default value if the router cannot contact the RADIUS server or if the RADIUS server does not contain a value for the assigned attribute. |
- [edit dynamic-profiles igmpProfile1]
- user@host# set protocols igmp interface demux0 version $igmp-version
![]() |
Note: The call variable must match the name of the variable that you configured in the variables stanza. |