10-110 Class-Based Accounting ConfigurationWhen configuring class-based accounting, go to these sections for information you are interested in:z Class-Based Accounting Overviewz Configuring Class-Based Accountingz Displaying and Maintaining Traffic Accountingz Class-Based Accounting Configuration ExampleClass-Based Accounting OverviewClass-based accounting collects statistics on a per-traffic class basis. For example, you can define theaction to collect statistics for traffic sourced from a certain IP address. By analyzing the statistics, youcan determine whether there are anomalies and what action to take.Configuring Class-Based AccountingFollow these steps to configure class-based accounting:To do… Use the command… RemarksEnter system view system-view —Create a class and enterclass viewtraffic classifier tcl-name [ operator{ and | or } ] —Configure the match criteria if-match match-criteria —Exit class view quit —Create a behavior and enterbehavior view traffic behavior behavior-name RequiredConfigure the accountingaction accountingOptionalThe class-based accountingfunction on Switch 4210Gseries counts traffic in thenumber of packets.Exit behavior view quit —Create a policy and enterpolicy view qos policy policy-name —Associate the class with thetraffic behavior in the QoSpolicyclassifier tcl-name behaviorbehavior-name —Exit policy view quit —To an interface Applying the QoS policy to aninterface —To a VLAN Applying the QoS policy to a VLAN —Apply theQoSpolicyGlobally Applying the QoS policy globally —