learning-mode

Function

The learning-mode command sets the iFIT flow learning mode.

The undo learning-mode command sets the iFIT flow learning mode to the default value.

By default, iFIT flow learning mode is the source IP with a mask is matched against during matching operations, and exact matching is performed for the destination IP address.

Format

learning-mode { sip-mask-dip-exact | sip-mask-dip-mask | sip-exact-dip-exact | sip-exact-dip-mask }

undo learning-mode { sip-mask-dip-exact | sip-mask-dip-mask | sip-exact-dip-exact | sip-exact-dip-mask }

Parameters

Parameter Description Value
sip-mask-dip-exact

Indicates the learning mode to mask included for source IP matching, and exact matching for destination IP address.

-

sip-mask-dip-mask

Indicates learning mode to mask included for source and destination IP matching.

-

sip-exact-dip-exact

Indicates learning mode to exact matching for source and destination IP addresses.

-

sip-exact-dip-mask

Indicates learning mode to exact matching for source IP address, and mask included for destination IP matching.

-

Views

IFIT-vpn-instance view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ifit write

Usage Guidelines

Usage Scenario

This command is used to set the iFIT automatic flow learning mode.

Example

# Set a direction type to unidirectional for an iFIT VPN instance named a.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance a
[*HUAWEI-vpn-instance-a] quit
[*HUAWEI] ifit
[*HUAWEI-ifit] flow-learning vpn-instance a
[*HUAWEI-ifit-vpn-instance-a] learning-mode sip-exact-dip-exact
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >