The if-match ip-precedence command configures a matching rule based on the IP precedence of packets in a traffic classifier.
The undo if-match ip-precedence command deletes a matching rule based on the IP precedence of packets in a traffic classifier.
By default, a matching rule based on the IP precedence of packets is not configured in a traffic classifier.
Parameter |
Description |
Value |
---|---|---|
ip-precedence-value |
Specifies the IP precedence. |
The value is an integer that ranges from 0 to 7. A larger value indicates a higher priority of packets. |
Usage Scenario
You can run the if-match ip-precedence command to classify packets based on the IP precedence 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 if-match ip-precedence command, a packet matches a rule as long as it matches one of the IP precedence values, 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.