Enable NetFlow on Cisco Catalyst 4500 Series
The following sections provide the procedures required to enable NetFlow and NetFlow export to NetFlow Traffic Analyzer from the Catalyst 4500 Series.
This information is provided as a guide for enabling NetFlow to work with NTA. Consult your Cisco product documentation for details about configuring NetFlow on Cisco Catalyst 4500 Series devices.
Enable NetFlow to work with NTA
The Catalyst 4500 platform requires a NetFlow Services Card installed to enable NetFlow.
- Configure your switch for IP routing.
- Log in to the switch, and then enter global configuration mode.
- Enter
ip flow ingress infer-fields
to enable NetFlow for IP routing with inferred input/output interfaces and source/destination border gateway protocol (BGP) as information.You must enable the
infer-fields
option to determine any autonomous system information.
Configure the NTA server as a NetFlow destination
- Log in to the switch and enter global configuration mode.
- Type
ip flow-export destination {hostname | ip-address} udp-port
to direct exported NetFlow data to NTA, as in this example, where NTA is hosted on TAHost:ip flow-export destination TAHost 2055
If you need to send data to more than one destination, you can specify up to two different destinations using successive calls of this command.
- Type
ip flow-export version 5|9 {origin-as | peer-as}
to set the NetFlow version for use with NTA.Select
origin-as
to direct NetFlow to determine the origin BGP autonomous system of both the source and the destination hosts of the flow, as in:ip flow-export version 5|9 origin-as
Select
peer-as
to direct NetFlow to determine the peer BGP autonomous system of both the input and output interfaces of the flow, as in:ip flow-export version 5|9 peer-as
- Type
ip flow-export source interface
to specify the interface that provides the source IP address in the IP header of the NDE packet. The default is the NDE output interface.
Display the NetFlow configuration for verification
- Enter privileged EXEC mode on your switch.
- Type
show ip flow export
to display statistics and cache contents for your NetFlow configuration.