最小流量采样配置
要配置流量采样,您必须至少执行以下任务:
通过在层次结构级别包含
filter
[edit firewall family family-name]
语句来创建要应用于正在采样的逻辑接口的防火墙过滤器。在 filterthen
语句中,必须指定操作修饰符示例和操作接受。[edit firewall family family-name] filter filter-name { term term-name { then { sample; accept; } } }
将过滤器应用于要对其流量进行采样的接口:
[edit interfaces] interface-name { unit logical-unit-number { family family-name { filter { input filter-name; } address address { destination destination-address; } } } }
启用采样并指定非零采样率:
[edit forwarding-options] sampling { input { rate number; } }