< Home

local-mac remove all-but-mine

Function

The local-mac remove all-but-mine command enables a local provider edge (PE) device to delete user MAC address entries, except those entries associated with the PW that sends MAC Withdraw messages with the TLV type of 0x404.

The undo local-mac remove all-but-mine command restores the default configuration.

A PE removes all MAC addresses by default after receiving MAC Withdraw messages with the TLV type of 0x404.

Format

local-mac remove all-but-mine

undo local-mac remove all-but-mine

Parameters

None

Views

VSI view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A customer edge (CE) device is dual-homed to two PEs over pseudo wires (PWs) on a virtual private LAN service (VPLS) network. If a PE finds that an AC fault is removed, the PE sends MAC Withdraw messages with the TLV type of 0x404 to instruct a remote PE to update MAC address entries and perform a traffic switchover. For example, CE1 is connected to CE2 over primary PW1 and secondary PW2 on the network shown in Figure 1. After a fault in AC1 or PE2 is removed, PE2 sends to PE1 MAC Withdraw messages with the TLV type of 0x404 over PW1. After PE1 receives the messages, PE1 removes MAC addresses but retains those associated with PW1. The procedure complies with RFC. User traffic can then switch from PW2 to PW1.

To allow communication between a Huawei device and a non-Huawei device in compliance with RFC, run the local-mac remove all-but-mine command. This command is run only on PE1 shown in Figure 1.

Figure 1 CE dual-homing to a VPLS network

Precautions

This command takes effect on a PE that receives MAC Withdraw messages only with the TLV type of 0x404.

Example

# Enable a PE to remove all MAC address entries but retain MAC address entries associated with a PW over which the PE receives MAC Withdraw messages with the TLV type of 0x404.

<HUAWEI> system-view
[HUAWEI] vsi vsi1
[HUAWEI-vsi-vsi1] local-mac remove all-but-mine
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >