Network Management
J-Flow and sFlow configuration examples for Juniper devices
Juniper Network switches run both HP’s sFlow flow sampling technology and J‑Flow, Juniper Networks’ own flow sampling technology. Following are two examples of sFlow and J-Flow configurations on Juniper products.
First published date
Last published date
Overview
Product section
Cause
Resolution
A high-level overview of using sFlow on EX Series switches.
Example: Configuring sFlow Technology to Monitor Network Traffic on EX Series Switches.
http://www.juniper.net/techpubs/en_U...ex-series.html (© 1999 - 2019 Juniper Networks, Inc., available at http://www.juniper.net, obtained on January 23, 2019).
Please note that in some cases, it has been noted in the Juniper online forums that a single device needs to have all interfaces (not just a few) enabled for egress summarization before egress data will export at all.
Juniper sFlow Configuration
You can perform Juniper switch sFlow configuration using the following sample configuration:
sflow {
polling-interval 30;
sample-rate 128;
collector 10.1.2.5 {
udp-port 6343;
}
interfaces ge-0/0/0.0;
interfaces ge-0/0/1.0;
interfaces ge-0/0/2.0;
interfaces ge-0/0/3.0;
interfaces ge-0/0/4.0;
interfaces ge-0/0/5.0;
interfaces ge-0/0/6.0;
interfaces ge-0/0/7.0;
interfaces ge-0/0/8.0;
interfaces ge-0/0/9.0;
interfaces ge-0/0/10.0;
interfaces ge-0/0/11.0;
interfaces ge-0/0/12.0;
interfaces ge-0/0/13.0;
interfaces ge-0/0/14.0;
interfaces ge-0/0/15.0;
interfaces ge-0/0/16.0;
interfaces ge-0/0/17.0;
interfaces ge-0/0/18.0;
interfaces ge-0/0/19.0;
interfaces ge-0/0/20.0;
interfaces ge-0/0/21.0;
interfaces ge-0/0/22.0;
interfaces ge-0/0/23.0 {
polling-interval 30;
sample-rate 128;
}
}
Juniper J-Flow Configuration
Configure Juniper J-Flow devices using a configuration template such as the following:
#show interfaces ge-0/0/0
unit 0 {
family inet {
sampling {
input;
output;
}
address 1.1.1.1/30;
}
}
#show forwarding-options
sampling {
input {
rate 100;
}
family inet {
output {
flow-server 2.2.2.2 {
port <JFlow port number e.g. 2055,2056>;
version 5;
}
}
}
}