Configuring Cisco Nexus 5k Series Devices
This document outlines the steps to configure MOTADATA_NETFLOW on Cisco Nexus 5k Series devices.
Enter configuration mode:
configure terminal
Enable the MOTADATA_NETFLOW feature:
feature MOTADATA_NETFLOW
Set flow timeouts:
flow timeout 60
Configure the flow exporter:
flow exporter MOTADATA_NETFLOWexporter
destination {MFE serverIP}
transport udp 2055
source {Source interface}
version 9
template data timeout 60
option exporter-stats timeout 60
option sampler-table timeout 60
option interface-table timeout 60
Define the flow record:
flow record MOTADATA_NETFLOWrecord
match ipv4 source address
match ipv4 destination address
match ip protocol
match transport source-port
match transport destination-port
collect counter bytes
collect counter packets long
collect timestamp sys-uptime first
collect timestamp sys-uptime last
Create the flow monitor:
flow monitor MOTADATA_NETFLOWmonitor
record MOTADATA_NETFLOWrecord
exporter MOTADATA_NETFLOWexporter
Configure the sampler:
sampler MOTADATA_NETFLOWsampler
mode 1 out-of 100
Apply the flow monitor and sampler to all interfaces:
ip flow monitor MOTADATA_NETFLOWmonitor input sampler MOTADATA_NETFLOWsampler
note
Ensure that the MOTADATA_NETFLOW license is enabled on the device.
After completing the configuration, navigate to Menu > Flow Explorer and select Explorer to view the active flow data.