The if-match mpls-exp command configures a matching rule based on the EXP priority of MPLS packets in a traffic classifier.
The undo if-match mpls-exp command deletes a matching rule based on the EXP priority of MPLS packets in a traffic classifier.
By default, a matching rule based on the EXP priority of MPLS packets is not configured in a traffic classifier.
Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730S-H, and S6730-H support this command.
Parameter |
Description |
Value |
---|---|---|
exp-value |
Specifies the EXP priority of MPLS packets. |
The value is an integer that ranges from 0 to 7. A larger value indicates a higher priority of MPLS packets. |
Usage Scenario
You can run the if-match mpls-exp command to classify MPLS packets based on the EXP priority so that the device processes packets matching the same traffic classifier in the same manner.
Prerequisites
A traffic classifier has been created using the traffic classifier command in the system view.
Precautions
If you enter multiple values of EXP priorities in the command, a packet matches the traffic classifier as long as it matches one of the EXP priorities, regardless of whether the relationship between traffic classification rules is AND or OR.
If a traffic classifier in the traffic policy contains if-match mpls-exp, the traffic policy cannot be applied to the outbound direction on the S5720-EI, S6720-EI, and S6720S-EI.
If you run the if-match mpls-exp command in the same traffic classifier view multiple times, only the latest configuration takes effect.