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

Create QoS policy, marketing department.

Page 71 highlights

# Configure IPv4 basic ACL 2002 to match the outgoing traffic of the R&D department. [SwitchA] acl number 2002 [SwitchA-acl-basic-2002] rule permit source 192.168.2.0 0.0.0.255 [SwitchA-acl-basic-2002] quit # Create class admin, and use ACL 2001 as the match criterion. [SwitchA] traffic classifier admin [SwitchA-classifier-admin] if-match acl 2001 [SwitchA-classifier-admin] quit # Create class rd, and use ACL 2002 as the match criterion. [SwitchA] traffic classifier rd [SwitchA-classifier-rd] if-match acl 2002 [SwitchA-classifier-rd] quit # Create traffic behavior car_admin_rd, and configure traffic policing to limit the traffic rate to 102400 kbps. [SwitchA] traffic behavior car_admin_rd [SwitchA-behavior-car_admin_rd] car cir 102400 [SwitchA-behavior-car_admin_rd] quit # Create QoS policy car, and associate classes admin and rd with behavior car_admin_rd. [SwitchA] qos policy car [SwitchA-qospolicy-car] classifier admin behavior car_admin_rd [SwitchA-qospolicy-car] classifier rd behavior car_admin_rd [SwitchA-qospolicy-car] quit 2. Limit the upstream traffic of the marketing department: # Configure IPv4 basic ACL 2003 to match the outgoing traffic of the sub-department 1 of the marketing department. [SwitchA] acl number 2003 [SwitchA-acl-basic-2003] rule permit source 192.168.3.0 0.0.0.255 [SwitchA-acl-basic-2003] quit # Configure IPv4 basic ACL 2004 to match the outgoing traffic of the sub-department 2 of the marketing department. [SwitchA] acl number 2004 [SwitchA-acl-basic-2004] rule permit source 192.168.4.0 0.0.0.255 [SwitchA-acl-basic-2004] quit # Configure class marketing to match the outgoing traffic of the two sub-departments of the marketing department. [SwitchA] traffic classifier marketing operator or [SwitchA-classifier-marketing] if-match acl 2003 [SwitchA-classifier-marketing] if-match acl 2004 [SwitchA-classifier-marketing] quit # Configure behavior remark_local_id to mark traffic with local QoS ID 100. [SwitchA] traffic behavior remark_local_id [SwitchA-behavior-remark_local_id] remark qos-local-id 100 [SwitchA-behavior-remark_local_id] quit # Configure class marketing_car to match the outgoing traffic of the two sub-departments of the marketing department. [SwitchA] traffic classifier marketing_car 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
  • 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

65
# Configure IPv4 basic ACL 2002 to match the outgoing traffic of the R&D department.
[SwitchA] acl number 2002
[SwitchA-acl-basic-2002] rule permit source 192.168.2.0 0.0.0.255
[SwitchA-acl-basic-2002] quit
# Create class
admin
, and use ACL 2001 as the match criterion.
[SwitchA] traffic classifier admin
[SwitchA-classifier-admin] if-match acl 2001
[SwitchA-classifier-admin] quit
# Create class
rd
, and use ACL 2002 as the match criterion.
[SwitchA] traffic classifier rd
[SwitchA-classifier-rd] if-match acl 2002
[SwitchA-classifier-rd] quit
# Create traffic behavior
car_admin_rd
, and configure traffic policing to limit the traffic rate to
102400 kbps.
[SwitchA] traffic behavior car_admin_rd
[SwitchA-behavior-car_admin_rd] car cir 102400
[SwitchA-behavior-car_admin_rd] quit
# Create QoS policy
car
, and associate classes
admin
and
rd
with behavior
car_admin_rd
.
[SwitchA] qos policy car
[SwitchA-qospolicy-car] classifier admin behavior car_admin_rd
[SwitchA-qospolicy-car] classifier rd behavior car_admin_rd
[SwitchA-qospolicy-car] quit
2.
Limit the upstream traffic of the marketing department:
# Configure IPv4 basic ACL 2003 to match the outgoing traffic of the sub-department 1 of the
marketing department.
[SwitchA] acl number 2003
[SwitchA-acl-basic-2003] rule permit source 192.168.3.0 0.0.0.255
[SwitchA-acl-basic-2003] quit
# Configure IPv4 basic ACL 2004 to match the outgoing traffic of the sub-department 2 of the
marketing department.
[SwitchA] acl number 2004
[SwitchA-acl-basic-2004] rule permit source 192.168.4.0 0.0.0.255
[SwitchA-acl-basic-2004] quit
# Configure class
marketing
to match the outgoing traffic of the two sub-departments of the
marketing department.
[SwitchA] traffic classifier marketing operator or
[SwitchA-classifier-marketing] if-match acl 2003
[SwitchA-classifier-marketing] if-match acl 2004
[SwitchA-classifier-marketing] quit
# Configure behavior
remark_local_id
to mark traffic with local QoS ID 100.
[SwitchA] traffic behavior remark_local_id
[SwitchA-behavior-remark_local_id] remark qos-local-id 100
[SwitchA-behavior-remark_local_id] quit
# Configure class
marketing_car
to match the outgoing traffic of the two sub-departments of the
marketing department.
[SwitchA] traffic classifier marketing_car