07-21-2017 05:59 AM - edited 03-08-2019 11:25 AM
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.
10-02-2018 08:59 AM
I’m wondering if a different iOS or licence is required to allow this feature.
10-02-2018 09:12 AM
Please try the flexible netflow configuration.
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.
10-03-2018 05:22 AM
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
10-03-2018 05:26 AM
The show ip cache flow command is replaced with the show flow monitor "monitor" cache format table command.
Please mark helpful posts.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide