< Home

if-match inbound-interface

Function

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.

Format

if-match inbound-interface interface-type interface-number

undo if-match inbound-interface

Parameters

Parameter

Description

Value

interface-type interface-number

Specifies the type and number of an inbound interface.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

-

Views

Traffic classifier view

Default Level

2: Configuration level

Usage Guidelines

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.

Example

# Configure a matching rule based on the inbound interface of GE0/0/1 in the traffic classifier class1.

<HUAWEI> system-view
[HUAWEI] traffic classifier class1
[HUAWEI-classifier-class1] if-match inbound-interface gigabitethernet 0/0/1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >