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

Configuration procedure

Page 38 highlights

Configuration procedure 1. Enable trusting port priority: # Set the port priority of Ten-GigabitEthernet 1/1/5 to 3. system-view [Device] interface ten-gigabitethernet 1/1/5 [Device-Ten-GigabitEthernet1/1/5] qos priority 3 [Device-Ten-GigabitEthernet1/1/5] quit # Set the port priority of Ten-GigabitEthernet 1/1/6 to 4. [Device] interface ten-gigabitethernet 1/1/6 [Device-Ten-GigabitEthernet1/1/6] qos priority 4 [Device-Ten-GigabitEthernet1/1/6] quit # Set the port priority of Ten-GigabitEthernet 1/1/7 to 5. [Device] interface ten-gigabitethernet 1/1/7 [Device-Ten-GigabitEthernet1/1/7] qos priority 5 [Device-Ten-GigabitEthernet1/1/7] quit 2. Configure the priority mapping table: # Configure the 802.1p-to-local mapping table to map 802.1p priority values 3, 4, and 5 to local precedence values 2, 6, and 4. This guarantees the R&D department, management department, and marketing department decreased priorities to access the public server. [Device] qos map-table dot1p-lp [Device-maptbl-dot1p-lp] import 3 export 2 [Device-maptbl-dot1p-lp] import 4 export 6 [Device-maptbl-dot1p-lp] import 5 export 4 [Device-maptbl-dot1p-lp] quit 3. Configure priority marking: # Mark the HTTP traffic of the management department, marketing department, and R&D department to the Internet with 802.1p priorities 4, 5, and 3, respectively. Use the priority mapping table you have configured to map the 802.1p priorities to local precedence values 6, 4, and 2, respectively, for differentiated traffic treatment. # Create ACL 3000 to match HTTP traffic. [Device] acl number 3000 [Device-acl-adv-3000] rule permit tcp destination-port eq 80 [Device-acl-adv-3000] quit # Create class http and reference ACL 3000 in the class. [Device] traffic classifier http [Device-classifier-http] if-match acl 3000 [Device-classifier-http] quit # Configure a priority marking policy for the management department, and apply the policy to the incoming traffic of Ten-GigabitEthernet 1/1/7. [Device] traffic behavior admin [Device-behavior-admin] remark dot1p 4 [Device-behavior-admin] quit [Device] qos policy admin [Device-qospolicy-admin] classifier http behavior admin [Device-qospolicy-admin] quit 32

  • 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

32
Configuration procedure
1.
Enable trusting port priority:
# Set the port priority of Ten-GigabitEthernet 1/1/5 to 3.
<Device> system-view
[Device] interface ten-gigabitethernet 1/1/5
[Device-Ten-GigabitEthernet1/1/5] qos priority 3
[Device-Ten-GigabitEthernet1/1/5] quit
# Set the port priority of Ten-GigabitEthernet 1/1/6 to 4.
[Device] interface ten-gigabitethernet 1/1/6
[Device-Ten-GigabitEthernet1/1/6] qos priority 4
[Device-Ten-GigabitEthernet1/1/6] quit
# Set the port priority of Ten-GigabitEthernet 1/1/7 to 5.
[Device] interface ten-gigabitethernet 1/1/7
[Device-Ten-GigabitEthernet1/1/7] qos priority 5
[Device-Ten-GigabitEthernet1/1/7] quit
2.
Configure the priority mapping table:
# Configure the 802.1p-to-local mapping table to map 802.1p priority values 3, 4, and 5 to local
precedence values 2, 6, and 4. This guarantees the R&D department, management department,
and marketing department decreased priorities to access the public server.
[Device] qos map-table dot1p-lp
[Device-maptbl-dot1p-lp] import 3 export 2
[Device-maptbl-dot1p-lp] import 4 export 6
[Device-maptbl-dot1p-lp] import 5 export 4
[Device-maptbl-dot1p-lp] quit
3.
Configure priority marking:
# Mark the HTTP traffic of the management department, marketing department, and R&D
department to the Internet with 802.1p priorities 4, 5, and 3, respectively. Use the priority
mapping table you have configured to map the 802.1p priorities to local precedence values 6, 4,
and 2, respectively, for differentiated traffic treatment.
# Create ACL 3000 to match HTTP traffic.
[Device] acl number 3000
[Device-acl-adv-3000] rule permit tcp destination-port eq 80
[Device-acl-adv-3000] quit
# Create class
http
and reference ACL 3000 in the class.
[Device] traffic classifier http
[Device-classifier-http] if-match acl 3000
[Device-classifier-http] quit
# Configure a priority marking policy for the management department, and apply the policy to the
incoming traffic of Ten-GigabitEthernet 1/1/7.
[Device] traffic behavior admin
[Device-behavior-admin] remark dot1p 4
[Device-behavior-admin] quit
[Device] qos policy admin
[Device-qospolicy-admin] classifier http behavior admin
[Device-qospolicy-admin] quit