1-27Configuration procedure: system-view[Sysname] interface Ethernet1/0/1[Sysname-Ethernet1/0/1] wred 2 64 20Configuring Traffic AccountingRefer to section Flow-based Traffic Accounting for information about traffic accounting.Configuration prerequisitesz The ACL rules for traffic classification have been defined. Refer to the ACL module ofthis manual for information about defining ACL rules.z The port that needs this configuration has been determined.Configuration procedureFollow these steps to configure traffic accounting:To do… Use the command… RemarksEnter system view system-view —Enter Ethernet port view interface interface-typeinterface-number —Configure trafficaccountingtraffic-statistic inboundacl-ruleRequiredBy default, trafficaccounting is disabled.Clear the traffic statistics reset traffic-statisticinbound acl-rule RequiredConfiguration examplez Ethernet 1/0/1 is connected to the 10.1.1.0/24 network segment.z Perform traffic accounting on the packets sourced from the 10.1.1.0/24 networksegment.z Clear the traffic statistics.Configuration procedure: system-view[Sysname] acl number 2000[Sysname-acl-basic-2000] rule permit source 10.1.1.0 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 2000