---
title: "Flow export from Arista switches"
description: "Arista EOS sFlow to NetSense (in production on 7280R2, 7060CX and 7160 switches) - the commands, the source address, the sampling rate and how NetSense scales it, which ports to leave out, and why IPFIX flow tracking does not work today."
---

> Documentation Index
> Fetch the complete documentation index at: https://netsense-nms.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Flow export from Arista switches

This page covers the Arista side of flow export. Read the
[overview](https://netsense-nms.com/docs/guides/flow-export/) first: it explains where to send the export
([Before you start](https://netsense-nms.com/docs/guides/flow-export/#before-you-start)), the
[rules for every device](https://netsense-nms.com/docs/guides/flow-export/#rules-for-every-device) and how
[sampling changes the traffic volume](https://netsense-nms.com/docs/guides/flow-export/#sampling-and-traffic-volume) you see.

In every block, `<agent-ip>` is your NetSense agent, `<device-ip-in-netsense>` is the IP
address the switch has in NetSense and `<edge port>` is a port that carries the traffic you
want to see.

## Which Arista models, which protocol

| Model | EOS | Use | Traffic volume in NetSense | Status |
| --- | --- | --- | --- | --- |
| DCS-7280CR2A-60 | 4.23.0F | sFlow | Estimated real volume | In production |
| DCS-7060CX-32S | 4.32.11M | sFlow | Estimated real volume | In production |
| DCS-7160-48YC6 | 4.33.10M | sFlow | Estimated real volume | In production |
| Other EOS switches, incl. the 7050 series | Other releases | sFlow | Estimated real volume | Not yet verified |
| DCS-7280CR2A-60 | 4.23.0F | IPFIX flow tracking | - | Does not work today |

Use **sFlow** on Arista. IPFIX flow tracking [does not work today](#ipfix-flow-tracking).

## sFlow on 7280R2, 7060CX and 7160 (EOS 4.23 to 4.33)

**In production** on DCS-7280CR2A-60 with EOS 4.23.0F, DCS-7060CX-32S with EOS 4.32.11M and
DCS-7160-48YC6 with EOS 4.33.10M.

sFlow v5 to UDP 6343.

```txt
configure
sflow sample 1024
sflow polling-interval 30
sflow source-interface Loopback0
sflow destination <agent-ip> 6343
no sflow extension router
no sflow extension bgp
sflow run
interface <internal link>
   no sflow enable
```

- **Source address:** NetSense matches sFlow data to a switch by the address the switch
  reports in it. `sflow source-interface` sets that address: use the interface that holds
  the IP address the switch has in NetSense (here `Loopback0`). Alternatively,
  `sflow source <device-ip-in-netsense>` sets the address directly. Use one or the other.
  A mismatch lists the switch under **Unknown** in the device picker.
- **VRF:** if the agent is reachable only through a VRF (for example the management VRF), use
  `sflow vrf <vrf-name> destination <agent-ip> 6343` and
  `sflow vrf <vrf-name> source-interface <interface>` in place of the two global lines. This
  form is not yet verified by Extreme Labs: check it with `sflow vrf ?`.
- **Sampling and volume:** `sflow sample 1024` samples one packet in 1,024. NetSense
  multiplies every sample by the rate, so the byte and packet totals estimate the real
  traffic. The estimate is good for busy ports and time ranges of a few minutes or more. It
  is rough for a single small host over a short range. Set the rate explicitly: the EOS
  default is very sparse (1 in 1,048,576 on many releases) and gives almost no samples.
- **Choosing the rate:** the rate is global, one value for every port, so choose it for your
  busiest ports. 1024 is what runs in production. On a core switch with many busy 100G ports
  it produces thousands of sFlow packets per second; a higher N, such as 4096 or 16384,
  sends far fewer, keeps the totals estimated correctly over a few minutes, and shows small
  flows less often. A lower N gives more detail and more load.
- **`dangerous` keyword:** some EOS releases refuse low rates without confirmation. If
  `sflow sample 1024` is rejected, enter `sflow sample dangerous 1024`.
- **`sflow run` samples every Ethernet port**, inbound. Turn it off with `no sflow enable` on
  the links to your own routers and switches, above all toward devices that also export
  flows: that traffic is already counted there, and counting it again doubles it. Keep it on
  your upstream, IX, PNI and CDN cache ports and on the ports toward customers and BNGs.
  `no sflow enable` also works on a Port-Channel interface.
- **Inbound only:** leave egress sampling off (`sflow egress enable` on an interface, or
  `sflow interface egress enable default`). A packet sampled on the way in and again on the
  way out is counted twice.
- **Extensions:** `no sflow extension router` and `no sflow extension bgp` keep routing and
  BGP details out of the samples. NetSense does not use them. Older configurations with
  `sflow extension router` still work, but drop that line.
- **Polling interval:** `sflow polling-interval 30` sends interface counters every 30
  seconds. NetSense ignores them (interface traffic comes from SNMP polling), so the setting
  is harmless.
- **Datagram size:** EOS has no setting for the sFlow datagram size. The production switches
  above send datagrams that NetSense reads in full.
- **Hardware acceleration:** some platforms offer hardware-accelerated sFlow
  (`sflow hardware acceleration`, with its own rate `sflow hardware acceleration sample <N>`).
  Extreme Labs has not tested it with NetSense. The configuration above does not use it.
- **MPLS:** NetSense does not decode MPLS labels. Samples of MPLS-labeled packets carry no IP
  addresses or ports.
- **Flow Logs:** sFlow traffic shows in the Flows views. sFlow exporters do not appear in
  **Flow Logs** today.

**Check:**

- `show sflow`: sFlow is running, the destination is `<agent-ip>` port 6343, the source is
  the switch's IP in NetSense, the sample rate is the one you set, and the count of samples
  and datagrams sent keeps increasing.
- `show sflow interfaces`: the ports that sample. Internal links must not be listed.
- Then open **Flows** and check the switch is listed by its hostname in the **Device**
  picker.

**Remove:**

```txt
configure
no sflow run
no sflow destination <agent-ip> 6343
no sflow source-interface
no sflow sample
```

## Other Arista switches

**Not yet verified.** The vendor's documented configuration. Check it against your release
with `?` help and tell Extreme Labs how it went.

The 7050 series and other EOS switches take the same sFlow commands as
[above](#sflow-on-7280r2-7060cx-and-7160-eos-423-to-433). Very old EOS releases may not offer
every line (for example the `extension` commands): type `sflow ?` in configuration mode and
leave out what your release does not list. The source address, rate, per-port and inbound-only
rules are the same.

## IPFIX flow tracking

**Does not work today.** Tested by Extreme Labs on DCS-7280CR2A-60 with EOS 4.23.0F.

The NetSense agent rejects the EOS IPFIX template, and EOS sends export packets larger than
1500 bytes. No flows reach NetSense. Use [sFlow](#sflow-on-7280r2-7060cx-and-7160-eos-423-to-433)
instead. If you configured flow tracking toward NetSense, remove that exporter from your flow
tracking configuration and set up sFlow.

Source: https://netsense-nms.com/docs/guides/flow-export/arista/index.mdx
