Technical Documentation

Configuring User-Defined Dynamic Variables in Dynamic Profiles

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 [edit 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:

  1. Create a basic dynamic profile.

    See Configuring a Basic Dynamic Profile.

  2. Ensure that the router is configured to enable communication between the client and the RADIUS server.

    See Specifying the Authentication and Accounting Methods for Subscriber Access.

  3. Configure all RADIUS values that you want the profiles to use when validating subscribers.

    See Configuring RADIUS Server Parameters for Subscriber Access

To configure variables in a dynamic profile:

  1. Access the variables stanza in the desired dynamic profile.
    user@host# edit dynamic-profiles profile1 variables[edit dynamic-profiles profile1 variables]
  2. Specify a name to identify the variable.

    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 igmpProfile1 variables]user@host# set igmp-version
  3. Configure the variable using one (or both) of the following methods:

    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.

  4. Configure the call variable in the dynamic profile.
    [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.


Published: 2010-04-15