Setting the 802.1p priority in SVLAN tags
By default, a QinQ-enabled port sets the 802.1p priority in the SVLAN tag depending on the priority trust mode.
If the 802.1p priority is trusted, the port copies the 802.1p priority in the CVLAN tag to the SVLAN tag.
If port priority is trusted, the port sets the 802.1p priority in the SVLAN to be the same as the port priority. The default port priority is 0.
Alternatively, you can configure a QoS policy to set the 802.1p priority in the SVLAN by using one of the following methods:
Sets an 802.1p priority value in the SVLAN tag depending on the VLAN ID or 802.1p priority in the CVLAN tag.
Copies the 802.1p priority in the CVLAN tag to the SVLAN tag.
To set the 802.1p priority in SVLAN tags:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Create a traffic class and enter traffic class view. | traffic classifier classifier-name [ operator { and | or } ] | By default, no traffic class is configured. |
3. Configure CVLAN match criteria. |
| N/A |
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 priority marking action for SVLAN tags. |
| N/A |
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. | classifier classifier-name behavior behavior-name | N/A |
10. Return to system view. | quit | N/A |
11. Enter Layer 2 Ethernet interface view. | interface interface-type interface-number | N/A |
12. Configure the port to trust the 802.1p priority in incoming frames. | qos trust dot1p | By default, the device does not trust the 802.1p priority carried in frames. Skip this step if the remark dot1p customer-dot1p-trust command is configured. |
13. Enable QinQ. | qinq enable | N/A |
14. Apply the QoS policy to the inbound direction of the port. | qos apply policy policy-name inbound | N/A |
For more information about QoS policies, see ACL and QoS Configuration Guide.