mac-learning

Function

The mac-learning enable command enables MAC address learning.

The mac-learning disable command disables MAC address learning.

The undo mac-learning disable command enables MAC address learning.

By default, MAC address learning is enabled.

Format

mac-learning enable

mac-learning disable

undo mac-learning disable

Parameters

None

Views

VSI-AUTO view, VSI-BVSI view, VSI-DEFAULT view, VSI-IVSI-BEVPNINTERWORK view, VSI-IVSI-P2P view, VSI-STATIC view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2vpn write

Usage Guidelines

Usage Scenario

After MAC address learning is disabled, a VPLS network can simulate a VPWS network. If there are two PEs and only one CE connects to each PE, you can disable MAC address learning on the PEs to reduce the burden of MAC address learning on the PEs.

Configuration Impact

After the mac-learning disable command is run, the device can no longer automatically learn MAC addresses, causing packets to be broadcast on the network. Exercise caution when using this command.

Example

# Disable MAC address learning for the current VSI.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] vsi company1
[*HUAWEI-vsi-company1] mac-learning disable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >