Friday, January 17, 2020

Netflow on IOS

Hi I am having trouble with Netflow. We used to use simple netflow but since we went to this advanced config type, it has not worked. What am I missing? Router model: ISR4221 image: 16.9.4

Thanks!

----------------------------------------

flow record NETFLOW

match ipv4 tos

match ipv4 protocol

match ipv4 source address

match ipv4 destination address

match transport source-port

match transport destination-port

collect interface output

collect counter bytes long

collect counter packets long

!

flow exporter y.y.y.y

destination x.x.x.x

source GigabitEthernet0/0/1.300

transport udp 12007

!

flow monitor NETFLOW

exporter x.x.x.x

record NETFLOW

interface GigabitEthernet0/0/1.300

bandwidth 10000

encapsulation dot1Q 300 native

ip flow monitor NETFLOW input

ip flow monitor NETFLOW output

ip address x.x.x.x 255.255.255.0

no ip redirects

no ip proxy-arp

ip ospf priority 0

arp timeout 300

service-policy output QOS-PARENT-OUT

ROUTER#sho 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



No comments:

Post a Comment