Configuring Cisco Nexus 5k Series Devices
This document outlines the steps to configure Netflow on Cisco Nexus 5k Series devices.
Enter configuration mode:
configure terminal
Enable the netflow feature:
feature netflow
Set flow timeouts:
flow timeout 60
Configure the flow exporter:
flow exporter MFEexporter
destination {MOTADATA_SERVER_IP}
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 MFErecord
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 MFEmonitor
record MFErecord
exporter MFEexporter
Configure the sampler:
sampler MFEsampler
mode 1 out-of 100
Apply the flow monitor and sampler to all interfaces:
ip flow monitor MFEmonitor input sampler MFEsampler
note
Ensure that the 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.