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...

5 Steps 1 min read Medium

Step-by-Step Guide

  1. 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)
  2. 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 ,
  3. Step 3: Exit the interface

  4. Step 4: exit privilege mode

  5. 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

A

Amanda Bishop

Enthusiastic about teaching organization techniques through clear, step-by-step guides.

74 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: