Cisco Cisco MGX-FRSM-HS2 B Serial Frame Service Module 白皮書

下载
页码 35
 
 
Deployment Guide 
© 2010 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public Information. 
Page 33 of 35 
 
NetFlow Configurations for Cisco IOS Software 
To configure NetFlow for Cisco IOS Software, follow these steps: 
Step 1.   Configure NetFlow. 
Router# configure terminal 
Enter configuration commands, one per line. End with CNTL/Z. 
Router(config)# interface type slot/port 
Step 2.   Enable NetFlow for the interface. 
Router(config)# ip route-cache flow 
Step 3.   Export the routed flow cache entries to the NAM UDP port 3000. 
Router(config)# ip flow-export destination NAM-address 3000 
Note:  
  The UDP port number must be set at 3000. 
When you configure a Cisco NAM as a NetFlow collector, you should use the IP address of the Cisco NAM (set up 
by sessioning into the NAM). 
This example shows how to set up a basic NetFlow configuration: 
Router# configure terminal 
Enter configuration commands, one per line. End with CNTL/Z. 
Router(config)# interface vlan 2 
Router(config)# ip route-cache flow 
Router(config)# ip flow-export destination 172.20.104.74 3000 
Router(config)# exit 
Enabling NetFlow Data Sources Through the Cisco NAM GUI 
Use the NAM Traffic Analyzer to enable additional NetFlow monitoring devices. 
Step 1.   From Setup > Data Sources > NetFlow > Listening Mode, click Start. 
This allows the Cisco NAM to listen to any NetFlow packets being sent to it (see Figure 26). 
Step 2.   When you see the IP address or addresses, select and add the device or devices, and provide the SNMP 
read community string. 
Step 3.   Test for connectivity and the SNMP community string from Setup > Data Sources > NetFlow Devices, then 
click Test. 
Figure 26.    Adding NetFlow-Enabled Monitoring Devices 
 
Step 4.   Next, go to Setup > Monitor > Core Monitoring and select the desired devices with a prefix NDE as the 
NetFlow data source and enable the collections (see Figure 27).