The if-match service-class command configures a matching rule for MF classification based on the service class.
The undo if-match service-class command deletes a matching rule for MF classification based on the service class.
By default, no matching rules are configured for MF classification based on the service class.
Usage Scenario
To classify traffic based on the service class and execute different traffic behaviors, configure a matching rule for the traffic classifier based on the service class, associate the traffic classifier with a traffic behavior in a traffic policy, and apply the traffic policy to an interface. To configure a matching rule for the traffic classifier based on the service class, run the if-match service-class command.
Prerequisites
A traffic classifier has been configured in the system view and the traffic classifier view is displayed.
Follow-up Procedure
Configure a traffic behavior and a traffic policy and associate the traffic classifier with the traffic behavior in the traffic policy.
Precautions
The service-class-based traffic classifier applies only to outgoing traffic. The traffic policy with the traffic classifier takes effect only when the link-layer or all-layer parameter is specified.