You might want to collect statistics to better understand CEF patterns in your network. For example, you might want to collect information such as the number of packets and bytes switched to a destination or the number of packets switched through a destination.
You can configure network accounting for CEF by performing these optional tasks:
Enabling Network Accounting for CEF
Viewing Network Accounting Information
To collect network accounting information for CEF, use the following commands in global configuration mode:
Command | Purpose |
---|---|
ip cef accounting per-prefix | Enables the collection of the number of packets and bytes express forwarded to a destination (or prefix). |
ip cef accounting non-recursive | Enables the collection of the number of packets express forwarded through a destination. |
When you enable network accounting for CEF from global configuration mode, accounting information is collected at the route processor when CEF mode is enabled. When network accounting is enabled for dCEF, information is collected at the line cards.
You can view the collected accounting information. To do so, use the following command in EXEC mode:
Command | Purpose |
---|---|
show ip cef | Displays the collected accounting information. |
18.222.210.166