Configuration procedure

To configure MPLS 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 } ]

The classifier-name argument cannot be the name of any system-defined traffic class.

3. Configure a match criterion for the traffic class.

if-match [ not ] mpls-exp exp-value-list

The match criterion applies only to MPLS packets.

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 an EXP re-marking action in the behavior.

remark mpls-exp exp-value

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 in the QoS policy.

classifier classifier-name behavior behavior-name

N/A

10. Return to system view.

quit

N/A

11. Enter interface view or port group view.

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

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

Use one of the commands.

Settings in interface view take effect on the current interface. Settings in port group view take effect on all ports in the port group.

12. Apply the QoS policy to the interface or port group.

qos apply policy policy-name { inbound | outbound }

N/A