Trying to get Netflow working on a ASR1000 IOS-XE

1,349 views
Skip to first unread message

Frank Hoonhout

unread,
Nov 1, 2016, 7:08:52 PM11/1/16
to AS-Stats users
We are replacing our aging Cisco 7600 with ASR 1000s. We originally followed the configuration guide for 7600 from GitHub and got everything working.

We swap out one with the ASR and cannot stats from the ASR1000 to work.

ASR 1000 IOS-XE [15.5.(3)S4a]

I do see netflow data being sent to the collector, no graphs are showing up from the new device.

The other 3 devices which are still 7600 are still sending netflow data.

Router#show flow exporter AS-STATS-EXPORT statistics
Flow Exporter AS-STATS-EXPORT:
Packet send statistics (last cleared 21:40:39 ago):
Successfully sent: 176818 (242000028 bytes)

Client send statistics:
Client: Flow Monitor AS-STATS-MONITOR
Records added: 5483705
- sent: 5483705
Bytes added: 241283020
- sent: 241283020


Any ideas?

Current netflow config

--------------------------------------
flow record AS-STATS-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 output
collect counter bytes long
collect counter packets long
collect routing next-hop address ipv4
collect routing destination as
!
!
flow exporter AS-STATS-EXPORT
destination 10.10.10.10
source Loopback0
transport udp 5000
!
!
flow monitor AS-STATS-MONITOR
exporter AS-STATS-EXPORT
record AS-STATS-Record
!
-------------------------------------

Applied to ALL active interfaces.
!
interface GigabitEthernet1/1/0
ip flow monitor AS-STATS-MONITOR input
ip flow monitor AS-STATS-MONITOR output
!

Fakrul Alam

unread,
Jan 11, 2017, 1:39:36 AM1/11/17
to AS-Stats users
What is the output of:

tcpdump -n dst port 9000 -vv

I am using following configuration for ASR and looks good:

flow exporter AS-STATS
destination 198.51.100.27 !ip address of as-stats server
source GigabitEthernet0/0/0
transport udp 9000
!
flow monitor IPV4-AS-STATS
exporter AS-STATS
cache timeout active 300
cache entries 16384
record netflow ipv4 as
!
flow monitor IPV6-AS-STATS
exporter AS-STATS
cache timeout active 300
cache entries 16384
record netflow ipv6 as
!
sampler AS-STATS-SM
mode random 1 out-of 10000
!
interface GigabitEthernet0/0/5
ip flow monitor AS-STATS input
!

Thanks
Fakrul

Frank Hoonhout

unread,
Feb 8, 2017, 4:00:22 PM2/8/17
to AS-Stats users

Thanks for the help.

I tweak your config and got it working.

flow exporter AS-STATS
description AS-STATS Exporter template
destination a.b.c.59
source Loopback0
transport udp 9000
!
!
flow monitor IPv4-AS-STATS


exporter AS-STATS
cache timeout active 300
cache entries 16384
record netflow ipv4 as
!

!
flow monitor IPv6-AS-STATS


exporter AS-STATS
cache timeout active 300
cache entries 16384
record netflow ipv6 as
!

.
.
.
.
.
!
interface GigabitEthernet1/1/1
description - Internet service Provider
ip address x.x.x.234 255.255.255.252
ip flow monitor IPv6-AS-STATS input
ip flow monitor IPv4-AS-STATS input
ip flow monitor IPv6-AS-STATS output
ip flow monitor IPv4-AS-STATS output

Reply all
Reply to author
Forward
0 new messages