Device(config-flow-record)# collect counter packet long Device(config-flow-record)# collect timestamp absolute first Device(config-flow-record)# collect timestamp absolute last Device(config-flow-record)# exit Device(config)# flow monitor monitor1 Device(config-flow-monitor)# record record1 Device(config-flow-monitor)# exporter export1 Device(config-flow-monitor)# exit Device(config)# interface tenGigabitEthernet 1/0/1 Device(config-if)# ip flow monitor monitor1 input Device(config-if)# end Example: Monitoring IPv4 ingress traffic This example shows how to monitor IPv4 ingress traffic (int g1/0/11 sends traffic to int g1/0/36 and int g3/0/11).
Device# configure terminal Enter configuration commands, one per line. End with CNTL/Z.
Device(config)# flow record fr-1 Device(config-flow-record)# match ipv4 source address Device(config-flow-record)# match ipv4 destination address Device(config-flow-record)# match interface input Device(config-flow-record)# collect counter bytes long Device(config-flow-record)# collect counter packets long Device(config-flow-record)# collect timestamp absolute first Device(config-flow-record)# collect timestamp absolute last Device(config-flow-record)# collect counter bytes layer2 long Device(config-flow-record)# exit Device(config)# flow exporter fe-ipfix6 Device(config-flow-exporter)# destination 2001:0:0:24::10 Device(config-flow-exporter)# source Vlan106 Device(config-flow-exporter)# transport udp 4739 Device(config-flow-exporter)# export-protocol ipfix Device(config-flow-exporter)# template data timeout 240 Device(config-flow-exporter)# exit Device(config)# flow exporter fe-ipfix Device(config-flow-exporter)# description IPFIX format collector 100.0.0.80 Device(config-flow-exporter)# destination 100.0.0.80 Device(config-flow-exporter)# dscp 30 Device(config-flow-exporter)# ttl 210 Device(config-flow-exporter)# transport udp 4739 Device(config-flow-exporter)# export-protocol ipfix Device(config-flow-exporter)# template data timeout 240 Device(config-flow-exporter)# exit Device(config)# flow exporter fe-1 Device(config-flow-exporter)# destination 10.5.120.16 Device(config-flow-exporter)# source Vlan105 Device(config-flow-exporter)# dscp 32 Device(config-flow-exporter)# ttl 200 Device(config-flow-exporter)# transport udp 2055 Device(config-flow-exporter)# template data timeout 240 Device(config-flow-exporter)# exit Configuring Flexible NetFlow Example:
Monitoring IPv4 ingress traffic Configuring Flexible NetFlow 33