1-22Table 1-25 Generate traffic statistics on packets passing a port and matching specific ACL rulesOperation Command DescriptionEnter system view system-view —Enter Ethernet port view interface interface-typeinterface-number —Generate the statistics on the packetsmatching specific ACL rulestraffic-statistic inboundacl-rule RequiredClear the statistics on the packets matchingspecific ACL rulesreset traffic-statisticinbound acl-rule OptionalThe traffic accounting function configured on a VLAN is only applicable to packets tagged with 802.1Qheader.Configuration examplez Ethernet 1/0/1 is connected to the 10.1.1.0/24 network segment.z Generate statistics on the packets sourced from the 10.1.1.0/24 network segment.z Clear the statistics.1) Method I: configure traffic accounting for port Ethernet 1/0/1 system-view[Sysname] acl number 2000[Sysname-acl-basic-2000] rule permit source 10.1.1.1 0.0.0.255[Sysname-acl-basic-2000] quit[Sysname] interface Ethernet1/0/1[Sysname-Ethernet1/0/1] traffic-statistic inbound ip-group 2000[Sysname-Ethernet1/0/1] reset traffic-statistic inbound ip-group 20002) Method II: configure traffic accounting for VLAN 2 system-view[Sysname] acl number 2000[Sysname-acl-basic-2000] rule permit source 10.1.1.1 0.0.0.255[Sysname-acl-basic-2000] quit[Sysname] traffic-statistic vlan 2 inbound ip-group 2000[Sysname] reset traffic-statistic vlan 2 inbound ip-group 2000Enabling the Burst FunctionRefer to section Burst for information about the burst function.Configuration prerequisitesThe burst function is required.