The if-match outbound-interface command configures a matching rule based on an outbound interface in a traffic classifier.
The undo if-match outbound-interface command deletes a matching rule based on an outbound interface in a traffic classifier.
By default, a matching rule based on an outbound interface is not configured in a traffic classifier.
The S2720-EI, S5720-LI, S5720S-LI, S5720-SI, S5720I-SI, S5720S-SI, S5730-SI, S5730S-EI, S6720-LI, S6720S-LI, S6720-SI, and S6720S-SI do not support this command.
Parameter |
Description |
Value |
---|---|---|
interface-type interface-number |
Specifies the type and number of an outbound interface.
|
- |
Usage Scenario
You can run the if-match outbound-interface command to classify packets based on an outbound interface 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
A traffic policy containing if-match outbound-interface cannot be applied to an interface.
For the S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S, the outbound interface in this command cannot be an Eth-Trunk member interface.
A traffic policy containing the if-match outbound-interface rule can only be applied to the outbound direction on the S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735S-S, S5735-S-I, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S.
If you run the if-match outbound-interface command in the same traffic classifier view multiple times, only the latest configuration takes effect.