Skip to main content

Configuring Cisco Nexus 9k Series Devices

This document provides the configuration steps for enabling MOTADATA_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 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

Configure the flow monitor:

flow monitor MOTADATA_NETFLOWmonitor
record MOTADATA_NETFLOWrecord
exporter MOTADATA_NETFLOWexporter

Create the sampler:

sampler MOTADATA_NETFLOWsampler
mode 1 out-of 100

Apply the flow monitor to all interfaces:

ip flow monitor MOTADATA_NETFLOWmonitor input sampler MOTADATA_NETFLOWsampler

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