Skip to main content

Cisco ASR9K Configuration

This document provides step-by-step instructions for configuring Motadata NetFlow on Cisco ASR9K routers using Exporter, Sampler, and Flow Monitor maps.

Configuration Steps

Enter the configuration mode for the Exporter Map.

router(config)# flow exporter-map MFEEM
router(config-MFEEM)# destination 192.168.1.1
router(config-MFEEM)# source gi0/0
router(config-MFEEM)# transport udp 2055
router(config-MFEEM)# version v9
router(config-MFEEM-ver)# template data timeout 60
router(config-MFEEM-ver)# options interface-table timeout 60
router(config-MFEEM-ver)# exit

Create the Sampler Map.

router(config)# sampler-map MFESM
router(config-MFESM)# random 1 out-of 65535
router(config)# exit

Create the Flow Monitor Map and associate the Exporter Map.

router(config)# flow monitor-map MFEMM
router(config-MFEMM)# record ipv4 //Configure the flow record map name for IPv4, IPv6, or MPLS.

** Use the ipv4-ipv6-fields keyword to collect IPv4 and IPv6 fields in an MPLS-aware MOTADATA_NETFLOW.

router(config-MFEMM)# exporter MFEEM //Use the name you used for Exporter Map here
router(config-MFEMM)# cache timeout active 60
router(config-MFEMM)# cache timeout inactive 15
router(config-MFEMM)# exit

Apply the Monitor Map and Sampler Map to all active interfaces.

router(config)# interface Gi0/0
router(config-if)# flow ipv4 monitor MFEMM sampler MFESM ingress
router(config-if)# exit

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