Specifications
IP Switching Commands
ip cef accounting
ISW-36
Cisco IOS IP Switching Command Reference
May 2008
ip cef accounting
To enable Cisco Express Forwarding (CEF) network accounting, use the ip cef accounting command in
global configuration mode or interface configuration mode. To disable network accounting of CEF, use
the no form of this command.
ip cef accounting {[non-recursive] [per-prefix] [prefix-length]}
no ip cef accounting {[non-recursive] [per-prefix] [prefix-length]}
Specific CEF Accounting Information Through Interface Configuration Mode
ip cef accounting non-recursive {external | internal}
no ip cef accounting non-recursive {external | internal}
Syntax Description
Defaults Accounting is disabled by default.
Command Modes Global configuration
Interface configuration
Command History
Usage Guidelines You might want to collect statistics to better understand CEF patterns in your network.
When you enable network accounting for CEF from global configuration mode, accounting information
is collected at the Route Processor (RP) when CEF mode is enabled and at the line cards when distributed
CEF (dCEF) mode is enabled. You can then display the collected accounting information using the show
ip cef privileged EXEC command.
non-recursive Enables accounting through nonrecursive prefixes.
This keyword is optional when used in global configuration mode.
per-prefix (Optional) Enables the collection of the number of packets and bytes
express forwarded to a destination (or prefix).
prefix-length (Optional) Enables accounting through prefix length.
external Counts input traffic in the nonrecursive external bin.
internal Counts input traffic in the nonrecursive internal bin.
Release Modification
11.2GS This command was introduced.
11.1CC Multiple platform support was added.
11.1CC The prefix-length keyword was added.
12.2(2)T The ip cef accounting non-recursive command in interface configuration
mode was added.