56-16
Software Configuration Guide—Release 15.0(2)SG
OL-23818-01
Chapter 56 Configuring NetFlow
NetFlow Configuration Examples

Source Prefix Configuration

This example shows how to configure a source prefix aggregation cache with an inactive timeout of 200
seconds, a cache active timeout of 45 minutes, an export destination IP address of 10.42.42.1, and a
destination port of 9992:
Switch(config)# ip flow-aggregation cache source-prefix
Switch(config-flow-cache)# cache timeout inactive 200
Switch(config-flow-cache)# cache timeout active 45
Switch(config-flow-cache)# export destination 10.42.42.1 9992
Switch(config-flow-cache)# enabled
NetFlow Minimum Prefix Mask Router-Based Aggregation Scheme Examples
This section provides examples for the NetFlow minimum prefix mask aggregation cache configuration:
Prefix Aggregation Scheme, page 56-16
Destination-Prefix Aggregation Scheme, page 56-16
Source-Prefix Aggregation Scheme, page 56-16

Prefix Aggregation Scheme

it is an example of a prefix aggregation cache configuration:
!
ip flow-aggregation cache prefix
mask source minimum 24
mask destination minimum 28
In this example, assume the following configuration:
ip route 118.42.20.160 255.255.255.224 110.42.13.2
ip route 122.16.93.160 255.255.255.224 111.22.21.2
Both routes have a 27-bit subnet mask in the routing table on the switch.
Flows travelling from the 118.42.20.160 subnet to the 122.16.93.160 subnet whose source IP addresses
match with a mask of 27 bits and whose destination IP addresses match with a mask of 28 bits are
aggregated together in the cache statistics.

Destination-Prefix Aggregation Scheme

it is an example of a destination-prefix aggregation cache configuration:
!
ip flow-aggregation cache destination-prefix
mask destination minimum 32
!

Source-Prefix Aggregation Scheme

it is an example of a source-prefix aggregation cache configuration:
ip flow-aggregation cache source-prefix
mask source minimum 30