R2511-HP MSR Router Series Network Management and Monitoring Command Reference(V5)

137
Usage guidelines
An IP accounting rule matches packets from and to the specified subnet.
IP packets are sorted as follows:
If incoming and outgoing IP packets are denied by the firewall configured on an interface, the
packet information is stored in the firewall-denied table.
If the source or destination IP address of the IP packets passing the interface (in this case, a firewall
might be configured or not) matches the subnet in an IP accounting rule, the packet information is
stored in the interior table. Otherwise, the packet information is stored in the exterior table.
You can configure up to 32 rules.
If no rule is configured, all packet information is stored in the exterior table.
Examples
# Create an IP accounting rule.
<Sysname> system-view
[Sysname] ip count rule 169.254.10.1 255.255.0.0
ip count timeout
Use ip count timeout to configure the timeout time for flow entries in the IP accounting table.
Use undo ip count timeout to restore the default.
Syntax
ip count timeout minutes
undo ip count timeout
Default
The timeout time for flow entries is 720 minutes.
Views
System view
Default Level
2: System level
Parameters
minutes: Specifies the timeout time for flow entries in minutes. The value range is 60 to 10080.
Usage guidelines
If a flow entry is not updated before the timeout timer expires, IP accounting deletes the entry.
Examples
# Set the timeout time for flow entries to 100 minutes.
<Sysname> system-view
[Sysname] ip count timeout 100
reset ip count
Use reset ip count to clear all IP accounting statistics.