Skip to main content

Cisco Catalyst 4948E Ethernet Switch(MOTADATA_NETFLOW Lite) Configuration

This document outlines the configuration steps for setting up MOTADATA_NETFLOW Lite on the Cisco Catalyst 4948E Ethernet Switch. You will perform the configuration in global configuration mode and apply it to the desired interfaces.

Enter global configuration mode:

config t

Define the flow record:

flow record NfliteRecord
collect counter bytes long
collect counter packets long
collect flow sampler
collect interface input
collect timestamp sys-uptime first
collect timestamp sys-uptime last
collect transport tcp flags ack
collect transport tcp flags fin
collect transport tcp flags rst
match ipv4 protocol
match ipv4 destination address
match ipv4 source address
match ipv4 tos
match transport destination-port
match transport source-port

Define the flow exporter:

flow exporter NfliteExporter
destination {MOTADATA_NETFLOW_SERVER_IP}
export-protocol MOTADATA_NETFLOW-v9
option interface-table
option exporter-stats
option sampler-table
source loopback {LOOPBACK_INTERFACE_NAME}
template data timeout 60
transport udp {MOTADATA_NETFLOW_SERVER_LISTENER_PORT}

Create the flow monitor:

flow monitor NfliteMonitor
record NfliteRecord
exporter NfliteExporter
cache timeout active 60
cache timeout inactive 15
cache type normal
statistics packet protocol

Define the sampler:

sampler NfliteSampler
mode random 1 out-of 32

For each interface where you want to enable flow, enter the following commands:

interface {INTERFACE_NAME}
ip flow monitor NfliteMonitor sampler NfliteSampler input
exit

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