cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4143
Views
5
Helpful
4
Replies

CSR1000V netflow configuring...

megrez80
Level 1
Level 1

I'm trying to configure netflow on a CSR1000V with IOS XE Version 16.05, but am having a problem:

ip-172-31-7-28#enable
ip-172-31-7-28#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
ip-172-31-7-28(config)#interface GigabitEthernet1
ip-172-31-7-28(config-if)# ip flow egress
                                                        ^
% Invalid input detected at '^' marker.

ip-172-31-7-28(config-if)#

Any help would be appreciated.

Thanks.

4 Replies 4

blahblah1
Level 1
Level 1

I’m wondering if a different iOS or licence is required to allow this feature.

Alex Pfeil
Level 7
Level 7

Please try the flexible netflow configuration.

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/fnetflow/configuration/15-mt/fnf-15-mt-book/cfg-de-fnflow-exprts.html

 

The new command is ip flow monitor "your monitor here" input

ip flow monitor "your monitor here" output

 

you have to configure record, monitor, and exporter.

 

 

Please rate helpful posts.

Thank you for your help Alex.

 

You are right, the commands do exist.

 

I have attempted to apply the following for testing but it doesnt seem to be working.

 

Config Applied:

 

conf t
flow exporter Export
description Netflow Exporter
destination 10.0.0.1
transport udp 2058
source GigabitEthernet1
option exporter-stats timeout 1800
flow record Record
description Netflow Recorder
match ipv4 source address
match ipv4 destination address
match ipv4 protocol
match ipv4 tos
match transport source-port
match transport destination-port
collect counter bytes
collect counter packets
sampler Sample
description Sets Sample Packets to Capture
mode deterministic 1 out-of 10
flow monitor Monitor
description Netflow Monitor
record Record
exporter Export
interface GigabitEthernet1
ip flow monitor Monitor sampler Sample input
!

 

 

 

Output from cache:

 

ip-10-34-136-24#sh ip cache flow
IP packet size distribution (0 total packets):
1-32 64 96 128 160 192 224 256 288 320 352 384 416 448 480
.000 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000

512 544 576 1024 1536 2048 2560 3072 3584 4096 4608
.000 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000

IP Flow Switching Cache, 0 bytes
0 active, 0 inactive, 0 added
0 ager polls, 0 flow alloc failures
Active flows timeout in 30 minutes
Inactive flows timeout in 15 seconds
last clearing of statistics never
Protocol Total Flows Packets Bytes Packets Active(Sec) Idle(Sec)
-------- Flows /Sec /Flow /Pkt /Sec /Flow /Flow

SrcIf SrcIPaddress DstIf DstIPaddress Pr SrcP DstP Pkts

The show ip cache flow command is replaced with the show flow monitor "monitor" cache format table command.

 

Please mark helpful posts.