How to Export Netflow Data on a Cisco Router
Check if you have SNMP access to your router., Specify the interface you want to analyze the traffic on by using the interface fastethernet0/0 command., Exit the interface, exit privilege mode, and type in one more important command: wr mem (saves...
Step-by-Step Guide
-
Step 1: Check if you have SNMP access to your router.
If you don’t have SNMP set up on your devices, you will need to configure them using the command line:
Open a command prompt and telnet into your router.
Login to the device.
Go into privilege mode by typing in enable.
This allows you to make configuration changes.
Type in conf t to give the device configuration commands.
You’ll see a banner to enter in configuration commands.
You will now need to enter in 3 lines of commands to tell the router to start NetFlow and export the data: ip flow-export source fastethernet0/0 (export and source traffic to fastethernet0/0) ip flow-export source version 5 (this exports ver. 5 NetFlow, the best to start with) ip flow-export destination <IP> <port> (location of NMS to send the data to) -
Step 2: Specify the interface you want to analyze the traffic on by using the interface fastethernet0/0 command.
Tell that interface what traffic you require: ip flow egress (monitor outbound flow) ip flow ingress (monitor inbound flow) ip route-cache flow , -
Step 3: Exit the interface
-
Step 4: exit privilege mode
-
Step 5: and type in one more important command: wr mem (saves configuration data)
Detailed Guide
If you don’t have SNMP set up on your devices, you will need to configure them using the command line:
Open a command prompt and telnet into your router.
Login to the device.
Go into privilege mode by typing in enable.
This allows you to make configuration changes.
Type in conf t to give the device configuration commands.
You’ll see a banner to enter in configuration commands.
You will now need to enter in 3 lines of commands to tell the router to start NetFlow and export the data: ip flow-export source fastethernet0/0 (export and source traffic to fastethernet0/0) ip flow-export source version 5 (this exports ver. 5 NetFlow, the best to start with) ip flow-export destination <IP> <port> (location of NMS to send the data to)
Tell that interface what traffic you require: ip flow egress (monitor outbound flow) ip flow ingress (monitor inbound flow) ip route-cache flow ,
About the Author
Amanda Bishop
Enthusiastic about teaching organization techniques through clear, step-by-step guides.
Rate This Guide
How helpful was this guide? Click to rate: