QoS Configuration Commands List 305
[SW5500]interface gigabitethernet1/0/2
[SW5500-GigabitEthernet1/0/2] traffic-redirect inbound ip-group 2000
interface gigabitethernet1/0/1
traffic-statistic Syntax
traffic-statistic inbound { ip-group
acl-number
[ rule
rule
[
link-group
acl-number
rule
rule
] ] | link-group
acl-number
[ rule
rule
] }
undo traffic-statistic inbound { ip-group
acl-number
[ rule
rule
[
link-group
acl-number
rule
rule
] ] | link-group
acl-number
[ rule
rule
] }
View
System View
Parameter
inbound: Performs traffic statistic on the packets received by the interface.
ip-group
acl-number
: Activates IP ACLs, including basic and advanced ACLs.
acl-number
: Sequence number of ACL, ranging from 2000 to 3999.
link-group
acl-number
: Activates Layer 2 ACLs.
acl-number
: Sequence number
of ACL, ranging from 4000 to 4999.
rule
rule
: Specifies the subitem of an active ACL, ranging from 0 to 65534; if not
specified, all subitems of the ACL will be activated. If only an IP ACL or a Layer 2
ACL is activated, this parameter can be omitted. If both IP and Layer 2 ACLs are
activated at the same time, the
rule
parameter cannot be omitted.
Description
Use the traffic-statistic command to activate the ACL to recognize and
count the traffic (whose action is permit).
Use the undo traffic-statistic command to cancel the traffic statistics.
The statistics information of traffic-statistic command keeps track of the
number of times a packet is matched to the ACL. You can use the
display
traffic-statistic
command to display the statistics information.
Related command: display qos-interface traffic-statistic.
Example
Count the packets matching the ACL 2000 rules with action permit.
<SW5500>system-view
System View: return to User View with Ctrl+Z
[SW5500]interface gigabitethernet 1/0/1
[SW5500-GigabitEthernet1/0/1]traffic-statistic inbound ip-group 2000