<< Previous Contents Index Next >>

5.5. Cisco ip accounting

Collecting data from a Cisco router's inbuilt IP accounting involves connecting to the router's Telnet port, logging in and reading and clearing the IP accounting database. The IP accounting database provides flow information consisting of source IP address, destination IP address, packets and bytes. There is no support for protocol, port or type of service, and flows are not timestamped beyond the knowledge that the data relates to the period between retrievals.

5.5.1. Setting up ip accounting on a Cisco router

To enable accounting on each interface of the router (accounting data is collected on the outgoing port, so to count all traffic, all ports must have IP accounting enabled). To enable IP accounting on a port, each interface configuration must include an ip accounting configuration line, e.g.

Note that the ip accounting-threshold entries global configuration line may also be required if the router is likely to have a large number of discrete flows (in this case source-destination pairs; Cisco IP accounting does not provide protocol data). entries should be the maximum likely number of discrete flows in a sample period.

5.5.2. Configuring ip accounting collection

The collect cisco statement enables collection from a Cisco router's IP accounting database. The router address, login password and enable password (specified by the router address, router password and router enable statements) must be provided. See the section Router login parameters for information on these statements.

An example of a Cisco ip accounting configuration is:


<< Previous Contents Index Next >>