Netflow

Scenario
Netflow configuration is comprised of 3 or 4 parts depending on the OS:

  1. The flow record (XE) or record statement (XR)- what is recorded
  2. The flow exporter (XE) or flow exporter-map (XR) – where to export the recorded information
  3. The flow monitor (XE) or flow monitor-map (XR) – binds the recorder and exporter together
  4. (XR only) The sampler-map – specifies a sample ratio of flows to monitor rather than everything.

In this example IOS-XE will be configured to record the source and destination IP address. The non-key fields of the first MPLS label, the network delay and the ipv4 protocol will also be gathered.

For IOS-XR there is no flow record structure like in IOS-XE. It is simply a record statement under the flow monitor-map that captures data in a raw record format. If this record is excluded a set of default fields will be used. Caching is also an option within the flow monitor-map. Among other options, this IOS-XR example here will record ipv4 details, use a sample rate if 1 out of 100 and cache 10,000 entries.

Both IOS-XE and IOS-XR will export to 10.1.1.1 using Netflow version 9. Netflow will be enabled on interface Gi1 for IOS-XE and Gi0/0/0/1 for IOS-XR in both inbound and outbound directions.

IOS Config

XR Config

Back to top