Using RADIUS-Sourced Weights for Interface and Interface Set Targeted Distribution
Instead of explicitly configuring a subscriber weight for targeted distribution of interfaces and interface sets across aggregated Ethernet member links, you can use predefined variables to extract the weight value provided by RADIUS in one of two VSAs conveyed in the Access-Accept message when the subscriber is authenticated.
$junos-interface-target-weight corresponds to VSA 26-214, Interface-Targeting-Weight.
$junos-interface-set-target-weight corresponds to VSA 26-213, Interface-Set-Targeting-Weight.
When you use a dynamic interface set with targeted distribution, the interface set and its member interfaces are assigned to the same aggregated Ethernet member link. This means that you have to configure targeted distribution for both the interface set and its member interfaces. The dynamic interface set is created when the first member interface is instantiated.
To derive the interface target weight from RADIUS:
To derive the interface set target weight from RADIUS:
Configure your RADIUS server to provide the desired value for VSA 26-213. Consult your RADIUS server documentation for more information.
Configure targeted distribution for the interface set.
[edit dynamic-profiles profile-name interfaces interface-set $junos-svlan-interface-set-name] user@host# set targeted-distribution
Specify the interface target predefined variable.
[edit dynamic-profiles profile-name interfaces interface-set $junos-svlan-interface-set-name] user@host# set targeted-options weight $junos-interface-set-target-weight
(Optional) Configure a default value in case VSA 26-213 is not received in the Access-Accept message.
[edit dynamic-profiles profile-name predefined-variable-defaults] user@host# set interface-set-target-weight weight-value