HP 6125XLG R2306-HP 6125XLG Blade Switch ACL and QoS Configuration Guide - Page 63

Configuring traffic filtering, Configuration procedure

Page 63 highlights

Configuring traffic filtering You can filter in or filter out traffic of a class by associating the class with a traffic filtering action. For example, you can filter packets sourced from a specific IP address according to network status. Configuration procedure To configure traffic filtering: Step 1. Enter system view. 2. Create a traffic class and enter traffic class view. Command Remarks system-view N/A traffic classifier classifier-name [ operator By default, no traffic class is { and | or } ] configured. 3. Configure match criteria. if-match match-criteria By default, no match criterion is configured. 4. Return to system view. 5. Create a traffic behavior and enter traffic behavior view. quit traffic behavior behavior-name 6. Configure the traffic filtering action. filter { deny | permit } 7. Return to system view. quit 8. Create a QoS policy and enter QoS policy view. qos policy policy-name 9. Associate the traffic class with the traffic behavior in classifier classifier-name behavior the QoS policy. behavior-name 10. Return to system view. 11. Apply the QoS policy. 12. (Optional.) Display the traffic filtering configuration. quit • Applying the QoS policy to an interface • Applying the QoS policy to a VLAN • Applying the QoS policy globally display traffic behavior user-defined [ behavior-name ] N/A By default, no traffic behavior is configured. By default, no traffic filtering action is configured. If a traffic behavior has the filter deny action, all the other actions except for class-based accounting in the traffic behavior do not take effect. N/A By default, no QoS policy is configured. By default, a traffic class is not associated with a traffic behavior. N/A Choose one of the application destinations as needed. By default, a QoS policy is not applied. Available in any view. 57

  • 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

57
Configuring traffic filtering
You can filter in or filter out traffic of a class by associating the class with a traffic filtering action. For
example, you can filter packets sourced from a specific IP address according to network status.
Configuration procedure
To configure traffic filtering:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Create a traffic class and
enter traffic class view.
traffic classifier
classifier-name
[
operator
{
and
|
or
} ]
By default, no traffic class is
configured.
3.
Configure match criteria.
if-match
match-criteria
By default, no match criterion
is configured.
4.
Return to system view.
quit
N/A
5.
Create a traffic behavior
and enter traffic behavior
view.
traffic behavior
behavior-name
By default, no traffic behavior
is configured.
6.
Configure the traffic
filtering action.
filter
{
deny
|
permit
}
By default, no traffic filtering
action is configured.
If a traffic behavior has the
filter deny
action, all the other
actions except for class-based
accounting in the traffic
behavior do not take effect.
7.
Return to system view.
quit
N/A
8.
Create a QoS policy and
enter QoS policy view.
qos policy
policy-name
By default, no QoS policy is
configured.
9.
Associate the traffic class
with the traffic behavior in
the QoS policy.
classifier
classifier-name
behavior
behavior-name
By default, a traffic class is not
associated with a traffic
behavior.
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 of the application
destinations as needed.
By default, a QoS policy is not
applied.
12.
(Optional.) Display the
traffic filtering
configuration.
display traffic behavior user-defined
[
behavior-name
]
Available in any view.