您可以使用 VLAN 多路分离接口配置动态用户接口。
要启用由 DHCP 创建的动态多路分离接口,请在动态配置文件中配置多路分离选项。动态配置文件允许您将配置的值(包括 CoS、IGMP 或过滤器配置)动态应用到动态接口,使其更易于管理。
注意:
仅支持 demux0。如果配置其他多路分离接口(如 demux1),则配置提交将失败。
- 指定要在动态配置文件中配置
demux0 接口。
user@host# edit dynamic-profiles business-profile interfaces demux0
- 为接口配置
demux0 单元。
- 为接口的
demux0 单元号配置变量。
该变量将动态替换为 DHCP 在用户登录时提供的单元号。
[edit dynamic-profiles business-profile interfaces demux0]
user@host# edit unit $junos-interface-unit
- 通过指定
$junos-interface-ifd-name多路分离接口的底层接口配置该变量。
该变量将动态替换为 DHCP 在用户登录时提供的底层设备名称。
[edit dynamic-profiles business-profile interfaces demux0 unit “$junos-interface-unit”]
user@host# set demux-options underlying-interface $junos-interface-ifd-name
- 为 VLAN ID 配置变量。
[edit dynamic-profiles business-profile interfaces demux0 unit “$junos-interface-unit”]
user@host# set vlan-id $junos-vlan-id
- 为多路分离接口配置家族。
- 指定要配置家族。
对于 IPv4:
[edit dynamic-profiles business-profile interfaces demux0 unit “$junos-interface-unit”]
user@host# edit family inet
对于 IPv6:
[edit dynamic-profiles business-profile interfaces demux0 unit “$junos-interface-unit”]
user@host# edit family inet6
- 为家族配置未编号地址。
[edit dynamic-profiles business-profile interfaces demux0 unit “$junos-interface-unit” family inet]
user@host# set unnumbered-address lo0.0