R0106-HP MSR Router Series ACL and QoS Configuration Guide(V7)
32
# Set the port priority of GigabitEthernet 2/1/0 to 3.
<Router> system-view
[Router] interface gigabitethernet 2/1/0
[Router-GigabitEthernet2/1/0] qos priority 3
[Router-GigabitEthernet2/1/0] quit
# Set the port priority of GigabitEthernet 2/1/1 to 4.
[Router] interface gigabitethernet 2/1/1
[Router-GigabitEthernet2/1/1] qos priority 4
[Router-GigabitEthernet2/1/1] quit
# Set the port priority of GigabitEthernet 2/1/2 to 5.
[Router] interface gigabitethernet 2/1/2
[Router-GigabitEthernet2/1/2] qos priority 5
[Router-GigabitEthernet2/1/2] 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 servers.
[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 gigabitethernet 2/1/4
[Router-GigabitEthernet2/1/4] qos apply policy policy1 outbound