The mac-withdraw enable command enables a VSI to delete the local MAC address and inform all the remote peers of the deletion.
The undo mac-withdraw enable command disables a VSI to delete the local MAC address and inform all the remote peers of the deletion.
By default, the MAC-withdraw function is disabled.
Usage Scenario
On enterprise networks, if the remote end specifies the local end as the UPE, the remote AC interface does not inform the local end to cancel the label after the AC interface is faulty. In this case, the local end is unaware of an AC fault or a UPE fault. The VSI remains Up and does not delete the corresponding MAC address entries in time. As a result, the remote end cannot receive data streams sent by the local end. After the mac-withdraw enable command is executed, the VSI deletes the local MAC address and informs all the remote peers of the deletion when an AC fault or a UPE fault occurs and the VSI remains Up. This solves the preceding problem.
Precautions
When an AC fault or a UPE fault occurs and the VSI remains Up, the UPE device needs to switch the VPLS traffic to another LSP if the UPE device accesses the SPE device in dual-homed mode. The SPE device then only needs to inform the other SPEs corresponding to the VSI to delete the MAC entries learnt from this VSI. After traffic switchover, the SPEs re-learn MAC entries from each other.
This command must be configured on SPEs.
The mac-withdraw enable command must be used together with the interface-status-change mac-withdraw enable command.
# Configure a VSI named v100 to delete the local MAC addresses and inform all the remote peers of the deletion when an AC fault or a UPE fault occurs and the VSI remains Up.
<HUAWEI> system-view [HUAWEI] vsi v100 static [HUAWEI-vsi-v100] pwsignal ldp [HUAWEI-vsi-v100-ldp] mac-withdraw enable