H3C Technologies H3C WX3000E Series Wireless Switches User Manual
Page 38

31
3.
Configure priority marking
Mark the HTTP packets from the management department, marketing department, and R&D department
with 802.1p priority values 4, 5, and 3, respectively, which will be mapped to local precedence values
6, 4, and 2 according to the 802.1p-to-local mapping table configured above.
# Configure ACL 3000 to match HTTP packets.
[Device] acl number 3000
[Device-acl-adv-3000] rule permit tcp destination-port eq 80
[Device-acl-adv-3000] quit
# Create a class named http, and use ACL 3000 as the match criterion.
[Device] traffic classifier http
[Device-classifier-http] if-match acl 3000
[Device-classifier-http] quit
# Configure a QoS to mark the traffic from the management department with 802.1p priority 4, and
apply the policy to the incoming traffic of the GigabitEthernet 1/0/3.
[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
[Device] interface gigabitethernet 1/0/3
[Device-GigabitEthernet1/0/3] qos apply policy admin inbound
# Configure a QoS to mark the traffic from the marketing department with 802.1p priority 5, and apply
the policy to the incoming traffic of the GigabitEthernet 1/0/1.
[Device] traffic behavior market
[Device-behavior-market] remark dot1p 5
[Device-behavior-market] quit
[Device] qos policy market
[Device-qospolicy-market] classifier http behavior market
[Device-qospolicy-market] quit
[Device] interface gigabitethernet 1/0/1
[Device-GigabitEthernet1/0/1] qos apply policy market inbound
# Configure a QoS to mark the traffic from the R&D department with 802.1p priority 3, and apply the
policy to the incoming traffic of the GigabitEthernet 1/0/2.
[Device] traffic behavior rd
[Device-behavior-rd] remark dot1p 3
[Device-behavior-rd] quit
[Device] qos policy rd
[Device-qospolicy-rd] classifier http behavior rd
[Device-qospolicy-rd] quit
[Device] interface gigabitethernet 1/0/2
[Device-GigabitEthernet1/0/2] qos apply policy rd inbound