Configuring sFlow Version 5
When broadcast and multicast packets are sampled, they are usually forwarded to more than one port. However, the output port field in an sFlow datagram supports the display of one egress interface ID only. Therefore, the sFlow version 5 agent always sets the output port ID to 0x80000000 for broadcast and multicast packets that are sampled.
- Enter global configuration mode.
- Specify the sFlow version.
- Specify the sFlow agent IP address (IPv4 or IPv6).
- Specify the maximum flow sample size.If a packet is larger than the specified maximum size, only the data of the packet up to the specified maximum number of bytes is exported.
- Export CPU and memory usage
information to the sFlow collector using the sflow export
system-info and specify the poll interval.Polling interval value ranges from 5 through 1800 seconds. The default value is 300 seconds.
- Export CPU-directed data (management traffic) to the sFlow collector using the sflow export cpu-traffic and specify the sampling rate.
The following example shows how to configure sFlow version 5, specifying an IPv4 address as the sFlow agent IP address. The sFlow parameters are configured.
device# configure terminal device(config)# sflow version 5 device(config)# sflow agent-ip 10.10.10.1 device(config)# sflow max-packet-size 1024 device(config)# sflow export system-info 30 device(config)# sflow export cpu-traffic 2048