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.
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.
Precautions
This command takes effect on a PE that receives MAC Withdraw messages only with the TLV type of 0x404.