Configuring an inner-outer VLAN 802.1p priority mapping

Through QoS policies, the HP 5500 HI switches achieve the following inner-outer VLAN 802.1p priority mapping modes:

On the HP 5500 HI Switch Series, if you have not used either of the two methods previously mentioned to mark the 802.1p priority of the outer VLAN tag, a basic QinQ-enabled or selective QinQ-enabled port which is configured to trust packet priority copies the 802.1p priority in the inner VLAN tag to the outer VLAN tag when tagging a packet. A basic QinQ-enabled or selective QinQ-enabled port which is configured to trust port priority uses the priority of the receiving port (0 by default) as the 802.1p priority in the outer VLAN tag. For more information about priority trust mode, see ACL and QoS Configuration Guide.

To mark the 802.1p priorities in outer VLAN tags according to the inner VLAN IDs or the 802.1p priorities in the inner VLAN tags:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Create a class and enter class view.

traffic classifier classifier-name [ operator { and | or } ]

By default, the operator of a class is AND.

3. Configure a match criterion.

  • Match the specified inner VLAN IDs:if-match customer-vlan-id vlan-id-list

  • Match the specified inner VLAN tag priorities:if-match customer-dot1p 8021p-list

Use either command.

4. Return to system view.

quit

N/A

5. Create a traffic behavior and enter traffic behavior view.

traffic behavior behavior-name

N/A

6. Configure a marking action or an inner-to-outer tag priority copying action.

  • Mark the 802.1p priorities in outer VLAN tags:remark dot1p 8021p

  • Copy the inner 802.1p priorities to outer 802.1p priorities:remark dot1p customer-dot1p-trust

Use either command.

7. Return to system view.

quit

N/A

8. Create a QoS policy and enter QoS policy view.

qos policy policy-name

N/A

9. Associate the traffic class with the traffic behavior defined earlier.

classifier classifier-name behavior behavior-name

N/A

10. Return to system view.

quit

N/A

11. Enter Ethernet interface view or port group view of the customer network-side port.

  • Enter Ethernet interface view:interface interface-type interface-number

  • Enter port group view:port-group manual port-group-name

Use either command.

12. Enable basic QinQ.

qinq enable

N/A

13. Apply the QoS policy to the incoming traffic.

qos apply policy policy-name inbound

N/A