Configuration procedure

To configure priority marking:

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 classes exist.

3. Configure a match criterion.

if-match match-criteria

By default, no match criterion is configured.

For more information about the if-match command, see ACL and QoS Command Reference.

4. Return to system view.

quit

N/A

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

traffic behavior behavior-name

By default, no traffic behaviors exist.

6. Configure a priority marking action.

  • Set the DSCP value for packets:remark [ green | red | yellow ] dscp dscp-value

  • Set the 802.1p priority for packets or configure the inner-to-outer tag priority copying feature:remark [ green | red | yellow ] dot1p dot1p-valueremark dot1p customer-dot1p-trust

  • Set the drop priority for packets:remark drop-precedence drop-precedence-value

  • Set the IP precedence for packets:remark ip-precedence ip-precedence-value

  • Set the local precedence for packets:remark [ green | red | yellow ] local-precedence local-precedence-value

  • Set the local QoS ID for packets:remark qos-local-id local-id-value

  • Set the CVLAN for packets:remark customer-vlan-id vlan-id

  • Set the SVLAN for packets:remark service-vlan-id vlan-id

Use one of the commands.

By default, no priority marking action is configured.

The remark drop-precedence command applies only to the incoming traffic.

7. Return to system view.

quit

N/A

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

qos policy policy-name

By default, no QoS policies exist.

9. Associate the traffic class with the traffic behavior in the QoS policy.

classifier classifier-name behavior behavior-name [ insert-before before-classifier-name ]

By default, a traffic class is not associated with a traffic behavior.

10. Return to system view.

quit

N/A

11. Apply the QoS policy.

Choose one of the application destinations as needed.

By default, no QoS policy is applied.

12. (Optional.) Display the priority marking configuration.

display traffic behavior user-defined [ behavior-name ]

Available in any view.