Supported Platforms
Related Documentation
- M, MX Series
- Dynamic Profiles Overview
- MX Series
- Dynamic Variables Overview
- Configuring a Basic Dynamic Profile
- User-Defined Variables
- Configuring Predefined Dynamic Variables in Dynamic Profiles
- Example: Configuring Dynamic Hierarchical Scheduling and Queuing for Subscriber Access
- Example: Firewall Dynamic Profile
- Example: IGMP Dynamic Profile
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:
- Create a basic dynamic profile.
- 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.
- 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:
- Access the variables stanza in the desired dynamic
profile.user@host# edit dynamic-profiles profile1 variables[edit dynamic-profiles profile1 variables]
- 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 - Configure the variable using one (or both) of the following
methods:
- Specify a RADIUS attribute and RADIUS tag (when required)
for the variable.[edit dynamic-profiles igmpProfile1 variables]user@host# set igmp-version radius vendor-id 4874 attribute 78
- Configure a default value for the variable.[edit dynamic-profiles igmpProfile1 variables]user@host# set igmp-version default-value 3
Note: You can configure variables by 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.
- Specify a RADIUS attribute and RADIUS tag (when required)
for the variable.
- 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.
Related Documentation
- M, MX Series
- Dynamic Profiles Overview
- MX Series
- Dynamic Variables Overview
- Configuring a Basic Dynamic Profile
- User-Defined Variables
- Configuring Predefined Dynamic Variables in Dynamic Profiles
- Example: Configuring Dynamic Hierarchical Scheduling and Queuing for Subscriber Access
- Example: Firewall Dynamic Profile
- Example: IGMP Dynamic Profile
Published: 2013-02-11
Supported Platforms
Related Documentation
- M, MX Series
- Dynamic Profiles Overview
- MX Series
- Dynamic Variables Overview
- Configuring a Basic Dynamic Profile
- User-Defined Variables
- Configuring Predefined Dynamic Variables in Dynamic Profiles
- Example: Configuring Dynamic Hierarchical Scheduling and Queuing for Subscriber Access
- Example: Firewall Dynamic Profile
- Example: IGMP Dynamic Profile