How can we help?

How to configure sFlow on the Cisco Catalyst 2960-L

Follow

sFlow has the following prerequisites:

  • Ensure that the collector destination is reachable.
  • IP Routing must be enabled on the device.

sFlow has the following guidelines:

  • When you enable sFlow for an interface, you can do it for ingress, egress, or both directions.
    You should configure the sampling rate based on the sFlow configuration and traffic in the system.

sFlow has the following limitations:

  • sFlow is supported only on the physical interface.
  • The switch supports two sFlow collectors.
  • sFlow is not supported when the device boots up in stack mode.

Items that are between { } and in bold should be replaced with values specific to the environment being configured.


  1. Configure the sFlow and apply it to the interface
    configure terminal
    sflow agent ip {Switch_IP_Address}
    sflow collector id 1 ip {collector_IP_Address} port 6343
    interface {interfaceName}
    sflow flow-sampling input id 1 rate 256
    sflow flow-sampling output id 1 rate 256
    end
    copy running-config startup-config
  2. (Optional) Check the sFlow configuration
    show sflow
    show sflow interface {interfaceName}
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request