示例:按丢包优先级配置帧过滤
要将 MX 系列路由器防火墙过滤器配置为在帧中携带的数据包丢失优先级 (PLP) 级别提供匹配,请使用 或 匹配条件。loss-priorityloss-priority-except 数据包丢失优先级匹配适用于所有协议。有关为 MX 系列路由器上的第 2 层桥接流量配置防火墙过滤器和配置过滤器匹配条件的更多详细信息,请参阅 路由策略、防火墙过滤器和流量监管器用户指南。https://www.juniper.net/documentation/en_US/junos/information-products/pathway-pages/config-guide-policy/config-guide-policy.html
仅在 MX 系列路由器上支持第 2 层桥接。有关如何配置第 2 层桥接的详细信息,请参阅路由 设备的 Junos OS 路由协议库。https://www.juniper.net/documentation/en_US/junos/information-products/pathway-pages/config-guide-routing/index.html
此示例第 2 层桥接防火墙过滤器查找数据包丢失优先级 (PLP) 级别为 的任何 传入帧,然后将数据包 分类为默认转发类。medium-highexpedited-forwarding
此示例并未提供图中所有路由器的详尽配置列表。但是,您可以将此示例与更广泛的配置策略一起使用,以完成 MX 系列路由器网络以太网操作、管理和维护 (OAM) 配置。
要按丢包优先级配置帧过滤:
配置防火墙过滤器 :filter-plp-configure-forwarding
[edit firewall] family bridge { filter filter-plp-configure-forwarding { term 0 { from { loss-priority medium-high; } then forwarding-class expedited-forwarding; } } }
为接口配置第 2 层桥接域(已在层次结构级别配置):bdge-0/0/0
[edit interfaces]
[edit bridge-domains] bd { domain-type bridge { interface ge-0/0/0; } }
将过滤器作为输入过滤器应用于接口:filter-plp-configure-forwardingge-0/0/0
[edit interfaces] ge-0/0/0 { unit 0 { family bridge { filter { input filter-plp-configure-forwarding; } } } }