![]() |
Table Of Contents
Supported Standards, MIBs, and RFCs
Enabling NetFlow on a Subinterface
Enabling NetFlow on an Interface
Verifying NetFlow Statistics on a Subinterface
Monitoring and Maintaining NetFlow Subinterfaces
Enabling NetFlow on a Subinterface Example
Enabling NetFlow on an Interface Example
NetFlow Subinterface Support
Feature History
Release Modification12.2(14)S
This feature was introduced.
12.2(15)T
This feature was integrated into Cisco IOS Release 12.2 T.
This document describes the NetFlow Subinterface Support feature and includes the following sections:
•
Supported Standards, MIBs, and RFCs
•
Monitoring and Maintaining NetFlow Subinterfaces
Feature Overview
The NetFlow Subinterface Support feature provides the ability to enable NetFlow on a per-subinterface basis. In a scenario in which your network contains thousands of subinterfaces and you want to collect export records from only a few subinterfaces, you can fine-tune your collection of data to only specified subinterfaces. The result is lower bandwidth requirements for NetFlow Data Export (NDE) and reduced platform requirements for NetFlow data-collection devices.
Using the NetFlow Subinterface Support feature, you can enable NetFlow on selected subinterfaces using the ip flow ingress command. If you configure the ip flow ingress command on a few selected subinterfaces and then configure the ip route-cache flow command on the main interface, enabling the main interface will overwrite the ip flow ingress command and data collection will start from the main interface as well as all the subinterfaces. In a scenario in which you configure the ip flow ingress command and then configure the ip route-cache flow command on the main interface, you can restore subinterface data collection by using the no ip route-cache flow command. This configuration will disable data collection from the main interface and restore data collection to the subinterfaces you originally configured with the ip flow ingress command.
What Is NetFlow?
NetFlow allows you to collect traffic flow statistics on your routing devices. NetFlow is based on identifying packet flows for ingress IP packets. It does not involve any connection-setup protocol either between routers or to any other networking device or end station and does not require any change externally—either to the traffic or packets themselves or to any other networking device. NetFlow is completely transparent to the existing network, including end stations and application software and network devices such as LAN switches. Also, NetFlow performs independently on each internetworking device; it need not be operational on each router in the network. Using NDE, you can export data to a remote workstation for data collection and further processing. Network planners can selectively invoke NDE on a router or on a per-subinterface basis to gain traffic performance, control, or accounting benefits in specific network locations.
Benefits
The NetFlow Subinterface Support feature provides the following benefits:
•
Reduced bandwidth requirement—NetFlow subinterface support reduces the bandwidth required between routing devices and NetFlow management workstations.
•
Reduced NetFlow workstation requirements—NetFlow subinterfaces support reduces the amount of flows sent to the workstation for processing.
Related Documents
•
Cisco IOS Command Reference Master Index, Release 12.2
•
Cisco IOS Switching Services Command Reference, Release 12.2
•
Cisco IOS Switching Services Configuration Guide, Release 12.2
•
NetFlow Minimum Prefix Mask for Router-Based Aggregation, Cisco IOS Release 12.1(2)T new feature document
•
NetFlow Performance Analysis white paper
•
NetFlow Services Solutions Guide
•
NetFlow ToS-Based Router Aggregation, Cisco IOS Release 12.1(4)T new feature document
•
Network Data Analyzer Installation and User Guide, Release 3.0
•
Release Notes for FlowCollector, Release 3.0
•
Release Notes for Network Data Analyzer, Release 3.0
•
Sampled NetFlow, Cisco IOS Release 12.0(11)S new feature document
Supported Platforms
•
Cisco 7200 series
•
Cisco 7400 series
•
Cisco 7500 series
Determining Platform Support Through Cisco Feature Navigator
Cisco IOS software is packaged in feature sets that are supported on specific platforms. To get updated information regarding platform support for this feature, access Cisco Feature Navigator. Cisco Feature Navigator dynamically updates the list of supported platforms as new platform support is added for the feature.
Cisco Feature Navigator is a web-based tool that enables you to determine which Cisco IOS software images support a specific set of features and which features are supported in a specific Cisco IOS image. You can search by feature or release. Under the release section, you can compare releases side by side to display both the features unique to each software release and the features in common.
To access Cisco Feature Navigator, you must have an account on Cisco.com. If you have forgotten or lost your account information, send a blank e-mail to cco-locksmith@cisco.com. An automatic check will verify that your e-mail address is registered with Cisco.com. If the check is successful, account details with a new random password will be e-mailed to you. Qualified users can establish an account on Cisco.com by following the directions found at this URL:
Cisco Feature Navigator is updated regularly when major Cisco IOS software releases and technology releases occur. For the most current information, go to the Cisco Feature Navigator home page at the following URL:
Availability of Cisco IOS Software Images
Platform support for particular Cisco IOS software releases is dependent on the availability of the software images for those platforms. Software images for some platforms may be deferred, delayed, or changed without prior notice. For updated information about platform support and availability of software images for each Cisco IOS software release, refer to the online release notes or, if supported, Cisco Feature Navigator.
Supported Standards, MIBs, and RFCs
Standards
None
MIBs
No new or modified MIBS are supported by this feature.
To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL:
http://tools.cisco.com/ITDIT/MIBS/servlet/index
If Cisco MIB Locator does not support the MIB information that you need, you can also obtain a list of supported MIBs and download MIBs from the Cisco MIBs page at the following URL:
http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml
To access Cisco MIB Locator, you must have an account on Cisco.com. If you have forgotten or lost your account information, send a blank e-mail to cco-locksmith@cisco.com. An automatic check will verify that your e-mail address is registered with Cisco.com. If the check is successful, account details with a new random password will be e-mailed to you. Qualified users can establish an account on Cisco.com by following the directions found at this URL:
RFCs
None
Prerequisites
We recommend you configure NetFlow on the main interface if you are already collecting data from the majority of its subinterfaces. If NetFlow is not configured on the main interface, NetFlow will perform additional checks for the status of each subinterface that will require more CPU processing time and bandwidth.
Configuration Tasks
See the following sections for the configuration tasks for the NetFlow Subinterface Support feature. Each task in the list is identified as either required or optional.
•
Enabling NetFlow on a Subinterface (required)
•
Enabling NetFlow on an Interface (optional)
•
Managing NetFlow Statistics (optional)
•
Verifying NetFlow Statistics on a Subinterface (optional)
Enabling NetFlow on a Subinterface
To enable NetFlow on a subinterface, use the following commands beginning in global configuration mode:
Enabling NetFlow on an Interface
To enable NetFlow on an interface, use the following commands beginning in global configuration mode:
Command PurposeStep 1
Router(config)# interface type/slot
Selects the interface on which to enable NetFlow.
Step 2
Router(config-if)# ip route-cache flow
Enables NetFlow on a main interface.
Managing NetFlow Statistics
You can display and clear NetFlow statistics. NetFlow statistics consist of IP packet size distribution, IP flow switching cache information, and flow information such as the protocol, total flow, flows per second, and so on. The resulting information can be used to determine information about your router traffic. To manage NetFlow statistics, use the following commands in privileged EXEC mode as needed:
Command PurposeRouter# show ip cache flow
Displays the NetFlow statistics.
Router# clear ip flow stats
Clears the NetFlow statistics.
Verifying NetFlow Statistics on a Subinterface
To display NetFlow statistics on a subinterface, use the following commands in global configuration mode:
Command PurposeRouter# show ip cache flow
Displays NetFlow statistics on an interface.
Router# show ip interface
Displays the usability status of interfaces configured for IP.
Monitoring and Maintaining NetFlow Subinterfaces
To view the configured NetFlow subinterface, use the following show commands in EXEC mode as needed:
Configuration Examples
This section provides the following configuration examples:
•
Enabling NetFlow on a Subinterface Example
•
Enabling NetFlow on an Interface Example
Enabling NetFlow on a Subinterface Example
The following configuration example shows how to configure NetFlow on Fast Ethernet subinterface 6/3.0:
Router(config)# interface FastEthernet6/3.0Router(config-subif)# ip flow ingressEnabling NetFlow on an Interface Example
Router(config)# interface 6/3
Router(config-if)# ip route-cache flow
Command Reference
This section documents new and modified commands. All other commands used with this feature are documented in the Cisco IOS Release 12.2 command reference publications.
ip flow ingress
To configure NetFlow on a subinterface, use the ip flow ingress command in subinterface configuration mode. To disable NetFlow on a subinterface, use the no form of this command.
ip flow ingress
no ip flow ingress
Syntax Description
This command has no arguments or keywords.
Defaults
This command is not configured by default.
Command Modes
Subinterface configuration
Command History
Release Modification12.2(14)S
This command was introduced.
12.2(15)T
This command was integrated into Cisco IOS Release 12.2 T.
Usage Guidelines
If you configure the ip flow ingress command on a few selected subinterfaces and then configure the ip route-cache flow command on the main interface, enabling the main interface will overwrite the ip flow ingress command and data collection will start from the main interface as well as all the subinterfaces. In a scenario in which you configure the ip flow ingress command and then configure the ip route-cache flow command on the main interface, you can restore subinterface data collection by using the no ip route-cache flow command. This configuration will disable data collection from the main interface and restore data collection to the subinterfaces you originally configured with the ip flow ingress command.
Examples
The following example shows how to configure NetFlow on a Fast Ethernet subinterface 6/3.0:
Router(config)# interface FastEthernet6/3.0Router(config-subif)# ip flow ingressRelated Commands
show ip interface
To display the usability status of interfaces configured for IP, use the show ip interface command in EXEC mode.
show ip interface [type number]
Syntax Description
Command Modes
EXEC
Command History
Usage Guidelines
The Cisco IOS software automatically enters a directly connected route in the routing table if the interface is usable. A usable interface is one through which the software can send and receive packets. If the software determines that an interface is not usable, it removes the directly connected routing entry from the routing table. Removing the entry allows the software to use dynamic routing protocols to determine backup routes to the network, if any.
If the interface can provide two-way communication, the line protocol is marked "up." If the interface hardware is usable, the interface is marked "up."
If you specify an optional interface type, you will see only information on that specific interface.
If you specify no optional arguments, you will see information on all the interfaces.
When an asynchronous interface is encapsulated with PPP or Serial Line Internet Protocol (SLIP), IP fast switching is enabled. A show ip interface command on an asynchronous interface encapsulated with PPP or SLIP displays a message indicating that IP fast switching is enabled.
Examples
The following is sample output from the show ip interface command:
Router# show ip interfaceEthernet0 is up, line protocol is upInternet address is 192.195.78.24, subnet mask is 255.255.255.240
Broadcast address is 255.255.255.255Address determined by non-volatile memoryMTU is 1500 bytesHelper address is not setSecondary address 131.192.115.2, subnet mask 255.255.255.0Directed broadcast forwarding is enabledMulticast groups joined: 224.0.0.1 224.0.0.2Outgoing access list is not setInbound access list is not setProxy ARP is enabledSecurity level is defaultSplit horizon is enabledICMP redirects are always sentICMP unreachables are always sentICMP mask replies are never sentIP fast switching is enabledIP fast switching on the same interface is disabledIP Flow switching is enabledIP CEF switching is enabledIP Subif flow switching turbo vectorIP multicast fast switching is enabledIP route-cache flags are Fast, Flow init, CEF, Ingress FlowIP SSE switching is disabledRouter Discovery is disabledIP output packet accounting is disabledIP access violation accounting is disabledTCP/IP header compression is disabledProbe proxy name replies are disabledWCCP Redirect outbound is enabledWCCP Redirect exclude is disabledTable 1 describes the significant fields shown in the display.
Glossary
flow—A series of packets that has the same source IP address, destination IP address, protocol, TOS byte, and source and destination ports if applicable.
NetFlow—A Cisco IOS acceleration and accounting feature for maintaining per-flow data.
subinterface—A logical network layer interface over a physical interface.