Introduction
This document describes the pre-configuration required in order to enable Flexible Netflow Functionality on the ASR903 router.
Note: Click here to understand more on working of Flexible Netflow.
Prerequisites
Requirements
Cisco recommends that you have knowledge of the Flexible Netflow feature configuration.
Components Used
This document is not restricted to specific software and hardware versions.
The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command.
Background Information
Flexible Netflow on ASR903 platform is supported starting from XE3.18.0 SP release. However, you get this error when you try to configure the feature:
Router_ASR903(config)#int BDI10
Router_ASR903(config-if)#ip flow monitor TEST_IPV4_MONITOR input
% Flow Monitor: Failed to add monitor to interface: Unsupported template
Router_ASR903(config-if)#int GigabitEthernet0/1/0
Router_ASR903(config-if)#ip flow monitor TEST_IPV4_MONITOR input
% Flow Monitor: Failed to add monitor to interface: Unsupported template
Router_ASR903#
Configure
You need to enable the metroaggrservices license on the ASR903 router. This is the configuration:
Router_ASR903#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router_ASR903(config)#license boot level metroaggrservices
Router_ASR903(config)#end
Router_ASR903#write
Building configuration...
[OK]
Router_ASR903#
A reload of the device is needed for the new license level to take effect. Once the device is reload, the license level can be verified from the output of show version.
Cisco IOS XE Software, Version 03.18.00.SP.156-2.SP-ext
Cisco IOS Software, ASR900 Software (PPC_LINUX_IOSD-UNIVERSALK9_NPE-M), Version 15.6(2)SP, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2016 by Cisco Systems, Inc.
Compiled Wed 27-Jul-16 08:13 by mcpre
Cisco IOS-XE software, Copyright (c) 2005-2016 by cisco Systems, Inc.
All rights reserved. Certain components of Cisco IOS-XE software are
licensed under the GNU General Public License ("GPL") Version 2.0. The
software code licensed under GPL Version 2.0 is free software that comes
with ABSOLUTELY NO WARRANTY. You can redistribute and/or modify such
GPL code under the terms of GPL Version 2.0. For more details, see the
documentation or "License Notice" file accompanying the IOS-XE software,
or the applicable URL provided on the flyer accompanying the IOS-XE
software.
ROM: IOS-XE ROMMON
Router_ASR903 uptime is 18 hours, 16 minutes
Uptime for this control processor is 18 hours, 18 minutes
System returned to ROM by reload at 08:02:20 UTC Fri Aug 12 2016
System restarted at 14:15:01 UTC Sun Aug 14 2016
System image file is "bootflash:Image/packages.conf"
Last reload reason: PowerOn
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance, contact and send an email to export@cisco.com.
License Level: metroaggrservices
License Type: Permanent
Next reload license Level: metroaggrservices
cisco ASR-903 (RSP2) processor (revision RSP2) with 912985K/6147K bytes of memory.
Processor board ID FOX1929P433
8 Gigabit Ethernet interfaces
1 Ten Gigabit Ethernet interface
32768K bytes of non-volatile configuration memory.
3670016K bytes of physical memory.
1328927K bytes of SD flash at bootflash:
Configuration register is 0x2102
Once the metroaggrservices license is in effect on the router, configure this template:
Router_ASR903#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router_ASR903(config)#sdm prefer video
Router_ASR903#end
Router_ASR903#write
Building configuration...
[OK]
Router_ASR903#
After the sdm template has been configured as mentioned, you will be able to configure Flexible Netflow feature and get it operational.
These are the sample configurations for the Flexible Netflow fetaure :
Router_ASR903
!
flow record TEST_IPV4_RECORD
match ipv4 source address
match ipv4 destination address
match ipv4 protocol
match transport source-port
match transport destination-port
collect counter packets
collect counter bytes
!
!
flow exporter TEST_EXPORTER
destination 192.168.100.1
source Loopback1
transport udp 9999
!
!
flow monitor TEST_IPV4_MONITOR
exporter TEST_EXPORTER
cache timeout inactive 20
cache timeout active 180
record TEST_IPV4_RECORD
!
interface GigabitEthernet0/1/0
ip address 10.10.10.2 255.255.255.0
ip flow monitor TEST_IPV4_MONITOR input
speed 1000
no negotiation auto
!
Verify
Use this section in order to confirm that your configuration works properly.
The operation of the Flexible Netflow feature can be verified using the information here
Troubleshoot
There is currently no specific troubleshooting information available for this configuration.