Configuring Traffic Monitors on Cisco Devices Via CLI
Configuring Traffic Monitors on IOS-XE Devices
Below are example steps for manually configuring network flows on Cisco IOS-XE devices, to be used as traffic monitors, using a command-line interface (CLI). For CLI steps for Nexus devices, see Configuring Traffic Monitors on Nexus Devices.
Before configuring network flows, ensure you have reviewed the network flow record requirements in Flow Record Requirements, which covers minimum and recommended fields.
1. Set Up Unique Forwarding IP on Interface
The traffic monitor’s IP address needs to be unique within your network. While the IP address need not be dedicated solely to Traffic Insights – the device can use the IP address for other purposes – it just means that your exporting interfaces should be assigned with IP addresses that don't overlap with other IP addresses in your network.
2. Configure Network Flow Records
Create the IPv4 record:
flow record te_etm_record_v4
match interface input
match ipv4 source address
match ipv4 destination address
match ipv4 protocol
match transport source-port
match transport destination-port
match flow direction
collect interface output
collect counter bytes
collect counter packets
collect application name
collect transport tcp flags
collect routing next-hop address ipv4
collect timestamp absolute first
collect timestamp absolute lastCreate the IPv6 record:
3. Configure Flow Exporter
4. Configure Flow Monitor
Create the IPv4 monitor:
Create the IPv6 flow monitor:
5. Attach Flow Monitor to All Interfaces
Attach the IPv4 flow monitor:
Optional: If you want to get IPv6, attach the IPv6 flow monitor to all interfaces:
Configuring Traffic Monitors on Nexus Devices
Below are example steps for manually configuring network flows on Cisco Nexus devices, to be used as traffic monitors, using a CLI. The configuration approach for Nexus devices follows similar principles to IOS-XE devices but steps 2, 3, and 4 have device-specific syntax variations. The commands for these steps are as follows.
2. Configure Network Flow Records
Create the IPv4 record:
Create the IPv6 record:
3. Configure Flow Exporter
4. Configure Flow Monitors
Create the IPv4 monitor:
Create the IPv6 flow monitor:
Last updated