HP 6125G HP 6125G & 6125G/XG Blade Switches ACL and QoS Command Refere - Page 46

traffic classifier

Page 46 highlights

# Define a match criterion for class class1 to match the packets with their IP precedence values being 1 or 6. system-view [Sysname] traffic classifier class1 operator or [Sysname-classifier-class1] if-match ip-precedence 1 [Sysname-classifier-class1] if-match ip-precedence 6 # Define a match criterion for class class1 to match the packets of a customer network VLAN of 1, 6, or 9. system-view [Sysname] traffic classifier class1 operator or [Sysname-classifier-class1] if-match customer-vlan-id 1 6 9 # Define a match criterion for class class1 to match packets with the local QoS ID 3. system-view [Sysname] traffic classifier class1 [Sysname-classifier-class1] if-match qos-local-id 3 traffic classifier Syntax traffic classifier tcl-name [ operator { and | or } ] View undo traffic classifier tcl-name System view Default level 2: System level Parameters tcl-name: Specifies a class name, a string of 1 to 31 characters. operator: Sets the operator to logic AND or OR for the class. and: Specifies the logic AND operator. The class matches the packets that match all its criteria. or: Specifies the logic OR operator. The class matches the packets that match any of its criteria. Description Use traffic classifier to create a class and enter class view. Use undo traffic classifier to delete a class. If no match operator is specified, the default AND operator applies. Related commands: qos policy, qos apply policy, and classifier behavior. Examples # Create a class class1. system-view [Sysname] traffic classifier class1 [Sysname-classifier-class1] 41

  • 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

41
# Define a match criterion for class
class1
to match the packets with their IP precedence values being 1
or 6.
<Sysname> system-view
[Sysname] traffic classifier class1 operator or
[Sysname-classifier-class1] if-match ip-precedence 1
[Sysname-classifier-class1] if-match ip-precedence 6
# Define a match criterion for class
class1
to match the packets of a customer network VLAN of 1, 6, or
9.
<Sysname> system-view
[Sysname] traffic classifier class1 operator or
[Sysname-classifier-class1] if-match customer-vlan-id 1 6 9
# Define a match criterion for class
class1
to match packets with the local QoS ID 3.
<Sysname> system-view
[Sysname] traffic classifier class1
[Sysname-classifier-class1] if-match qos-local-id 3
traffic classifier
Syntax
traffic classifier
tcl-name
[
operator
{
and
|
or
} ]
undo traffic classifier
tcl-name
View
System view
Default level
2: System level
Parameters
tcl-name
: Specifies a class name, a string of 1 to 31 characters.
operator
: Sets the operator to logic AND or OR for the class.
and
: Specifies the logic AND operator. The class matches the packets that match all its criteria.
or
: Specifies the logic OR operator. The class matches the packets that match any of its criteria.
Description
Use
traffic classifier
to create a class and enter class view.
Use
undo traffic classifier
to delete a class.
If no match operator is specified, the default AND operator applies.
Related commands:
qos
policy
,
qos apply policy
, and
classifier behavior
.
Examples
# Create a class
class1
.
<Sysname> system-view
[Sysname] traffic classifier class1
[Sysname-classifier-class1]