Cisco has been switching to NetFlow v9. This version allows for Flexible NetFlow export options thus giving the user a better hold on the information he exports and sees. In line with this, Cisco XR 12000 and Cisco ASR 9000 Series routers (with XR IOS) support Flexible NetFlow export which means the NetFlow configuration for these devices is not the same as you always had been doing. So here it is !

Note : The configuration for Cisco ASR 1000 series router is not the same as that of Cisco ASR 9000 Series routers.

Three maps have to configured to enable NetFlow on these routers
1) Exporter Map
2) Sampler Map
3) Flow Monitor Map

Exporter Map:

 router(config)# flow exporter-map NFAEM
 router(config-NFAEM )# destination 192.168.1.1
 router(config-NFAEM )# source gi0/0
 router(config-NFAEM )# transport udp 9996
 router(config-NFAEM )# version v9
 router(config-NFAEM-ver)# template data timeout 60
 router(config-NFAEM -ver)# options interface-table timeout 60
 router(config-NFAEM -ver)# exit

Sampler Map:

 router(config)# sampler-map NFASM
 router(config-NFASM )# random 1 out-of 65535
 router(config)# exit

Flow Monitor Map:

Note that the Exporter Map you created earlier is associated to the Flow Monitor map.

 router(config)# flow monitor-map NFAMM
 router(config-NFAMM)# record ipv4                   –>Configure the flow record map name for IPv4, IPv6, or MPLS. Use the ipv4-ipv6-fields keyword to collect IPv4 and IPv6 fields in an MPLS-aware NetFlow.
 router(config-NFAMM)# exporter NFAEM            –> Use the name you used for Exporter Map here
 router(config-NFAMM)# cache timeout active 60
 router(config-NFAMM)# cache timeout inactive 15
 router(config-NFAMM)# exit

The next step is to apply the Monitor Map and Sampler Map to all the active Interfaces. Go to each of the interface config mode and apply the command as below.

router(config)# interface Gi0/0
router(config-if)# flow ipv4 monitor NFAMM sampler NFASM ingress
router(config-if)# exit

You are done now. Go ahead and start monitoring. NetFlow Analyzer will generate its reports in a matter of minutes.

You can download the 30 day trial from here.

Praveen Manohar
NetFlow Analyzer Technical Team


Download | Interactive Demo  | Twitter | Customers

  1. Kelvin

    Hi Praveen,

    I’m also facing same problem as Matheus.
    Any solutions for the bandwidth graph?

    • senthil.n

      Hi Kelvin,

      Sorry for the delayed response. Please check the answer below.

  2. Matheus Valença

    Hi Praveen,

    I’ve configured both of my ASR9K routers like this example but the main problem is that the bandwidth graphic received from my routers in Netflow Analyzer does not correspond to the actual bandwidth in use.

    Any other recommendation?

    Regards,
    Matheus Valença

    • Senthil.N

      Please apply the flow monitor “flow ipv4 monitor” on all available layer 3 interfaces of the device and check the issue.
      If issue persists, e-mail us to netflowanalyzer-support@manageengine.com