if-match protocol
Function
The if-match protocol command configures a matching rule in a traffic classifier based on the protocol.
The undo if-match protocol command deletes a matching rule in a traffic classifier based on the protocol.
By default, a matching rule based on the protocol is not configured in a traffic classifier.
Usage Guidelines
Usage Scenario
You can run the if-match protocol command to classify traffic based on the protocol and process packets of the same protocol in the same manner.
Prerequisites
A traffic classifier has been created using the traffic classifier command in the system view.
Precautions
Currently, IPv4 and IPv6 are supported on the device.
If you run the if-match protocol command in the same traffic classifier view multiple times, only the latest configuration takes effect.