[Contents] [Prev] [Next] [Index] [Report an Error]

Example: Configuring Interface-Specific Counters

Configure an interface-specific counter:

[edit firewall]
family inet {
filter test {
interface-specific;
term 1 {
from {
address {
10.0.0.0/12;
}
protocol tcp;
}
then {
count sample1;
accept;
}
}
}
}

When you apply this filter to the input interface of at-1/1/1.0 and the output interface of so-2/2/2.2, the counters are named sample1-at-1/1/1.0-i and sample1-so-2/2/2/.2-o. The suffixes -i (input) and -o (output) are added to the counter names automatically.

The JUNOS software does not sample packets originating from the router. If you configure a sampling filter and apply it to the output side of an interface, then only the transit packets going through that interface are sampled. Packets that are sent from the Routing Engine to the Packet Forwarding Engine are not sampled.


[Contents] [Prev] [Next] [Index] [Report an Error]