if-match ip-precedence
Function
The if-match ip-precedence command configures a matching rule in a traffic classifier based on the IP precedence in packets.
The undo if-match ip-precedence command deletes a matching rule in a traffic classifier based on the IP precedence in packets.
By default, a matching rule based on the IP precedence in packets is not configured in a traffic classifier.
Usage Guidelines
Usage Scenario
You can run the if-match ip-precedence command to configure a matching rule in a traffic classifier based on the IP precedence in packets 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
After the if-match ip-precedence command is run, IP precedences are listed in ascending order.
If you enter multiple IP precedences in the command, a packet matches a rule as long as it matches one of the IP precedences, regardless of whether the relationship between traffic classification rules is AND or OR.
In a traffic classifier where the relationship between rules is AND, the if-match dscp and if-match ip-precedence commands cannot be used simultaneously.
If you run the if-match ip-precedence command in the same traffic classifier view multiple times, only the latest configuration takes effect.