HP 6125XLG R2306-HP 6125XLG Blade Switch ACL and QoS Command Reference - Page 45

traffic classifier, Traffic behavior commands, accounting

Page 45 highlights

# Define a match criterion for traffic class class1 to match packets of the protocols in protocol group normal. system-view [Sysname] traffic classifier class1 [Sysname-classifier-class1] if-match control-plane protocol-group normal traffic classifier Use traffic classifier to create a traffic class and enter traffic class view. Use undo traffic classifier to delete a traffic class. Syntax traffic classifier classifier-name [ operator { and | or } ] undo traffic classifier classifier-name Default No traffic class exists. Views System view Predefined user roles network-admin Parameters classifier-name: Specifies a traffic class name, a case-sensitive string of 1 to 31 characters. operator: Sets the operator to logic AND (the default) or OR for the traffic class. and: Specifies the logic AND operator. The traffic class matches the packets that match all its criteria. or: Specifies the logic OR operator. The traffic class matches the packets that match any of its criteria. Examples # Create a traffic class class1. system-view [Sysname] traffic classifier class1 [Sysname-classifier-class1] Related commands display traffic classifier Traffic behavior commands accounting Use accounting to configure the traffic accounting action in a traffic behavior. Use undo accounting to delete the traffic accounting action from a traffic behavior. 40

  • 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
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114

40
# Define a match criterion for traffic class
class1
to match packets of the protocols in protocol group
normal
.
<Sysname> system-view
[Sysname] traffic classifier class1
[Sysname-classifier-class1] if-match control-plane protocol-group normal
traffic classifier
Use
traffic classifier
to create a traffic class and enter traffic class view.
Use
undo traffic classifier
to delete a traffic class.
Syntax
traffic classifier
classifier-name
[
operator
{
and
|
or
} ]
undo traffic classifier
classifier-name
Default
No traffic class exists.
Views
System view
Predefined user roles
network-admin
Parameters
classifier-name
: Specifies a traffic class name, a case-sensitive string of 1 to 31 characters.
operator
: Sets the operator to logic AND (the default) or OR for the traffic class.
and
: Specifies the logic AND operator. The traffic class matches the packets that match all its criteria.
or
: Specifies the logic OR operator. The traffic class matches the packets that match any of its criteria.
Examples
# Create a traffic class
class1
.
<Sysname> system-view
[Sysname] traffic classifier class1
[Sysname-classifier-class1]
Related commands
display traffic classifier
Traffic behavior commands
accounting
Use
accounting
to configure the traffic accounting action in a traffic behavior.
Use
undo accounting
to delete the traffic accounting action from a traffic behavior.