HP 6125G HP 6125G & 6125G/XG Blade Switches ACL and QoS Configuration - Page 71

Configuring class-based accounting, Configuration procedure

Page 71 highlights

Configuring class-based accounting 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. Configuration procedure To configure class-based accounting: Step Command Remarks 1. Enter system view. system-view N/A 2. Create a class and enter class view. traffic classifier tcl-name [ operator { and | or } ] N/A 3. Configure match criteria. if-match match-criteria N/A 4. Return to system view. 5. Create a behavior and enter behavior view. quit traffic behavior behavior-name 6. Configure the accounting action. accounting { byte | packet } 7. Return to system view. 8. Create a policy and enter policy view. 9. Associate the class with the traffic behavior in the QoS policy. 10. Return to system view. 11. Apply the QoS policy. quit qos policy policy-name classifier tcl-name behavior behavior-name quit • Applying the QoS policy to an interface • Applying the QoS policy to a VLAN • Applying the QoS policy globally N/A N/A • byte-Counts traffic in bytes. • packet-Counts traffic in packets. N/A N/A N/A N/A Choose one application destination as needed. Displaying and maintaining traffic accounting You can verify the configuration with the display qos policy global, display qos policy interface, or display qos vlan-policy command depending on the occasion where the QoS policy is applied. 65

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84

65
Configuring class-based accounting
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.
Configuration procedure
To configure class-based accounting:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Create a class and enter
class view.
traffic classifier
tcl-name
[
operator
{
and
|
or
} ]
N/A
3.
Configure match criteria.
if-match
match-criteria
N/A
4.
Return to system view.
quit
N/A
5.
Create a behavior and
enter behavior view.
traffic behavior
behavior-name
N/A
6.
Configure the accounting
action.
accounting
{
byte
|
packet
}
byte
—Counts traffic in
bytes.
packet
—Counts traffic in
packets.
7.
Return to system view.
quit
N/A
8.
Create a policy and enter
policy view.
qos policy
policy-name
N/A
9.
Associate the class with the
traffic behavior in the QoS
policy.
classifier
tcl-name
behavior
behavior-name
N/A
10.
Return to system view.
quit
N/A
11.
Apply the QoS policy.
Applying the QoS policy to an
interface
Applying the QoS policy to a VLAN
Applying the QoS policy globally
Choose one application
destination as needed.
Displaying and maintaining traffic accounting
You can verify the configuration with the
display qos policy global
,
display qos policy interface
, or
display qos vlan-policy
command depending on the occasion where the QoS policy is applied.