示例:为使用基于 ACI 的 VLAN 的家庭实施过滤器
在以下使用接口共享过滤器的示例中,您将配置一个动态配置文件,用于实施代理电路标识符 VLAN 家庭过滤。如果为FILTER1且$junos-interface-set-name为 ACI1,则$junos-input-filter将创建名为 FILTER1-ACI1-in 的过滤器并将其连接到 demux0 单元。当发生来自同一家庭的后续登录时,该登录在同一 VLAN 中。如果也FILTER1,则$junos-input-filter下一个 demux0 接口也连接了 FILTER1-ACI1-in 过滤器。接口共享过滤器使用了低值优先级。如果希望首先应用接口共享过滤器,请为连接到相同接口的任何其他过滤器提供更高的优先级。
不能在动态接口上使用接口集匹配的过滤器 — 不支持动态接口集匹配。现在可以从 $junos-svlan-interface-set-name 变量填充接口共享过滤器的共享名称。这意味着接口共享过滤器也可以连接到动态 SVLAN 接口集,在此之前,共享名称只能从 $junos-interface-set-name 变量中获取。
要使用用于实施代理电路标识符 VLAN 家庭过滤的动态配置文件配置接口共享过滤器:
[edit]
dynamic-profile {
client-profile {
interfaces {
demux0 {
unit $junos-interface-unit {
family inet {
filter {
input $junos-input-filter shared-name $junos-interface-set-name precedence 10;
}
}
}
}
}
}
}
firewall {
family inet {
filter FILTER1 {
interface-shared;
term… # the filter’s terms
}
}
}