———-Configuration———

flow record FLOW-RECORD

 description record to monitor network traffic

 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 routing source as

 collect routing destination as

 collect routing next-hop address ipv4

 collect transport tcp flags| b

 collect counter bytes

 collect counter packets

 collect timestamp sys-uptime first

 collect timestamp sys-uptime last

!

!

flow exporter NetQos

 description export Netflow traffic to HQ

 destination 172.25.20.20

 source gi0/0/3

 output-features

 transport udp 670

 template data timeout 300

 option interface-table timeout 1000

 option exporter-stats timeout 1000

!

!

flow monitor FLOW1

 description Used for ipv4 traffic analysis (Mapped To FLOW-RECORD)

 exporter NetQos

 statistics packet protocolint gi

 record FLOW-RECORD

####################

for the interfaces

ip flow monitor FLOW1 input

 ip flow monitor FLOW1 output

Leave a Reply