The interface-status-change mac-withdraw enable command configures PEs to send LDP MAC Withdraw messages to all peers when the status of the AC interface bound to the VSI changes.
The undo interface-status-change mac-withdraw enable command disables PEs from sending LDP MAC Withdraw messages to all peers when the status of the AC interface bound to the VSI changes.
By default, a VSI does not send LDP MAC Withdraw messages.
Parameter | Description | Value |
---|---|---|
up |
Configures a PE to send MAC Withdraw messages with the 0x404 TLV type to all peers when the bound AC interface goes Up. After a peer receives a MAC Withdraw message with the 0x404 TLV type, it clears MAC addresses in the VSI. |
- |
down |
Configures a PE to send MAC Withdraw messages with the 0x406 TLV type to all peers when the bound AC interface goes Down. After a peer receives a MAC Withdraw message with the 0x406 TLV type, it clears MAC addresses learned by the VSI over a specific PW. |
- |
Usage Scenario
By default, when the status of an AC interface on a PE changes, the PE does not send MAC Withdraw messages to its peers. As a result, its peers are unaware of the fact that the CE connecting to that AC interface is unreachable. Subsequently, traffic bound to the CE gets lost before MAC addresses in the VSI age out. To solve this problem, run the
interface-status-change mac-withdraw enable command. Then, when the AC interface status changes, the PE sends a MAC Withdraw message to all its peers. After a peer receives the MAC Withdraw message, it clears MAC addresses in the VSI based on the MAC Withdraw message type.Precautions
This command takes effect only after the mac-withdraw enable command is also used.
<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] quit [*HUAWEI] mpls l2vpn [*HUAWEI-l2vpn] quit [*HUAWEI] vsi v1 static [*HUAWEI-vsi-v1] pwsignal ldp [*HUAWEI-vsi-v1-ldp] interface-status-change mac-withdraw enable