使用 RADIUS 源权重进行接口和接口集定向分布
您可以使用预定义变量在对用户进行身份验证时,在访问-接受消息中传达的两个 VSA 之一中提取 RADIUS 提供的权重值,而不是显式配置用户权重。
$junos-interface-target-weight 对应于 VSA 26-214,interface-targeting-weight。
$junos-interface-set-target-weight 对应于 VSA 26-213,interface-set-targeting-weight。
使用具有定向分布功能的动态接口集时,接口集及其成员接口会被分配给同一条聚合以太网成员链路。这意味着您必须为接口集及其成员接口配置定向分配。实例化第一个成员接口时创建动态接口集。
要从 RADIUS 派生接口目标权重,请执行以下作:
要从 RADIUS 派生接口集目标权重:
配置您的 RADIUS 服务器,以便为 VSA 26-213 提供所需的值。有关更多信息,请参阅您的 RADIUS 服务器文档。
为接口集配置定向分布。
[edit dynamic-profiles profile-name interfaces interface-set $junos-svlan-interface-set-name] user@host# set targeted-distribution
指定接口目标预定义变量。
[edit dynamic-profiles profile-name interfaces interface-set $junos-svlan-interface-set-name] user@host# set targeted-options weight $junos-interface-set-target-weight
(选答)配置默认值,以防在访问接受消息中未收到 VSA 26-213。
[edit dynamic-profiles profile-name predefined-variable-defaults] user@host# set interface-set-target-weight weight-value