NetFlow Configuration Examples
Destination Prefix Configuration
This example shows how to configure a destination 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 destination-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
Prefix Configuration
This example shows how to configure a 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 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
Protocol Port Configuration
This example shows how to configure a protocol port 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 protocol-port
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
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
Sample NetFlow Minimum Prefix Mask Router-Based Aggregation Schemes
This section provides examples for the NetFlow minimum prefix mask aggregation cache configuration:
•
•
•
Software Configuration Guide—Release 12.2(25)EW
40-14
Prefix Aggregation Scheme
Destination-Prefix Aggregation Scheme
Source-Prefix Aggregation Scheme
Chapter 40
Configuring NetFlow Statistics Collection
OL-6696-01