A SERVICE OF

logo

1-28
To do… Use the command… Remarks
Collect the statistics on the
packets matching specific ACL
rules
traffic-statistic vlan vlan-id
inbound acl-rule
Required
Clear the statistics on the packets
matching specific ACL rules
reset traffic-statistic vlan vlan-id
inbound acl-rule
Optional
Follow these steps to collect traffic statistics on packets that are of a port group and match specific ACL
rules:
To do… Use the command… Remarks
Enter system view
system-view
Enter port group view
port-group group-id
Collect the statistics on the
packets matching specific ACL
rules
traffic-statistic inbound acl-rule
Required
Clear the statistics on the packets
matching specific ACL rules
reset traffic-statistic inbound
acl-rule
Optional
Follow these steps to collect traffic statistics on packets passing a port and matching specific ACL rules:
To do… Use the command… Remarks
Enter system view
system-view
Enter Ethernet port view
interface interface-type
interface-number
Collect the statistics on the
packets matching specific
ACL rules
traffic-statistic inbound acl-rule
Required
Clear the statistics on the
packets matching specific
ACL rules
reset traffic-statistic inbound acl-rule
Optional
As the priority of traffic classification rules is higher than that of the default rules used for processing
protocol packets, collecting traffic statistics on all the packets or packets of a VLAN may affect device
management that is implemented through Telnet and so on
Configuration example
z GigabitEthernet 1/0/1 is connected to the 10.1.1.0/24 network segment.
z Collect statistics on the packets sourced from the 10.1.1.0/24 network segment.
z Clear the statistics.
1) Method I
<device> system-view