基于代理电路标识符信息配置动态 VLAN 用户接口
定义动态代理电路标识符 (ACI) 接口集并在底层 VLAN 接口上创建基于 ACI 的动态 VLAN 用户接口后,您必须将 ACI 接口集与用户接口的动态配置文件中的 PPPoE 或 IP 多路分离(IP 多路分离)用户接口相关联,从而完成配置。
开始之前:
创建定义逻辑用户接口的动态配置文件。
请参阅以下主题:
要基于 ACI 信息配置动态 VLAN 用户接口:
在 PPPoE 或 IP 多路分离用户接口的动态配置文件中,将动态 ACI 接口集与动态 VLAN 用户接口名称(
pp0
或demux0
)和逻辑单元编号相关联。[edit dynamic-profiles profile-name] user@host# set interfaces interface-set $junos-interface-set-name interface interface-name unit $junos-interface-unit
例如,名为 aci-vlan-pppoe-profile 的动态配置文件中的以下语句将动态 ACI 接口集与动态
pp0
(PPPoE) 逻辑用户接口相关联。您必须使用预定义的动态变量$junos-interface-set-name
来表示动态 ACI 接口集的名称,并$junos-interface-unit
表示用户接口的逻辑单元号。[edit dynamic-profiles aci-vlan-pppoe-profile] user@host# set interfaces interface-set $junos-interface-set-name interface pp0 unit $junos-interface-unit
同样,名为 aci-vlan-demux-profile 的动态配置文件中的以下语句会将动态 ACI 接口集(表示
$junos-interface-set-name
)与demux0
(IP 多路分离)逻辑用户接口相关联。[edit dynamic-profiles aci-vlan-demux-profile] user@host# set interfaces interface-set $junos-interface-set-name interface demux0 unit $junos-interface-unit
以下示例显示了使用这些语句中的每个语句的动态配置。以下示例配置显示了一个名为 aci-vlan-pppoe-配置文件的动态配置文件,用于基于 ACI 的动态 PPPoE (pp0
) 订阅者接口,供 PPPoE 订阅者使用。
[edit dynamic-profiles aci-vlan-pppoe-profile] interfaces { interface-set "$junos-interface-set-name" { interface pp0 { unit "$junos-interface-unit"; } } pp0 { unit "$junos-interface-unit" { ppp-options { chap; pap; } pppoe-options { underlying-interface "$junos-underlying-interface"; server; } no-keepalives; family inet { unnumbered-address lo0.0; } } } }
以下示例配置显示了一个名为 aci-vlan-demux-配置文件的动态配置文件,用于基于 ACI 的动态 IP demux(demux0
) 订阅者接口,供 DHCP 订阅者使用。
[edit dynamic-profiles aci-vlan-demux-profile] interfaces { interface-set "$junos-interface-set-name" { interface demux0 { unit "$junos-interface-unit"; } } demux0 { unit "$junos-interface-unit" { demux-options { underlying-interface "$junos-underlying-interface"; } family inet { demux-source { $junos-subscriber-ip-address; } unnumbered-address lo0.0 preferred-source-address 198.51.100.202; } } } }