Skip to main content

Configuring Cisco Nexus 9k Series Devices

This document provides the configuration steps for enabling netflow export on Cisco Nexus 9k Series devices. Follow the commands outlined below to properly set up Motadata NetFlow.

Enter configuration mode:

config 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

Configure the flow monitor:

flow monitor MFEmonitor
record MFErecord
exporter MFEexporter

Create the sampler:

sampler MFEsampler
mode 1 out-of 100

Apply the flow monitor to all interfaces:

ip flow monitor MFEmonitor input sampler MFEsampler

After completing the configuration, navigate to Menu > Flow Explorer and select Explorer to view the active flow data.