< Home

mac-learning

Function

The mac-learning enable command enables MAC address learning for a VSI.

The mac-learning disable command disables MAC address learning of a VSI.

The undo mac-learning disable command enables MAC address learning for a VSI.

By default, MAC address learning is enabled for a VSI.

Format

mac-learning { enable | disable }

undo mac-learning disable

Parameters

Parameter Description Value
enable Enables a VSI to learn MAC addresses. -
disable Disables a VSI to learn MAC addresses. -

Views

VSI view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To disable MAC address learning in a VSI on a VPLS network, run the mac-learning disable command. The VPLS network then functions similarly to a VPWS network. For example, if there are only two PEs with each connecting to one CE, disabling MAC address learning in a VSI on a PE reduces the PE's pressure.

Configuration Impact

After the mac-learning disable command is run for a VSI, the VSI can no longer automatically learn MAC addresses, causing packets to be broadcast on the network. Therefore, exercise caution when running this command.

Example

# Disable MAC address learning of the current VSI.

<HUAWEI> system-view
[HUAWEI] vsi company1
[HUAWEI-vsi-company1] mac-learning disable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >