要将路由器配置为基于 ACI 信息为 DHCP 和 PPPoE 用户创建动态 VLAN 用户接口,您必须创建动态 ACI 接口集。
- 访问定义 ACI 接口集的动态配置文件。
[edit]
user@host# edit dynamic-profiles profile-name
- 配置动态 ACI 接口集。
[edit dynamic-profiles profile-name]
user@host# edit interfaces interface-set $junos-interface-set-name
使用 $junos-interface-set-name 预定义变量表示 ACI 接口集的名称。当该家庭中的第一个用户登录时,它将替换为路由器生成的实际 ACI 接口集名称。
- 包括动态 ACI 接口集的底层接口。
[edit dynamic-profiles profile-name interfaces interface-set “$junos-interface-set-name”]
user@host# set interface $junos-interface-ifd-name
使用 $junos-interface-ifd-name 预定义变量表示接口的名称。该变量将替换为用户访问 BNG 的接口的名称。
配置 ACI 接口集时,动态配置文件中不需要该 unit 语句。
- (可选)对于动态 PPPoE 用户接口,配置路由器可以为 ACI 接口集(即同一家庭)激活的最大动态 PPPoE 会话数。
[edit dynamic-profiles profile-name interfaces interface-set “$junos-interface-set-name”]
user@host# edit pppoe-underlying-options
[edit dynamic-profiles profile-name interfaces interface-set “$junos-interface-set-name” pppoe-underlying-options]
user@host# set max-sessions number
- (选答)将 CoS 和接口过滤器的属性应用于属于 ACI 接口集的所有用户接口。
以下示例显示了定义名为 aci-vlan-set-profile的 ACI 接口集所需的最小动态配置文件。它使用预定义的变量来表示接口集和底层物理接口。
[edit dynamic-profiles aci-vlan-set-profile]
interfaces {
interface-set "$junos-interface-set-name" {
interface "$junos-interface-ifd-name";
}
}