Skip to main content

Cisco 4331 Integrated Services Router Configuration

This document provides configuration steps for setting up Motadata NetFlow on Cisco 4331 Integrated Services Routers.

Define flow records for incoming traffic:

flow record MFErecordIN
match ipv4 protocol
match ipv4 source address
match ipv4 destination address
match transport source-port
match transport destination-port
match application name
match interface input
collect ipv4 source mask
collect ipv4 destination prefix
collect ipv4 destination mask
collect counter bytes long
collect counter packets long
collect timestamp sys-uptime first
collect timestamp sys-uptime last

Define flow records for outgoing traffic:

flow record MFErecordOUT
match ipv4 protocol
match ipv4 source address
match ipv4 destination address
match transport source-port
match transport destination-port
match application name
match interface output
collect ipv4 source mask
collect ipv4 destination prefix
collect ipv4 destination mask
collect counter bytes long
collect counter packets long
collect timestamp sys-uptime first
collect timestamp sys-uptime last

Configure the flow exporter:

flow exporter MFEexporter
destination MOTADATA_NETFLOW-server-ip
source interface-ip(layer3)
transport udp 2055
template data timeout 60
option interface-table timeout 60
option application-table timeout 60

Configure the flow monitors for incoming and outgoing traffic:

flow monitor MFEmonitorIN
exporter MFEexporter
cache timeout active 60
record MFErecordIN
flow monitor MFEmonitorOUT
exporter MFEexporter
cache timeout active 60
record MFErecordOUT

Apply the flow monitors to the desired interfaces:

ip flow monitor MFEmonitorIN input
ip flow monitor MFEmonitorOUT output

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