How can we help?

How to enable flow on your Juniper EX switch -- AuvikFlow (Kentik)


This sample configuration is based on a Juniper EX series switch. Other models may have slight configuration variations.

If you're collecting flow from multiple devices sharing the same public IP, you must configure chfagent to send flow to Kentik.

These instructions assume:

Access your switch’s CLI

  1. Telnet or SSH into your Juniper switch.
  2. Enter configuration mode by typing “configure”. Enter your configuration password, if necessary.

Configure Netflow

In this section, we’ll:

  • Set the destination for sending flow packets.
  • Set the timeout for when we want NetFlow configuration to expire (never, so a large number is set).
  • Enable polling and sampling on all interfaces for which we want to collect flow.
  • Commit these changes to memory.

For the second line of configuration, you need to pre-determine the port address range for which you’d like to export flow. For example, if you’re going to monitor your switch’s uplink port, ge-0/0/0, you’d enter “set sflow interfaces ge-0/0/0”. Rinse and repeat that command to configure each additional interface for which you’d like to monitor flow.

On your switch, type:

set sflow collector udp-port 20013
set sflow interfaces ge-0/0/0
set sflow polling-interval 20
set sflow sample-rate egress 1024

All done.


Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request