IP Count Configuration 367

Configuring IP Count on an interface can enable packet accounting on the interface. You can configure to make statistics on the packets input or output on the interface, as well as packets denied by firewall.

Perform the following configuration in interface view.

Table 400 Configure IP Count on an interface

Operation

Command

 

 

Set IP Count to make statistics on the input

ip count inbound-packets

packets on the current interface

 

 

 

Disable IP Count to make statistics on the input

undo ip count inbound-packets

packets on the current interface

 

 

 

Set IP Count to make statistics on the output

ip count outbound-packets

packets on the current interface

 

 

 

Disable IP Count to make statistics on the

undo ip count outbound-packets

output packets on the current interface

 

 

 

Set IP Count to make statistics on the packets

ip count firewall-denied [

denied by the firewall on the current interface

inbound-packets

 

outbound-packets ]

 

 

Disable IP Count to make statistics on the

undo ip count firewall-denied [

packets denied by the firewall on the current

inbound-packets

interface

outbound-packets ]

 

 

 

By default, IP Count is not enabled on interfaces.

3 Configure IP Count List

IP Count list is configured for the purpose of classifying the statistics made by IP Count. That is, if IP Count lists have been configured, IP Count service will determine whether an input or output packet matches any IP Count list before making statistics on it. If a match has found, the statistics about the packet will be retained in Interior-List. If not, it will be kept in Exterior-List.

Perform the following configuration in system view.

Table 401 Configure IP Count list

Operation

Command

 

 

Configure an IP Count list

ip count table ip-address mask

 

 

 

Delete the IP Count list

undo

ip count table [ ip-address

 

mask

]

 

 

 

By default, IP Count statistics rules are not configured.

4 Configure Upper Threshold of Exterior-List Accounting Entries

The following command is used for specifying count maximum of exterior, that is, the max entries number of the packets incompliant with the IP Count lists.

Perform the following configuration in system view.

Table 402 Specify count maximum of exterior

Operation

Command

 

 

Specify count maximum of exterior

ip count exterior-threshold

 

number

 

 

Restore the default count maximum of exterior

undo ip count

 

exterior-threshold

 

 

Page 371
Image 371
3Com 10014299 manual Configure IP Count on an interface, Configure IP Count list, Specify count maximum of exterior