Configure sFlow and NetFlow on Junos OS Devices
This topic describes how to configure sFlow and NetFlow on Juniper switches.
Configure sFlow on a Juniper EX or QFX Switch
Your Juniper EX or QFX series switch will now start exporting sFlow data to the Apstra Flow collector.
Configure Flow Sampling on Juniper Routers
You can configure Juniper routers to export flow records using Netflow v9. The NetFlow version 9 flow template enables you to define a flow record template suitable for IPv4 traffic, IPv6 traffic, MPLS traffic, a combination of IPv4 and MPLS traffic, or peer AS billing traffic.
We recommend using Netflow v9, rather than IPFIX, for flow export from Juniper devices. IPFIX records from Juniper include only total counters for bytes and packets, rather than the defacto standard delta counters. Most flow collection solutions work better with delta values, which are provided by Juniper devices using Netflow v9.
You can enable both input
(ingress) and output
(egress) directions.
To configure flow sampling on a Juniper router: