flow-learning interface

Function

The flow-learning interface command binds an iFIT flow to a specified interface.

The undo flow-learning interface command unbinds an iFIT flow from an interface.

By default, an iFIT flow learning is not bound to any interface.

Format

flow-learning interface { all | { ifType ifNum | ifName } } [ whitelist-group whitelist-group-name ]

undo flow-learning interface { all | { ifType ifNum | ifName } } [ whitelist-group whitelist-group-name ]

Parameters

Parameter Description Value
all

Binds flow learning to all interfaces.

-

ifType

Specifies the type of an interface.

-

ifNum

Specifies the number of an interface.

-

ifName

Specifies the name of an interface.

-

whitelist-group whitelist-group-name

Specifies the name of a whitelist group.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported.

Views

IFIT-vpn-instance view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ifit write

Usage Guidelines

Usage Scenario

The flow-learning interface command binds an iFIT flow to a specified interface. The bound interface can only be a physical interface or VE interface. The flow can pass through a physical interface, sub-interface, or trunk interface, but the iFIT instance and statistics are generated on the physical interface.

For details about interface type restrictions, see iFIT Configuration > iFIT Feature Requirements.

Example

# Bind an iFIT flow learning to all interfaces.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance a
[*HUAWEI-vpn-instance-a] quit
[*HUAWEI] ifit
[*HUAWEI-ifit] node-id 1
[*HUAWEI-ifit] whitelist-group 1
[*HUAWEI-ifit-whitelist-group-1] quit
[*HUAWEI-ifit] flow-learning vpn-instance a
[*HUAWEI-ifit-vpn-instance-a] flow-learning interface all whitelist-group 1
# Bind an iFIT flow learn to a specified interface.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance a
[*HUAWEI-vpn-instance-a] quit
[*HUAWEI] ifit
[*HUAWEI-ifit] node-id 1
[*HUAWEI-ifit] whitelist-group 1
[*HUAWEI-ifit-whitelist-group-1] quit
[*HUAWEI-ifit] flow-learning vpn-instance a
[*HUAWEI-ifit-vpn-instance-a] flow-learning interface GigabitEthernet 0/1/0 whitelist-group 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >