Configuring sFlow Technology
The sFlow technology is a monitoring technology for high-speed switched or routed
networks. sFlow monitoring technology collects samples of network packets and sends
them in a UDP datagram to a monitoring station called a collector. You can configure
sFlow technology on a device to monitor traffic continuously at wire speed on all interfaces
simultaneously. You must enable sFlow monitoring on each interface individually; you
cannot globally enable sFlow monitoring on all interfaces with a single configuration
statement. Junos OS supports the sFlow technology standard described in RFC 3176,
InMon Corporation's sFlow: A Method for Monitoring Traffic in Switched and Routed
Networks.
To configure sFlow features using the CLI:
1. Configure the IP address and UDP port (optional) of at least one collector:
[edit protocols sflow]
user@host# set collector ip-address udp-port port-number
The default UDP port assigned is 6343.
2. Enable sFlow technology on a specific interface:
[edit protocols sflow]
user@host# set interfaces interface-name
NOTE: You cannot enable sFlow technology on a Layer 3 VLAN-tagged
interface.
You cannot enable sFlow technology on a LAG interface (for example
ae0), but you can enable sFlow technology on the member interfaces of
the LAG (for example, xe-0/0/1).
3. Specify how often (in seconds) the sFlow agent polls all interfaces at the global level:
[edit protocols sflow]
user@host# set polling-interval seconds
NOTE: Specify 0 if you do not want to poll the interface.
4. Specify the rate at which packets are sampled at the global level. For example,
configuring a number of 1000 sets a sample rate of 1 in 1000 packets.
[edit protocols sflow]
1399Copyright © 2017, Juniper Networks, Inc.
Chapter 39: Configuring sFlow Technology