Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Example: Configure sFlow for EVPN-VXLAN Networks

Use this example to configure and use sFlow monitoring for EVPN-VXLAN traffic with an IPv4 underlay on QFX10000 line of switches.

Requirements

This example uses the following hardware and software components:

  • A QFX10002-60C, QFX10002, QFX10008, or QFX10016 switch.
  • Junos OS Release 21.3R1, 21.2R2 and later.

This example assumes that you already have an EVPN-VXLAN with an IPv4 underlay based network and want to enable sFlow monitoring on a QFX10000 switch.

Overview and Topology

In this example, you enable sFlow inspection for an existing and working EVPN-VXLAN network traffic with IPv4 underlay.

Topology

Figure 1 depicts the sFlow support in an EVPN-VXLAN network environment with an IPv4 underlay. In this topology, the sFlow agent performs packet sampling and gathers interface statistics, and then combines the information into UDP datagrams that are sent to sFlow collectors. You can connect an sFlow collector to the switch through the management network or data network. The sFlow program on the switch looks up the next-hop address for the specified collector IP address to determine whether the collector is reachable by way of the management network or data network.

You should configure sFlow on the physical port of your hardware switch and logical interface where the VTEPs (virtual port) are configured and not on VTEPs itself. When you configure sFlow on fabric facing interface, the underlay traffic along with VXLAN traffic is sampled. You can configure sFlow on any of the R0, R1, or R2 devices mentioned in the topology.

For information about basic EVPN-VXLAN underaly configuration, refer to Example: Configuring a QFX10000 Switch as a Layer 3 VXLAN Gateway in an EVPN-VXLAN Centrally-Routed Bridging Overlay.

Figure 1: sFlow Support on EVPN-VXLAN NetworksFlow Support on EVPN-VXLAN Network

Configuration

Use the following steps to configure sFlow technology on your QFX10000 switch with EVPN-VXLAN network:

CLI Quick Configuration

To quickly configure this example on your QFX10000 switch, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level.

Step-by-Step Procedure

To configure sFlow technology:

  1. Specify in seconds how often the sFlow agent polls the interface:

  2. Specify the rate at which ingress packets must be sampled:

  3. Configure the source IP address:

  4. Configure the IP address of the collector:

  5. Enable sFlow technology on a specific interface:

  6. Commit the configuration:

Results

Check the results of the configuration:

Verification

To confirm that the sFlow configuration is enabled and correct.

Verify Configured sFlow Technology

Purpose

Verify the sFlow monitoring is enabled for an EVPN-VXLAN network.

Action

From operational mode, enter the show protocols sflow command.