3Com Router 3000 Ethernet Family
Configuration Guide
Chapter 6 IP Accounting Configuration
6.1 Introduction to IP Accounting
IP Accounting counts inbound and outbound IP packets on the router. These IP packets
include those sent and forwarded normally as well as those denied by the firewall.
The statistics of the IP Accounting provide information about source and destination IP
addresses, protocol number, packet sum, and byte sum. The statistics are sorted into
different tables for display depending on whether IP packets pass the firewall and
whether they match IP accounting rules.
Each IP accounting rule consists of an IP address and its mask. The rule list records
network segment addresses, which are the results of ANDing IP addresses with their
masks. An IP packet is sorted as follows:
If the source or destination IP address of the IP packet matches a network
segment address in the rule list, the packet is recorded in an interior hash table as
a valid packet (a packet not filtered out by the firewall) matching the rule.
Otherwise, the packet is recorded in an exterior hash table as a valid packet not
matching the rule.
If the packet is filtered out by the firewall configured on the interface when it
reaches a router, it is recorded in the firewall-denied hash table as an invalid
packet.
6.2 IP Accounting Configuration
To configure IP accounting, first enable it, and then specify one or more types of
packets to be counted on an interface. After that, the router can start counting IP
packets.
6.2.1 Preparations for IP Accounting Configurations
You have assigned an IP address and mask to the interface, on which packets are to be
counted. In addition, a firewall is configured on the interface.
6.2.2 IP Accounting Configuration Tasks
The following sections describe IP accounting configuration tasks:
Table 6-1 IP accounting configuration tasks
Operation
Enter system view
Command
system-view
3Com Corporation
6-1
Chapter 6 IP Accounting Configuration
Remarks
––