4.2 Configure and verify Flexible NetFlow
ENCOR 350-401 v1.2 · 4.0 Network Assurance
SNMP tells you an interface is busy; NetFlow tells you who is using it. A router or switch summarises traffic into flows (same source, destination, ports, protocol, ToS, input interface) and exports them to a collector. Flexible NetFlow lets you choose the fields. ENCOR expects you to configure and verify it.
What you must know
- Define a flow and the traditional seven key fields.
- Build Flexible NetFlow: flow record (match = key fields, collect = non-key), flow exporter, flow monitor.
- Apply a monitor to an interface and direction.
- Verify the cache and the export, and know the export formats (v5, v9, IPFIX).
Records, exporters and monitors
flow record APP-RECORD
match ipv4 source address
match ipv4 destination address
match transport source-port
match transport destination-port
match ipv4 protocol
collect counter bytes
collect counter packets
collect timestamp absolute first
!
flow exporter TO-COLLECTOR
destination 10.0.50.40
source Loopback0
transport udp 2055
export-protocol netflow-v9
!
flow monitor APP-MONITOR
record APP-RECORD
exporter TO-COLLECTOR
cache timeout active 60
!
interface GigabitEthernet0/1
ip flow monitor APP-MONITOR inputmatch fields are key fields: a new combination starts a new flow. collect fields are non-key: counted or stored per flow. The active timeout exports long flows every 60 seconds; inactive flows are exported after 15 seconds by default.
Traffic is counted as it enters (1); summaries go to the collector (2), which shows top talkers, applications and trends.
Commands
show flow monitor APP-MONITOR cache | Current flows in the cache with their counters. |
show flow exporter statistics | Records and packets sent to the collector. |
show flow interface | Monitors applied to each interface. |
Exam traps
match= key fields;collect= non-key fields.- A monitor needs a record and an exporter, then an interface and direction.
- NetFlow v5 has fixed fields; v9 and IPFIX use templates.
- Export source a loopback so the collector sees one address per device.
Check yourself
- What makes two packets part of the same flow?
- Identical key fields (for example source and destination address, ports, protocol, ToS, input interface).
- What is the difference between
matchandcollectin a flow record? matchfields define the flow;collectfields are values gathered for it.- Which export formats use templates?
- NetFlow v9 and IPFIX.
Labs
Try it live: See the traffic: Flexible NetFlow, SPAN and RSPAN