cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3738
Views
5
Helpful
2
Replies

ASR1001: NetFlow fails to send

ivarstrandberg
Level 1
Level 1

We have an ASR1001 running version 03.10.01.S.

This is the NetFlow config:

flow record v4_r1

match ipv4 tos

match ipv4 protocol

match ipv4 source address

match ipv4 destination address

match transport source-port

match transport destination-port

collect counter bytes long

collect counter packets long

flow exporter EXPORTER-1

destination 192.168.1.1 vrf Mgmt-intf

transport udp 2055

flow monitor FLOW-MONITOR-1

exporter EXPORTER-1

record v4_r1

!

interface TenGigabitEthernet0/1/0.1

ip flow monitor FLOW-MONITOR-1 input

!

end

Output of show flow exporter statistics:


Flow Exporter EXPORTER-1:

  Packet send statistics (last cleared 00:11:29 ago):

    Successfully sent:         0                     (0 bytes)

    Reason not given:          10024                 (11887500 bytes)

  Client send statistics:

    Client: Flow Monitor FLOW-MONITOR-1

      Records added:           389413

        - failed to send:      389413

      Bytes added:             11682390

        - failed to send:      11682390

The config is from this document:

http://www.cisco.com/en/US/docs/ios-xml/ios/fnetflow/configuration/xe-3s/asr1000/fnf-xe-3s-asr1000-book.html

I've also tried to add a source interface in the flow exporter. Does not have any effect.

Various "debug flow exporter" commands does not give any messages at all.

Any ideas? A bug perhaps?

2 Replies 2

ivarstrandberg
Level 1
Level 1

Seems like this is a feature, not a bug.

The management-interface belongs to the route processor, and it is not possible to send NetFlows via the RP.

After many failed attempts and receiving confirmations from multiple Cisco engineers that my unsuccessful configuration appeared correct, here was the finally config which worked.  I did not have any success attempting to send Netflow traffic through the vrf.

---

flow record NETFLOW_RECORD
match ipv4 tos
match ipv4 protocol
match ipv4 source address
match ipv4 destination address
match transport source-port
match transport destination-port
match interface input
match interface input snmp
match interface output snmp
collect interface output
collect counter bytes
collect counter packets
!

!

flow exporter NETFLOW_EXPORT
 destination x.x.x.x                      (Netflow monitor server IP)
 source GigabitEthernet_/_/_      (an appropriate interface which can route and communicate with the Netflow monitor server)
 transport udp 2055

!

!

flow monitor NETFLOW_MONITOR
description Original Netflow captures
exporter NETFLOW_EXPORT
cache timeout inactive 10
cache timeout active 5
record NETFLOW_RECORD

!

(Monitor interfaces with traffic) 

interface GigabitEthernet_/_/_

 ip flow monitor NETFLOW_MONITOR input
 ip flow monitor NETFLOW_MONITOR output

interface GigabitEthernet_/_/_

 ip flow monitor NETFLOW_MONITOR input
 ip flow monitor NETFLOW_MONITOR output

!

---

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: