Class-based accounting configuration, Class-based accounting overview, Configuring class-based accounting – H3C Technologies H3C S10500 Series Switches User Manual
Page 79
71
Class-based accounting configuration
Class-based accounting overview
Class-based accounting collects statistics (in packets or bytes) on a per-traffic class basis. For example,
you can define the action to collect statistics for traffic sourced from a certain IP address. By analyzing
the statistics, you can determine whether anomalies have occurred and what action to take.
Configuring class-based accounting
Follow these steps to configure class-based accounting:
To do…
Use the command…
Remarks
Enter system view
system-view —
Create a class and enter class
view
traffic classifier tcl-name [ operator { and
| or } ]
—
Configure match criteria
if-match match-criteria
—
Return to system view
quit
—
Create a behavior and enter
behavior view
traffic behavior behavior-name Required
Configure the accounting
action
accounting { byte | packet }
Optional
•
byte: Counts traffic in bytes.
•
packet: Counts traffic in
packets.
Only the packet keyword of this
command is available on the
SC, SA, and EA cards.
Return to system view
quit
—
Create a policy and enter
policy view
qos policy policy-name
—
Associate the class with the
traffic behavior in the QoS
policy
classifier tcl-name behavior
behavior-name
—
Return to system view
quit
—
To an interface
Applying the QoS policy to an interface
—
To a VLAN
Applying the QoS policy to a VLAN
—
Globally
Applying the QoS policy globally
—
Apply the
QoS
policy
To the control
plane
Applying the QoS policy to the control
plane
—