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

Create a QoS policy, Create a class

Page 64 highlights

# Create a class class_a to match both packets with source MAC address 0001-0001-0001 and packets with source IP 1.1.1.1. system-view [Sysname] traffic classifier class_a operator or [Sysname-classifier-class_a] if-match source-mac 1-1-1 [Sysname-classifier-class_a] if-match acl 2000 [Sysname-classifier-class_a] quit # Create a behavior behavior_a, and configure the action of marking packets with local QoS ID 100 for the behavior. [Sysname] traffic behavior behavior_a [Sysname-behavior-behavior_a] remark qos-local-id 100 [Sysname-behavior-behavior_a] quit # Create a class class_b to match packets with local QoS ID 100. [Sysname] traffic classifier class_b [Sysname-classifier-class_b] if-match qos-local-id 100 [Sysname-classifier-class_b] quit # Create a behavior behavior_b, and configure the action of limiting traffic rate to 128 kbps for the behavior. [Sysname] traffic behavior behavior_b [Sysname-behavior-behavior_b] car cir 128 [Sysname-behavior-behavior_b] quit # Create a QoS policy car_policy. In the QoS policy, associate class class_a with behavior behavior_a, and associate class class_b with behavior behavior_b. [Sysname] qos policy car_policy [Sysname-qospolicy-car_policy] classifier class_a behavior behavior_a [Sysname-qospolicy-car_policy] classifier class_b behavior behavior_b Apply the QoS policy car_policy to the interface, satisfying the network requirements. 58

  • 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

58
# Create a class
class_a
to match both packets with source MAC address 0001-0001-0001 and packets
with source IP 1.1.1.1.
<Sysname> system-view
[Sysname] traffic classifier class_a operator or
[Sysname-classifier-class_a] if-match source-mac 1-1-1
[Sysname-classifier-class_a] if-match acl 2000
[Sysname-classifier-class_a] quit
# Create a behavior
behavior_a
, and configure the action of marking packets with local QoS ID 100 for
the behavior.
[Sysname] traffic behavior behavior_a
[Sysname-behavior-behavior_a] remark qos-local-id 100
[Sysname-behavior-behavior_a] quit
# Create a class
class_b
to match packets with local QoS ID 100.
[Sysname] traffic classifier class_b
[Sysname-classifier-class_b] if-match qos-local-id 100
[Sysname-classifier-class_b] quit
# Create a behavior
behavior_b
, and configure the action of limiting traffic rate to 128 kbps for the
behavior.
[Sysname] traffic behavior behavior_b
[Sysname-behavior-behavior_b] car cir 128
[Sysname-behavior-behavior_b] quit
# Create a QoS policy
car_policy
. In the QoS policy, associate class
class_a
with behavior
behavior_a
,
and associate class
class_b
with behavior
behavior_b
.
[Sysname] qos policy car_policy
[Sysname-qospolicy-car_policy] classifier class_a behavior behavior_a
[Sysname-qospolicy-car_policy] classifier class_b behavior behavior_b
Apply the QoS policy
car_policy
to the interface, satisfying the network requirements.