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

Configuration procedures, Con Device

Page 46 highlights

• Limit the rate of traffic from Server to 102400 kbps: Transmit the conforming traffic, mark the excess traffic with DSCP value 0, and then transmit the traffic. • Limit the rate of traffic from Host A to 25600 kbps: Transmit the conforming traffic, and drop the excess traffic. Perform traffic control on Ten-GigabitEthernet 1/1/5 and Ten-GigabitEthernet 1/1/6 of Device B to meet the following requirements: • Limit the total incoming traffic rate of Ten-GigabitEthernet 1/1/5 to 204800 kbps and drop the excess traffic. • Limit the outgoing HTTP traffic (traffic accessing the Internet) rate of Ten-GigabitEthernet 1/1/6 to 102400 kbps and drop the excess traffic. Figure 11 Network diagram Configuration procedures 1. Configure Device A: # Configure ACL 2001 and ACL 2002 to match traffic from Server and Host A, respectively. system-view [DeviceA] acl number 2001 [DeviceA-acl-basic-2001] rule permit source 1.1.1.1 0 [DeviceA-acl-basic-2001] quit [DeviceA] acl number 2002 [DeviceA-acl-basic-2002] rule permit source 1.1.1.2 0 [DeviceA-acl-basic-2002] quit # Create a class named server and use ACL 2001 as the match criterion. Create a class named host and use ACL 2002 as the match criterion. [DeviceA] traffic classifier server [DeviceA-classifier-server] if-match acl 2001 [DeviceA-classifier-server] quit [DeviceA] traffic classifier host [DeviceA-classifier-host] if-match acl 2002 [DeviceA-classifier-host] quit # Create a behavior named server and configure the CAR action for the behavior as follows: Set the CIR to 102400 kbps, and mark the excess packets (red packets) with DSCP value 0 and transmit them. [DeviceA] traffic behavior server [DeviceA-behavior-server] car cir 102400 red remark-dscp-pass 0 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

40
Limit the rate of traffic from Server to 102400 kbps: Transmit the conforming traffic, mark the excess
traffic with DSCP value 0, and then transmit the traffic.
Limit the rate of traffic from Host A to 25600 kbps: Transmit the conforming traffic, and drop the
excess traffic.
Perform traffic control on Ten-GigabitEthernet 1/1/5 and Ten-GigabitEthernet 1/1/6 of Device B to
meet the following requirements:
Limit the total incoming traffic rate of Ten-GigabitEthernet 1/1/5 to 204800 kbps and drop the
excess traffic.
Limit the outgoing HTTP traffic (traffic accessing the Internet) rate of Ten-GigabitEthernet 1/1/6 to
102400 kbps and drop the excess traffic.
Figure 11
Network diagram
Configuration procedures
1.
Configure Device A:
# Configure ACL 2001 and ACL 2002 to match traffic from Server and Host A, respectively.
<DeviceA> system-view
[DeviceA] acl number 2001
[DeviceA-acl-basic-2001] rule permit source 1.1.1.1 0
[DeviceA-acl-basic-2001] quit
[DeviceA] acl number 2002
[DeviceA-acl-basic-2002] rule permit source 1.1.1.2 0
[DeviceA-acl-basic-2002] quit
# Create a class named
server
and use ACL 2001 as the match criterion. Create a class named
host
and use ACL 2002 as the match criterion.
[DeviceA] traffic classifier server
[DeviceA-classifier-server] if-match acl 2001
[DeviceA-classifier-server] quit
[DeviceA] traffic classifier host
[DeviceA-classifier-host] if-match acl 2002
[DeviceA-classifier-host] quit
# Create a behavior named
server
and configure the CAR action for the behavior as follows: Set
the CIR to 102400 kbps, and mark the excess packets (red packets) with DSCP value 0 and
transmit them.
[DeviceA] traffic behavior server
[DeviceA-behavior-server] car cir 102400 red remark-dscp-pass 0