HP MSR2000/3000/4000 Router Series ACL and QoS Configuration Guide

30
Configuration procedure
1. Configure trusting port priority:
# Set the port priority of Ethernet 1/1 to 3.
<Router> system-view
[Router] interface ethernet 1/1
[Router-Ethernet1/1] qos priority 3
[Router-Ethernet1/1] quit
# Set the port priority of Ethernet 1/2 to 4.
[Router] interface ethernet 1/2
[Router-Ethernet1/2] qos priority 4
[Router-Ethernet1/2] quit
# Set the port priority of Ethernet 1/3 to 5.
[Router] interface ethernet 1/3
[Router-Ethernet1/3] qos priority 5
[Router-Ethernet1/3] quit
2. 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.
[Router] qos map-table dot1p-lp
[Router-maptbl-dot1p-lp] import 3 export 2
[Router-maptbl-dot1p-lp] import 4 export 6
[Router-maptbl-dot1p-lp] import 5 export 4
[Router-maptbl-dot1p-lp] quit
3. Map the local precedence values 6 and 2 to local precedence values 2 and 3 and keep local
precedence value 4 unchanged. This guarantees the management department, marketing
department, and R&D department decreased priorities to access the Internet.
[Router] traffic classifier rd
[Router-classifier-rd] if-match local-precedence 6
[Router-classifier-rd] quit
[Router] traffic classifier market
[Router-classifier-market] if-match local-precedence 2
[Router-classifier-market] quit
[Router] traffic behavior rd
[Router-behavior-rd] remark local-precedence 2
[Router-behavior-rd] quit
[Router] traffic behavior market
[Router-behavior-market] remark local-precedence 3
[Router-behavior-market] quit
[Router] qos policy policy1
[Router-qospolicy-policy1] classifier rd behavior rd
[Router-qospolicy-policy1] classifier market behavior market
[Router-qospolicy-policy1] quit
[Router] interface ethernet 1/5
[Router-Ethernet1/5] qos apply policy policy1 outbound