This page covers the Arista side of flow export. Read the overview first: it explains where to send the export (Before you start), the rules for every device and how sampling changes the 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.
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.
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-interfacesets that address: use the interface that holds the IP address the switch has in NetSense (hereLoopback0). 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> 6343andsflow vrf <vrf-name> source-interface <interface>in place of the two global lines. This form is not yet verified by Extreme Labs: check it withsflow vrf ?. - Sampling and volume:
sflow sample 1024samples 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.
dangerouskeyword: some EOS releases refuse low rates without confirmation. Ifsflow sample 1024is rejected, entersflow sample dangerous 1024.sflow runsamples every Ethernet port, inbound. Turn it off withno sflow enableon 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 enablealso works on a Port-Channel interface.- Inbound only: leave egress sampling off (
sflow egress enableon an interface, orsflow interface egress enable default). A packet sampled on the way in and again on the way out is counted twice. - Extensions:
no sflow extension routerandno sflow extension bgpkeep routing and BGP details out of the samples. NetSense does not use them. Older configurations withsflow extension routerstill work, but drop that line. - Polling interval:
sflow polling-interval 30sends 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 ratesflow 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:
configure
no sflow run
no sflow destination <agent-ip> 6343
no sflow source-interface
no sflow sampleOther 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. 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 instead. If you configured flow tracking toward NetSense, remove that exporter from your flow tracking configuration and set up sFlow.