Background information
- The NetFlow cache on the Multilayer Switch Feature Card (MSFC) captures statistics for flows routed in software.
- The NetFlow cache on the Policy Feature Card (PFC) captures statistics for flows routed in hardware.
- A flow mask defines the format of a cache entry in the NetFlow cache table.
- You need to configure Netflow Data Export (NDE) to export NetFlow statistics to a NetFlow collector.
Catalyst NetFlow configuration
- MSFC configuration
Catalyst(config)#interface vlan10Catalyst(config-if)#ip route-cache flowCatalyst(config)#ip flow-export version 5Catalyst(config)#ip flow-cache timeout active 5Catalyst(config)#ip flow-cache timeout inactive 15
- PFC configuration
Catalyst(config)#mls netflowCatalyst(config)#mls flow ip full-interfaceCatalyst(config)#mls nde sender version 5Catalyst(config)#mls aging fastCatalyst(config)#mls aging long 300Catalyst(config)#mls aging normal 15
- Common configuration
Catalyst(config)#snmp-server ifindex persistCatalyst(config)#ip flow-export source loopback0Catalyst(config)#ip flow-export destination 10.0.0.1 9995
- Checks
Catalyst#show ip flow exportCatalyst#show ip cache flowCatalyst#show mls ndeCatalyst#show snmp mib ifmib ifindex
Nexus NetFlow configuration
- Configuration
Nexus(config)#feature netflowNexus(config)#flow exporter collectorNexus(config-flow-exporter)#description export netflow to collectorNexus(config-flow-exporter)#destination 10.0.0.1Nexus(config-flow-exporter)#version 5Nexus(config-flow-exporter)#source loopback0Nexus(config-flow-exporter)#transport udp 9995Nexus(config)#flow monitor monitor_nexusNexus(config-flow-monitor)#exporter collectorNexus(config-flow-monitor)#record netflow-originalNexus(config)#int vlan10Nexus(config-if)#ip flow monitor monitor_nexus inputNexus(config)#flow timeout active 300Nexus(config)#flow timeout inactive 15
- Checks
Nexus#show flow monitor monitor_nexusNexus#show flow exporter collectorNexus#show flow record netflow-originalNexus#show hardware flow ipNexus#show interface snmp-ifindex
No comments:
Post a Comment