The if-match inbound-interface command configures a matching rule based on an inbound interface in a traffic classifier.
The undo if-match inbound-interface command deletes a matching rule based on an inbound interface in a traffic classifier.
By default, a matching rule based on an inbound interface is not configured in a traffic classifier.
Parameter |
Description |
Value |
---|---|---|
interface-type interface-number |
Specifies the type and number of an inbound interface.
|
- |
Usage Scenario
You can run the if-match inbound-interface command to classify traffic based on an inbound 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 inbound-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 inbound interface in this command cannot be an Eth-Trunk member interface.
A traffic policy containing the if-match inbound-interface rule can only be applied to the inbound direction.
If you run the if-match inbound-interface command in the same traffic classifier view multiple times, only the latest configuration takes effect.