Skip to main content

Configuring Cisco 29xx and 49xx Series Switches

Using Motadata NetFlow technology, you can efficiently monitor bandwidth usage for capacity planning and resource allocation. NetFlow-Lite, a lightweight packet-based sampling technology, enables the monitoring of switching traffic in widely-used Cisco switches such as the Catalyst 2960-X and 4948E.

Features of NetFlow-Lite

  • Supports only ingress monitoring.
  • Includes new fields like MAC addresses and option templates, expected in future releases.
  • Mandatory sampling with two algorithms: deterministic and random sampling.

Configuration Steps

Creating a Flow Record in Switch Config Mode

Enter the flow record configuration:

Switch(config)# flow record NfliteRecord

Collect necessary data:

Switch(config-flow-record)# collect counter bytes long
Switch(config-flow-record)# collect counter packets long
Switch(config-flow-record)# collect flow sampler
Switch(config-flow-record)# collect interface input
Switch(config-flow-record)# collect timestamp sys-uptime first
Switch(config-flow-record)# collect timestamp sys-uptime last
Switch(config-flow-record)# collect transport tcp flags ack
Switch(config-flow-record)# collect transport tcp flags fin
Switch(config-flow-record)# collect transport tcp flags rst
Switch(config-flow-record)# match datalink ethertype
Switch(config-flow-record)# match datalink mac source address input
Switch(config-flow-record)# match datalink mac destination address input
Switch(config-flow-record)# match ipv4 protocol
Switch(config-flow-record)# match ipv4 destination address
Switch(config-flow-record)# match ipv4 source address
Switch(config-flow-record)# match ipv4 tos
Switch(config-flow-record)# match ipv6 protocol // optional : for IPv6 only
Switch(config-flow-record)# match ipv6 destination address // optional : for IPv6 only
Switch(config-flow-record)# match ipv6 source address // optional : for IPv6 only
Switch(config-flow-record)# match ipv6 tos // optional : for IPv6 only
Switch(config-flow-record)# match transport destination-port
Switch(config-flow-record)# match transport source-port

Creating a Flow Exporter in Switch Config Mode

Enter the flow exporter configuration:

Switch(config)# flow exporter NfliteExporter

Specify exporter details:

Switch(config-flow-exporter)# destination x.x.x.x // AIOps server IP
Switch(config-flow-exporter)# export-protocol NetFlow-v9
Switch(config-flow-exporter)# option interface-table
Switch(config-flow-exporter)# option exporter-stats
Switch(config-flow-exporter)# option sampler-table
Switch(config-flow-exporter)# source loopback 0 // source interface can be any L3 interface
Switch(config-flow-exporter)# template data timeout 60
Switch(config-flow-exporter)# transport udp 2055

Creating a Flow Monitor in Switch Config Mode

Enter the flow monitor configuration:

Switch(config)# flow monitor NfliteMonitor

Associate record and exporter:

Switch(config-flow-monitor)# record NfliteRecord
Switch(config-flow-monitor)# exporter NfliteExporter
Switch(config-flow-monitor)# cache timeout active 60
Switch(config-flow-monitor)# cache timeout inactive 15
Switch(config-flow-monitor)# cache type normal
Switch(config-flow-monitor)# statistics packet protocol

Creating a Flow Sampler in Switch Config Mode

Enter the sampler configuration:

Switch(config)# sampler NfliteSampler

Specify sampling mode:

Switch(config-sampler)# mode random 1 out-of 32        // The range can be 32 to 1022

Applying Flow Monitor to an Interface in Interface Config Mode

Enter the interface configuration:

Switch(config)# interface gigabitethernet 0/0

Apply flow monitor and sampler:

Switch(config-if)# ip flow monitor NfliteMonitor sampler NfliteSampler input        //Repeat the above command on all interfaces as necessary.

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