Arista

Here's a general guideline to configure sFlow on an Arista:

1. Enable sFlow globally

sflow run
sflow agent <interface>            ! interface for sFlow agent IP (usually loopback)
sflow collector <collector-ip> <udp-port> vrf <vrf-name>
sflow sample <rate>                ! e.g. 4096 (1 out of every 4096 packets)
sflow polling-interval <seconds>   ! e.g. 30

Example:

sflow run
sflow agent Loopback0
sflow collector 192.0.2.10 6343 vrf default
sflow sample 4096
sflow polling-interval 30

2. Enable sFlow on interfaces

interface Ethernet1
   sflow enable
!
interface Ethernet2
   sflow enable

3. Enable BGP for Flow Export (Optional: BGP-LS / BMP / FlowSpec)

If you want flow data enriched with routing/BGP context, you usually:

  • Run BGP on the router.

  • Export sFlow to a collector (Kentik, InMon, ElastiFlow, etc.) that can ingest BGP data.

  • Export the routing table to the same collector, so flows get annotated with AS-path, prefix, community, etc.

Example (simple BGP config):

The collector (not the switch) does the join between sFlow records and BGP routing information.

Last updated

Was this helpful?