local-mac remove all-from-me

Function

The local-mac remove all-from-me command enables the function of configuring a VSI to clear the MAC address of only the PW in a received MAC Withdraw message carrying 0x404 TLV but remain the MAC addresses of the other PWs and AC interfaces.

The undo local-mac remove all-from-me command restores the default setting.

By default, when a VSI receives a MAC Withdraw message carrying 0x404 TLV, it deletes the MAC addresses of all PWs and AC interfaces.

Format

local-mac remove all-from-me

undo local-mac remove all-from-me

Parameters

None

Views

VSI-AUTO view, VSI-DEFAULT view, VSI-STATIC view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2vpn write

Usage Guidelines

Usage Scenario

In the scenario where a CE accesses an L2VPN network, when the AC between the CE and its connected PE becomes faulty frequently, the PE will send a MAC Withdraw message carrying 0x404 TLV to the remote PE to clear the MAC addresses learned by the VSI. In this way, traffic is re-broadcast and re-converged. If an interface flaps frequently, the PE will generate a large number of MAC Withdraw messages. After receiving these messages, the VSI of the remote PE will frequently clear MAC address information. If the VSI has many PWs, traffic will be broadcast for a long period, wasting device bandwidth. To resolve the issue, run the local-mac remove all-from-me command. Then the PE will clear the MAC address of the PW carried in a received MAC Withdraw message.

Precautions

The command takes effect only when the device receives a MAC Withdraw message carrying 0x404 TLV, but not MAC Withdraw messages carrying other types of TLVs besides 0x404 TLV or MAC Withdraw messages in other formats.

Example

# Access the VSI view and configure a PE to clear the MAC address of only the PW in a received MAC Withdraw message carrying 0x404 TLV but remain the MAC addresses of the other PWs and AC interfaces.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] vsi vsi1
[*HUAWEI-vsi-vsi1] local-mac remove all-from-me
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >