3com MSR 20-20 참조 매뉴얼
775
Example
# Enable IP accounting.
<Sysname> system-view
[Sysname] ip count enable
ip count exterior-threshold
Syntax
ip count exterior-threshold number
undo ip count exterior-threshold
View
System view
Parameter
number: Maximum number of accounting entries in the exterior table, in the
range of 0 to 8,192.
range of 0 to 8,192.
Description
Use the ip count exterior-threshold command to configure the maximum
number of accounting entries in the exterior table.
number of accounting entries in the exterior table.
Use the undo ip count exterior-threshold command to restore the default.
When doing this, you are prompted to clear the table first if any accounting
entries already exist in the table.
When doing this, you are prompted to clear the table first if any accounting
entries already exist in the table.
By default, the maximum number of accounting entries in the exterior table is 0.
Rule-incompliant packets are not to be counted.
Rule-incompliant packets are not to be counted.
IP packets are sorted as follows:
■
If a firewall is configured on an interface and incoming and outgoing IP packets
are denied by the firewall, these IP packets are counted in the firewall-denied
table.
are denied by the firewall, these IP packets are counted in the firewall-denied
table.
■
If the source or destination IP address of the IP packets passing the interface (in
this case, a firewall may be configured or not) matches a network address in
the IP accounting rule, the packets are recorded in the interior table.
Otherwise, the packets are counted in the exterior table.
this case, a firewall may be configured or not) matches a network address in
the IP accounting rule, the packets are recorded in the interior table.
Otherwise, the packets are counted in the exterior table.
Example
# Set the maximum number of accounting entries in the exterior table to 100.
<Sysname> system-view
[Sysname] ip count exterior-threshold 100
ip count firewall-denied
Syntax
ip count firewall-denied { inbound-packets | outbound-packets }
undo ip count firewall-denied { inbound-packets | outbound-packets }
View
Interface view