How To Setup Netflow On Cisco Router

how to setup netflow on cisco router

The Netflow network protocol allows you to monitor and collect the data traffic flow data generated by the Netflow enabled Cisco router. Proceed with the how to setup netflow on Cisco router steps that are given below to set up Netflow on a Cisco router.

Step 1: Enable Netflow

  • Make sure to configure your Cisco router before starting the setup.
  • You have to configure the router for IP routing to enable Netflow.
  • Enter the following command for each interface to activate Netflow and proceed with how to setup netflow on Cisco router guide.
  • Router (config) # interface type slot/port-adapter/port (Cisco 7500 series routers)
  • Otherwise, type: Router (config) # interface type slot/port (Cisco 7200 series routers)
  • You can enter the commands according to your Cisco router series.
  • Now, you have to enable Netflow for IP routing,
  • For that, enter the command: Router (config-if) # ip route-cache flow

Step 2: Exporting Netflow Statistics

  • The Netflow details are exported to a Network Management application.
  • To configure the Netflow on the Cisco router, you have to export the Netflow statistics in a Netflow cache.
  • Use the command mentioned below to export the Netflow statistics to the workstation.
  • Router (config) # ip flow-export ip-address upd-port (version 1)
  • On using how to setup netflow on Cisco router steps, In the second command line, type the following.
  • Router (config) # ip flow-export ip-address upd-port version 5 [origin-as | peer-as]

Step 3: Customizing Each Number In A Netflow Cache

  • You can increase and decrease the entry numbers in the cache according to the requirement of the Netflow traffic.
  • The default cache entry is 64.
  • While following how to setup netflow on Cisco router steps, To customize the cache entry number, go to the global configuration mode.
  • Type the command given below to change the entry numbers.
  • Router (config) # ip flow-cache entries number

Step 4: Managing Netflow Statistics

  • Now, you can manage Netflow statistics by entering the commands given below.
  • To display Network statistics, type Router# show ip cache flow.
  • Enter Router# clear ip flow stats to clear the Netflow statistics.
  • By using the above given how to setup netflow on Cisco router steps, You have now setup Netflow on the Cisco router.