Configuring NetFlow on Cisco IOS XR Software A NetFlow flow is a unidirectional sequence of packets that arrive on a single interface ( subinterface), and have the same values f key fields. NetFlow is useful f the following: Accounting/Billing NetFlow data provides fine grained metering f highly flexible and detailed resource utilization accounting. Netwk Planning and Analysis NetFlow data provides key infmation f strategic netwk planning. Netwk Moniting NetFlow data enables near real-time netwk moniting capabilities. Feature Histy f Configuring NetFlow on Cisco IOS XR Software Release Modification Release 3.2 This feature was introduced on the Cisco CRS-1. Release 3.3.0 This feature was first suppted on the Cisco XR 12000 Series Router. NetFlow suppt f sub-interfaces was added on the CRS-1 platfm. Added infmation on using the bgp attribute-download command to enable the NetFlow BGP data expt function. The recd ipv4 command was introduced on the Cisco XR 12000 Series Router. Release 3.3.1 Suppt f Multiprotocol Label Switching (MPLS) aware NetFlow was introduced on the Cisco CRS-1. The mpls keywd was added to the flow command to suppt MPLS aware NetFlow. The mpls keywd was added to the recd command to suppt MPLS aware NetFlow. HC-367
Contents Configuring NetFlow on Cisco IOS XR Software Release 3.4.0 The following commands were moved to flow expter map configuration mode: destination dscp source transpt udp NetFlow was updated so that a single flow monit map suppts up to 8 expters. Release 3.4.1 The recd ipv4 command was introduced on the Cisco CRS-1. The recd mpls command was introduced on the Cisco CRS-1. Contents This chapter includes the following sections: Prerequisites f Configuring NetFlow, page 368 Restrictions f Configuring NetFlow, page 368 Infmation About Configuring NetFlow, page 369 How to Configure NetFlow on Cisco IOS XR Software, page 373 Configuration Examples f CRS-1 Series NetFlow, page 383 Additional References, page 384 RFCs, page 385 Prerequisites f Configuring NetFlow Befe configuring NetFlow, be sure that the following conditions are met: You must be in a user group associated with a task group that includes the proper task IDs f the NetFlow commands. Task IDs f commands are listed in Cisco IOS XR Interface and Hardware Component Command Reference. Restrictions f Configuring NetFlow Consider the following restrictions when configuring NetFlow in Cisco IOS XR software: Only a single collect exists in the flow expt map. You must configure a source interface. If you do not configure a source interface, the expter will remain in a disabled state. Cisco IOS XR software suppts expt fmat Version 9 only. You must configure a valid recd map name f every flow monit map. HC-368
Configuring NetFlow on Cisco IOS XR Software Infmation About Configuring NetFlow Tip We recommend that you do not use the management interface to expt NetFlow packets. Expting the management interface does not wk on the Cisco XR 12000 Series Router and is not efficient on the Cisco CRS-1 router. Infmation About Configuring NetFlow To implement NetFlow, you must understand the following concepts: NetFlow Overview, page 369 Monit Map Overview, page 369 Sampler Map Overview, page 370 Expter Map Overview, page 370 NetFlow Configuration Submodes, page 371 NetFlow Overview A flow is expted as part of a NetFlow expt User Datagram Protocol (UDP) datagram under the following circumstances: The flow has been inactive active f too long. The flow cache is getting full. One of the counters (packets and bytes) has wrapped. NetFlow expt UDP datagrams are sent to an external flow collect device that provides NetFlow expt data filtering and aggregation. The expt of data consists of expired flows and control infmation. The NetFlow infrastructure is based on the configuration and use of the following maps: Monit map Sampler map Expter map These maps are described in the sections that follow. Monit Map Overview A monit map contains name references to the flow recd map and flow expter map. Monit maps are applied to an interface. You can configure the following monit map attributes: Number of entries in the flow cache Type of cache (permanent nmal). Permanent caches do not have their entries removed from the cache unless they are explicitly cleared by the user Active flow timeout Inactive flow timeout Update timeout HC-369
Infmation About Configuring NetFlow Configuring NetFlow on Cisco IOS XR Software Default timeouts Recd type of packets sampled and collected. Note NetFlow suppts the sampling of IPv4 and MPLS packets. The recd type specifies the type of packets NetFlow samples as they pass through the router. Note The active flow and inactive flow timeouts are associated with a nmal cache type. The update timeout is associated with the permanent cache type. Sampler Map Overview The sampler map specifies the rate at which packets (one out of n packets) are sampled. On high bandwidth interfaces, applying NetFlow processing to every single packet can result in significant CPU utilization. Sampler map configuration is typically geared towards such high-speed interfaces. The flow recd packets are policed at the rate of 35,000 packets per second per direction on the Cisco CRS-1 router and 25,000 packets per second per direction on the Cisco XR 12000 Series Router. Expter Map Overview An expter map contains user netwk specification and transpt layer details f the NetFlow expt packet. The flow expter-map command allows you to configure collect and version attributes. You can configure the following collect infmation: Expt destination IP address DSCP value f expt packet Source interface UDP pt number (This is where the collect is listening f NetFlow packets.) Transpt protocol f expt packets Note In Cisco IOS XR software, UDP is the only suppted transpt protocol f expt packets. You can also configure the following expt version attributes: Template timeout Template data timeout Template options timeout Interface table timeout Sampler table timeout Note A single flow monit map can suppt up to eight expters. HC-370
Configuring NetFlow on Cisco IOS XR Software Infmation About Configuring NetFlow NetFlow Configuration Submodes In Cisco IOS XR, NetFlow map configuration takes place in map-specific submodes. Cisco IOS XR suppts the following NetFlow map configuration submodes: Flow Expter Map Configuration Submode, page 371 Flow Expter Map Version Configuration Submode, page 372 Flow Monit Map Configuration Submode, page 372 Sampler Map Configuration Submode, page 372 Tip Cisco IOS XR software allows you to issue most commands available in submodes as one single command string from global configuration mode. You can issue the recd ipv4 command from the flow monit map configuration submode, as shown in the following example: RP/0/RP0/CPU0:router(config)# flow monit-map fmm RP/0/RP0/CPU0:router(config-fmm)# recd ipv4 Alternatively, you can issue the same command from global configuration mode, as shown in the following example: RP/0/RP0/CPU0:router(config)# flow monit-map fmm recd ipv4 Flow Expter Map Configuration Submode When you issue the flow expter-map fem-name command in global configuration mode, the command-line interface (CLI) prompt changes to config-fem, indicating that you have entered the flow expter map configuration submode. In the following sample output, the question mark (?) online help function displays all the commands available under the flow expter map configuration submode: RP/0/RP0/CPU0:router(config)# flow expter-map fem RP/0/RP0/CPU0:router(config-fem)#? commit Commit the configuration changes to running describe Describe a command without taking real actions destination Expt destination configuration do Run an exec command dscp Specify DSCP value f expt packets exit Exit from this submode no Negate a command set its defaults root Exit to the global configuration mode show Show contents of configuration source Source interface transpt Specify the transpt protocol f expt packets version Specify expt version parameters RP/0/RP0/CP0:router(config-fem)# Note If you enter the version command, you enter the flow expter map version configuration submode. HC-371
Infmation About Configuring NetFlow Configuring NetFlow on Cisco IOS XR Software Note A single flow monit map can suppt up to eight expters. Flow Expter Map Version Configuration Submode When you issue the version v9 command in the flow expter map configuration submode, the CLI prompt changes to config-fem-ver, indicating that you have entered the flow expter map version configuration submode. In the following sample output, the question mark (?) online help function displays all the commands available under the flow expter map version configuration submode: RP/0/RP0/CPU0:router(config-fem)# version v9 RP/0/RP0/CPU0:router(config-fem-ver)#? commit Commit the configuration changes to running describe Describe a command without taking real actions do Run an exec command exit Exit from this submode no Negate a command set its defaults options Specify expt of options template show Show contents of configuration template Specify template expt parameters RP/0/RP0/CPU0:router(config-fem-ver)# Flow Monit Map Configuration Submode When you issue the flow monit-map map_name command in global configuration mode, the CLI prompt changes to config-fmm, indicating that you have entered the flow monit map configuration submode. In the following sample output, the question mark (?) online help function displays all the commands available under the flow monit map configuration submode: RP/0/RP0/CPU0:router(config)# flow monit-map fmm RP/0/RP0/CPU0:router(config-fmm)#? cache Specify flow cache attributes commit Commit the configuration changes to running describe Describe a command without taking real actions do Run an exec command exit Exit from this submode expter Specify flow expter map name no Negate a command set its defaults recd Specify a flow recd map name show Show contents of configuration RP/0/RP0/CP0:router(config-fmm)# Sampler Map Configuration Submode When you issue the sampler-map map_name command in global configuration mode, the CLI prompt changes to config-sm, indicating that you have entered the sampler map configuration submode. HC-372
Configuring NetFlow on Cisco IOS XR Software How to Configure NetFlow on Cisco IOS XR Software In the following sample output, the question mark (?) online help function displays all the commands available under the sampler map configuration submode: RP/0/RP0/CPU0:router(config)# sampler-map fmm RP/0/RP0/CPU0:router(config-sm)#? commit Commit the configuration changes to running describe Describe a command without taking real actions do Run an exec command exit Exit from this submode no Negate a command set its defaults random Use random mode f sampling packets show Show contents of configuration RP/0/RP0/CP0:router(config-sm)# Enabling the NetFlow BGP Data Expt Function Use the bgp attribute-download command to enable the NetFlow BGP data expt function. When attribute download is enabled, BGP downloads the attribute infmation f prefixes (community, extended community, and as-path) to the Routing Infmation Base (RIB) and Fwarding Infmation Base (FIB). This enables FIB to associate the prefixes with attributes and send the NetFlow statistics along with the associated attributes. How to Configure NetFlow on Cisco IOS XR Software The steps that follow provide a general overview of NetFlow configuration: Step 1 Step 2 Create and configure an expter map. Create and configure a monit map and a sampler map. Note The monit map must reference the expter map you created in Step 1. If you do not apply an expter-map to the monit-map, the flow recds are not expted, and aging is done accding to the cache parameters specified in the monit-map. Step 3 Apply the monit map and sampler map to an interface. These steps are described in detail in the following sections: Configuring an Expter Map, page 374 Configuring a Sampler Map, page 376 Configuring a Monit Map, page 378 Applying a Monit Map and a Sampler Map to an Interface, page 381 HC-373
How to Configure NetFlow on Cisco IOS XR Software Configuring NetFlow on Cisco IOS XR Software Configuring an Expter Map Configure an expter map and apply it to the monit map with the flow monit-map map_name expter map_name command. You can configure the expter map pri to configuring the monit map, you can configure the monit map first and then configure and apply an expter map later on. Note Cisco IOS XR software suppts the configuration of a single collect only in the expter map. The steps that follow describe how to create and configure an expter map. SUMMARY STEPS 1. configure 2. flow expter-map map_name 3. destination hostname IP_address 4. dscp dscp_value 5. source type instance 6. transpt udp pt 7. exit 8. version v9 9. options {interface-table sampler-table} [timeout seconds] 10. template [data options] timeout seconds 11. end commit 12. exit 13. exit 14. exit 15. show flow expter-map map_name DETAILED STEPS Step 1 Command Action configure Enters global configuration mode. Step 2 RP/0/RP0/CPU0:router# configure flow expter-map map_name RP/0/RP0/CPU0:router(config)# flow expter-map fem Creates an expter map, configures the expter map name, and enters flow expter map configuration mode. HC-374
Configuring NetFlow on Cisco IOS XR Software How to Configure NetFlow on Cisco IOS XR Software Step 3 Step 4 Step 5 Step 6 Step 7 Step 8 Step 9 Command Action destination hostname IP_address RP/0/RP0/CPU0:router(config-fem)# destination nnn.nnn.nnn.nnn dscp dscp_value RP/0/RP0/CPU0:router(config-fem)# dscp 55 source type instance RP/0/RP0/CPU0:router(config-fem)# source pos 0/1/0/1 transpt udp pt RP/0/RP0/CPU0:router(config-fem)# transpt udp 9991 exit RP/0/RP0/CPU0:router(config-fem)# exit version v9 RP/0/RP0/CPU0:router(config-fem-ver)# version v9 options {interface-table sampler-table} [timeout seconds] RP/0/RP0/CPU0:router(config-fem-ver)# options sampler-table timeout 2000 (Optional) Configures the expt destination f the flow expter map. The destination can be a hostname an IP address. (Optional) Specifies the differentiated services codepoint (DSCP) value f expt packets. Replace the dscp_value argument with a value in the range from 0 through 63. (Optional) Specifies a source interface, in the fmat type instance. F example: POS 0/1/0/1 (Optional) Specifies the destination pt f UDP packets. Replace pt with the destination UDP pt value, in the range from 1024 through 65535. Exits flow expter map configuration mode, and enters flow expter map configuration mode. (Optional) Enters flow expter map version configuration submode. (Optional) Configures the expt timeout value f the sampler table. Replace seconds with the expt timeout value, in the range from 1 through 604800 seconds. Default is 1800 seconds. Keep the following in mind when configuring the sampling rate with the options command: On the Cisco CRS-1, NetFlow suppts sampling at a rate of 35,000 packets per second per direction f each individual line card. On the Cisco XR 12000 Series Router, NetFlow suppts 50,0000 packets per second per direction f each individual line card if SNF is enabled in one direction (ingress egress). Note that this limit does not apply if SNF is enabled in both directions. If SNF is enabled in both directions, then NetFlow suppts 25,000 packets per second per direction f each individual line card. HC-375
How to Configure NetFlow on Cisco IOS XR Software Configuring NetFlow on Cisco IOS XR Software Step 10 Step 11 Step 12 Step 13 Step 14 Command Action template [data options] timeout seconds RP/0/RP0/CPU0:router(config-fem-ver)# template data timeout 10000 end commit RP/0/RP0/CPU0:router (config-fem-ver)# end RP/0/RP0/CPU0:router(config-fem-ver)# commit exit RP/0/RP0/CPU0:router(config-fem-ver)# exit exit RP/0/RP0/CPU0:router(config-fem)# exit exit (Optional) Configures the expt period f data packets. Replace seconds with the expt timeout value, in the range from 1 through 604800 seconds. Saves configuration changes. When you issue the end command, the system prompts you to commit changes: Uncommitted changes found, commit them befe exiting(yes/no/cancel)? [cancel]: Entering yes saves configuration changes to the running configuration file, exits the configuration session, and returns the router to EXEC mode. Entering no exits the configuration session and returns the router to EXEC mode without committing the configuration changes. Entering cancel leaves the router in the current configuration session without exiting committing the configuration changes. Use the commit command to save the configuration changes to the running configuration file and remain within the configuration session. Exits flow expter map version configuration mode, and enters flow expter map configuration mode. Exits flow expter map configuration mode, and enters global configuration mode. Exits global configuration mode, and enters EXEC mode. Step 15 RP/0/RP0/CPU0:router(config)# exit show flow expter-map map_name Displays expter map data. RP/0/RP0/CPU0:router# show flow expter-map fem Configuring a Sampler Map The steps that follow describe how to create and configure a sampler map. HC-376
Configuring NetFlow on Cisco IOS XR Software How to Configure NetFlow on Cisco IOS XR Software SUMMARY STEPS 1. configure 2. sampler-map map_name 3. random 1 out-of sampling_interval 4. end commit 5. exit 6. exit 7. show sampler-map map_name DETAILED STEPS Step 1 Command Action configure Enters global configuration mode. Step 2 Step 3 RP/0/RP0/CPU0:router# configure sampler-map map_name RP/0/RP0/CPU0:router(config)# sampler-map fsm RP/0/RP0/CPU0:router(config-sm)# random 1 out-of sampling_interval RP/0/RP0/CPU0:router(config-sm)# random 1 out-of 10 Creates a sampler map and enters sampler map configuration mode. Configures the sampling interval to use random mode f sampling packets. Replace the sampling_interval argument with a number, in the range from1 through 65535 units. HC-377
How to Configure NetFlow on Cisco IOS XR Software Configuring NetFlow on Cisco IOS XR Software Step 4 Step 5 Step 6 Command Action end commit RP/0/RP0/CPU0:router (config-sm)# end RP/0/RP0/CPU0:router (config-sm)# commit exit RP/0/RP0/CPU0:router(config-sm)# exit exit Saves configuration changes. When you issue the end command, the system prompts you to commit changes: Uncommitted changes found, commit them befe exiting(yes/no/cancel)? [cancel]: Entering yes saves configuration changes to the running configuration file, exits the configuration session, and returns the router to EXEC mode. Entering no exits the configuration session and returns the router to EXEC mode without committing the configuration changes. Entering cancel leaves the router in the current configuration session without exiting committing the configuration changes. Use the commit command to save the configuration changes to the running configuration file and remain within the configuration session. Exits sampler map configuration mode and enters global configuration mode. Exits global configuration mode and enters EXEC mode. Step 7 RP/0/RP0/CPU0:router(config)# exit show sampler-map map_name Displays sampler map data. RP/0/RP0/CPU0:router# show sampler-map fsm Configuring a Monit Map The steps that follow describe how to create and configure a monit map. Note The recd mpls command is suppted only on the Cisco CRS-1 router. SUMMARY STEPS 1. configure 2. flow monit-map map_name 3. recd ipv4 recd mpls [ipv4-fields labels number] HC-378
Configuring NetFlow on Cisco IOS XR Software How to Configure NetFlow on Cisco IOS XR Software 4. cache entries number 5. cache permanent 6. cache timeout {active inactive upate} timeout_value 7. expter map_name 8. end commit 9. exit 10. exit 11. show flow monit-map map_name DETAILED STEPS Step 1 Command Action configure Enters global configuration mode. Step 2 Step 3 Step 4 RP/0/RP0/CPU0:router# configure flow monit-map map_name RP/0/RP0/CPU0:router(config)# flow monit-map fmm RP/0/RP0/CPU0:router(config-fmm)# recd ipv4 recd mpls [ipv4-fields labels number] RP/0/RP0/CPU0:router(config-fmm)# recd ipv4 RP/0/RP0/CPU0:router(config-fmm)# recd mpls ipv4-fields cache entries number RP/0/RP0/CPU0:router(config-fmm)# cache entries 10000 Creates a monit map and configures a monit map name and enters flow monit map configuration submode. Configures the flow recd map name f IPv4 by using the recd ipv4 command. You can configure the flow recd map name f MPLS by using the recd mpls command. Use the ipv4-fields keywd to collect IPv4 fields in the MPLS-aware Netflow. Use the labels keywd and number argument to specify the number of labels that you want to aggregate. By default, MPLS-aware Netflow aggregates the top six labels of the MPLS label stack. The maximum value is 6. (Optional) Configures the number of entries in the flow cache. Replace the number argument with the number of flow entries allowed in the flow cache, in the range from 4096 through 1000000. The default number of cache entries is 65535. HC-379
How to Configure NetFlow on Cisco IOS XR Software Configuring NetFlow on Cisco IOS XR Software Step 5 Command Action cache permanent (Optional) Disables removal of entries from flow cache. Step 6 Step 7 Step 8 Step 9 RP/0/RP0/CPU0:router(config-fmm)# flow monit-map fmm cache permanent cache timeout {active timeout_value inactive timeout_value upate timeout_value} RP/0/RP0/CPU0:router(config-fmm)# cache timeout inactive 1000 expter map_name RP/0/RP0/CPU0:router(config-fmm)# expter fem end commit RP/0/RP0/CPU0:router(config-fmm)# end RP/0/RP0/CPU0:router(config-fmm)# commit exit (Optional) Configures the active, inactive, update flow cache timeout value. The default timeout value f the inactive flow cache is 15 seconds. The default timeout value f the active flow cache is 1800 seconds. The default timeout value f the update flow cache is 1800 seconds. Associates an expter map with a monit map. Note A single flow monit map can suppt up to eight expters. Saves configuration changes. When you issue the end command, the system prompts you to commit changes: Uncommitted changes found, commit them befe exiting(yes/no/cancel)? [cancel]: Entering yes saves configuration changes to the running configuration file, exits the configuration session, and returns the router to EXEC mode. Entering no exits the configuration session and returns the router to EXEC mode without committing the configuration changes. Entering cancel leaves the router in the current configuration session without exiting committing the configuration changes. Use the commit command to save the configuration changes to the running configuration file and remain within the configuration session. Exits flow monit map configuration submode. RP/0/RP0/CPU0:router(config-fmm)# exit HC-380
Configuring NetFlow on Cisco IOS XR Software How to Configure NetFlow on Cisco IOS XR Software Step 10 Command Action exit Exits global configuration mode. Step 11 RP/0/RP0/CPU0:router(config)# exit show flow monit-map map_name Displays flow monit map data. RP/0/RP0/CPU0:router# show flow monit-map fmm Applying a Monit Map and a Sampler Map to an Interface SUMMARY STEPS DETAILED STEPS The steps that follow describe how to apply a monit map and a sampler map to an interface. 1. configure 2. interface type number 3. flow [ipv4 mpls] monit monit_map sampler sampler_map {egress ingress} 4. end commit Step 1 Command Action configure Enters global configuration mode. Step 2 RP/0/RP0/CPU0:router# configure interface type number Enters interface configuration mode. RP/0/RP0/CPU0:router(config)# interface POS 0/0/0/0 RP/0/RP0/CPU0:router(config-if)# HC-381
How to Configure NetFlow on Cisco IOS XR Software Configuring NetFlow on Cisco IOS XR Software Step 3 Step 4 Command Action flow [ipv4 mpls] monit monit_map sampler sampler_map {egress ingress} RP/0/RP0/CPU0:router(config-if)# flow ipv4 monit fmm sampler fsm egress end commit RP/0/RP0/CPU0:router(config-if)# end RP/0/RP0/CPU0:router(config-if)# commit Associates a monit map and a sampler map with an interface. Enter ipv4 to enable IPV4 NetFlow on the specified interface. Enter mpls to enable MPLS aware NetFlow on the specified interface. Saves configuration changes. When you issue the end command, the system prompts you to commit changes: Uncommitted changes found, commit them befe exiting(yes/no/cancel)? [cancel]: Entering yes saves configuration changes to the running configuration file, exits the configuration session, and returns the router to EXEC mode. Entering no exits the configuration session and returns the router to EXEC mode without committing the configuration changes. Entering cancel leaves the router in the current configuration session without exiting committing the configuration changes. Use the commit command to save the configuration changes to the running configuration file and remain within the configuration session. Clearing NetFlow Data The steps that follow describe how to clear flow expter map and flow monit map data. SUMMARY STEPS 1. clear flow expter [map_name] {restart statistics} location node-id 2. clear flow monit [map_name] cache [fce-expt statistics] location node-id} HC-382
Configuring NetFlow on Cisco IOS XR Software Configuration Examples f CRS-1 Series NetFlow DETAILED STEPS Command Action Step 1 clear flow expter [expter_name] {restart statistics} location node-id Step 2 RP/0/RP0/CPU0:router# clear flow expter statistics location 0/0/CPU0 clear flow monit [monit_name] cache [fce-expt statistics] location node-id} RP/0/RP0/CPU0:router# clear flow monit cache fce-expt location 0/0/CPU0 Clears the flow expter data. Specify the statistics option to clear expter statistics. Specify the restart option to expt all of the templates that are currently configured on the specified node. Clears the flow monit data. Specify the statistics option to clear cache statistics. Specify the fce-expt option to fce an expt of deleted cache entries. Configuration Examples f CRS-1 Series NetFlow The following example shows how to create a new sampler map called fsm1, which samples 1 out of 1000 packets: RP/0/RP0/CPU0:router(config)# sampler-map fsm1 RP/0/RP0/CPU0:router(config-sm)# random 1 out-of 1000 RP/0/RP0/CPU0:router(config)# exit The following example shows how to create a new flow expter map called fem1, which uses the version 9 (V9) expt fmat f NetFlow expt packets. The data template flow-set is inserted into the V9 expt packets once every 10 minutes, and the options interface table flow-set is inserted into the V9 expt packet. The expt packets are sent to the flow collect destination 10.1.1.1, where the source address is identical to the interface IP address of Loopback 0. The UDP destination pt is 1024, and the DSCP value is 10. RP/0/RP0/CPU0:router(config)# flow expter-map fem1 RP/0/RP0/CPU0:router(config-fem)# destination 10.1.1.1 RP/0/RP0/CPU0:router(config-fem)# source Loopback 0 RP/0/RP0/CPU0:router(config-fem)# transpt udp 1024 RP/0/RP0/CPU0:router(config-fem)# dscp 10 RP/0/RP0/CPU0:router(config-fem)# exit RP/0/RP0/CPU0:router(config-fem)# version v9 RP/0/RP0/CPU0:router(config-fem-ver)# template data timeout 600 RP/0/RP0/CPU0:router(config-fem-ver)# options interface-table RP/0/RP0/CPU0:router(config-fem-ver)# exit The following example shows how to create a new flow monit map with name fmm1. This flow monit map references the flow expter map fem1, and sets the flow cache attributes to 10000 cache entries. The active entries from the cache are aged every 30 seconds, while the inactive entries from the cache are aged every 15 seconds. The recd map f this monit map is IPv4. RP/0/RP0/CPU0:router(config)# flow monit-map fmm1 RP/0/RP0/CPU0:router(config-fmm)# recd ipv4 RP/0/RP0/CPU0:router(config-fmm)# expter fem1 RP/0/RP0/CPU0:router(config-fmm)# cache entries 10000 RP/0/RP0/CPU0:router(config-fmm)# cache timeout active 15 RP/0/RP0/CPU0:router(config-fmm)# cache timeout inactive 30 HC-383
Additional References Configuring NetFlow on Cisco IOS XR Software RP/0/RP0/CPU0:router(config-fmm)# exit The following example shows how to apply the flow monit fmm1 and the sampler fsm1 to the TenGigE 0/0/0/0 interface in the ingress direction. RP/0/RP0/CPU0:router(config)# interface TenGigE 0/0/0/0 RP/0/RP0/CPU0:router(config-if)# flow ipv4 monit fmm1 sampler fsm1 ingress RP/0/RP0/CPU0:router(config-if)# exit Additional References The following sections provide references related to interface configuration. Related Documents Related Topic Cisco IOS XR master command reference Cisco IOS XR interface configuration commands Initial system bootup and configuration infmation f a router using Cisco IOS XR software. Infmation about user groups and task IDs Infmation about configuring interfaces and other components on the Cisco CRS-1 router from a remote Craft Wks Interface (CWI) client management application Document Title Cisco IOS XR Master Commands List Cisco IOS XR Interface and Hardware Component Command Reference Cisco IOS XR Getting Started Guide Cisco IOS XR Interface and Hardware Component Command Reference Cisco Craft Wks Interface User Guide Standards Standards No new modified standards are suppted by this feature, and suppt f existing standards has not been modified by this feature. Title HC-384
Configuring NetFlow on Cisco IOS XR Software RFCs MIBs MIBs MIBs Link To locate and download MIBs using Cisco IOS XR software, use the Cisco MIB Locat found at the following URL and choose a platfm under the Cisco Access Products menu: http://cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml RFCs RFCs No new modified RFCs are suppted by this feature, and suppt f existing RFCs has not been modified by this feature. Title Technical Assistance Description The Cisco Technical Suppt website contains thousands of pages of searchable technical content, including links to products, technologies, solutions, technical tips, and tools. Registered Cisco.com users can log in from this page to access even me content. Link http://www.cisco.com/techsuppt HC-385
RFCs Configuring NetFlow on Cisco IOS XR Software HC-386