How can we help?

How to enable flow on your Juniper EX switch

Follow

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

Notes:

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 208.76.14.247 udp-port 20013
set sflow interfaces ge-0/0/0
set sflow polling-interval 20
set sflow sample-rate egress 1024
commit
save

All done.

 

Have more questions? Submit a request

Comments

Powered by Zendesk