根据代理电路标识符信息配置动态 VLAN 用户接口
定义动态代理电路标识符 (ACI) 接口集并启用在底层 VLAN 接口上创建基于 ACI 的动态 VLAN 用户接口后,您必须通过将 ACI 接口集与用户接口动态配置文件中的 PPPoE 或 IP 多路分离 (IP demux) 用户接口相关联来完成配置。
开始之前:
创建定义逻辑用户接口的动态配置文件。
请参阅以下主题:
要根据 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 demux) 逻辑用户接口相关联。[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-profile 的动态配置文件,用于供 PPPoE 用户使用的基于 ACI 的动态 PPPoE (pp0) 用户接口。
[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-profile 的动态配置文件,用于供 DHCP 用户使用的基于 ACI 的动态 IP demux(demux0) 用户接口。
[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;
}
}
}
}