Command Reference Guide
194 ● ip count rule 3Com Router 5000 Family and Router 6000 Family
Command Reference
ip count rule
Purpose Use the ip count rule command to configure IP accounting rules.
Use the undo ip count rule command to delete the specified or all IP
accounting rules.
Syntax ip count rule ip-address net-mask
undo ip count rule [ ip-address net-mask ]
Parameters ip-address
Interface IP address, in dotted decimal format. It
cannot be a loopback address.
net-mask
Subnet mask, in dotted decimal notation or using
mask length.
Default By default, no IP accounting rule is configured in the system.
Example Configure an IP accounting rule.
[3Com] ip count rule 169.254.10.1 255.255.0.0
Remove an IP accounting rule.
[3Com] undo ip count rule 169.254.10.1 16
Remove all IP accounting rules.
[3Com] undo ip count rule
View This command can be used in the following views:
■ System view
Description When counting packets, the IP Accounting follows these conventions:
■ If the source or destination IP address of an IP packet matches a network segment
address in the table, information about the packet is recorded in the interior hash
table as a legitimate packet (packet permitted by the firewall) matching the rule.
■ If neither of the addresses has a match, the packet is recorded in the exterior hash
table as a legitimate packet not matching the rule.
■ If the packet is denied by the firewall when it arrives at an interface, its
information is recorded in the firewall-denied hash table as illegitimate.
You may configure 32 rules at most.