< Home

Configuring MAC Withdraw

Context

On an LDP, BGP AD, or LDP+BGP AD VPLS network, when the AC or PW status on a MAC Withdraw-capable PE changes, the PE sends a MAC Withdraw message to remote peers, instructing the remote peers to remove MAC address entries in their VSIs. If MAC Withdraw relay is configured, the remote peers will forward the received MAC Withdraw messages.

MAC Withdraw can be configured in either the VSI-LDP view or VSI view, but cannot be configured in both views. If you have configured MAC Withdraw in one view but now you want to configure MAC Withdraw in the other view, delete the current MAC Withdraw configuration first.

MAC Withdraw applies only to LDP VPLS networks if configured in the VSI-LDP view, but applies to LDP, BGP AD, and LDP+BGP AD VPLS networks if configured in the VSI view.

Configuration Procedure

  • Configure a PE to send MAC Withdraw messages when the AC or PW status on the PE changes. Two methods are available for configuring this MAC Withdraw function (method 1 applies only to LDP VPLS networks, whereas method 2 applies to LDP, BGP AD, and LDP+BGP AD VPLS networks):

    • Method 1

      1. Run system-view

        The system view is displayed.

      2. Run vsi vsi-name

        The VSI view is displayed.

      3. Run pwsignal ldp

        The VSI-LDP view is displayed.

      4. Run mac-withdraw enable

        The PE is configured to send a MAC Withdraw message when the AC or PW status changes.

        By default, this function is disabled.

        To enable a PE to send a MAC Withdraw message when the AC status changes, you must also run step 5.

      5. (Optional) Run interface-status-change mac-withdraw enable

        The PE is configured to send a MAC Withdraw message to all peers when the AC status changes.

        By default, this function is disabled.

      6. Run quit

        The VSI view is displayed.

      7. (Optional) Run local-mac remove all-but-mine

        The PE is enabled to remove all MAC address entries in its VSI, except those learned from the PW over which the PE receives the MAC Withdraw message with TLV type 0x404. The implementation complies with RFC.

    • Method 2

      1. Run system-view

        The system view is displayed.

      2. Run vsi vsi-name

        The VSI view is displayed.

      3. Run mac-withdraw enable

        The PE is configured to send a MAC Withdraw message to all peers when the AC or PW status changes.

        By default, this function is disabled.

        To enable a PE to send a MAC Withdraw message when the AC status changes, you must also run step 4.

      4. (Optional) Run interface-status-change mac-withdraw enable

        The PE is configured to send a MAC Withdraw message to all peers when the AC status changes.

        By default, this function is disabled.

      5. (Optional) Run local-mac remove all-but-mine

        The PE is enabled to remove all MAC address entries in its VSI, except those learned from the PW over which the PE receives the MAC Withdraw message with TLV type 0x404. The implementation complies with RFC.

  • Configure MAC Withdraw relay. Two methods are available for configuring this MAC Withdraw function (method 1 applies only to LDP VPLS networks, whereas method 2 applies to LDP, BGP AD, and LDP+BGP AD VPLS networks):

    The MAC withdraw function configured in the VSI-LDP view and that configured in the VSI view are mutually exclusive.

    • Method 1

      1. Run system-view

        The system view is displayed.

      2. Run vsi vsi-name

        The VSI view is displayed.

      3. Run pwsignal ldp

        The VSI-LDP view is displayed.

      4. Perform the following operations based on the sources and destinations of MAC Withdraw messages to configure MAC Withdraw relay:
        • Run npe-upe mac-withdraw enable

          An SPE is enabled to forward a MAC Withdraw message to a UPE after the SPE receives this message from another SPE

        • Run upe-npe mac-withdraw enable

          An SPE is enabled to forward a MAC Withdraw message to another SPE after the SPE receives this message from a UPE

        • Run upe-upe mac-withdraw enable

          An SPE is enabled to forward a MAC Withdraw message to a UPE after the SPE receives this message from another UPE

    • Method 2

      1. Run system-view

        The system view is displayed.

      2. Run vsi vsi-name

        The VSI view is displayed.

      3. Run mac-withdraw propagate enable

        MAC Withdraw relay is enabled.

  • Disable the device from sending MAC Withdraw messages on a VPLS network with primary and secondary VLLs.

    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. Run undo portswitch

      The Layer 2 interface is configured as a Layer 3 interface.

      To use an XGE interface, a GE interface, a 25GE interface, a MultiGE interface, a 40GE interface, a 100GE interface, or an Eth-Trunk interface of the device as the AC interface of the PE, run the undo portswitch command to change a Layer 2 interface to a Layer 3 interface.

    4. Run mpls l2vpn mac-withdraw disable

      The VLL in Ethernet or VLAN encapsulation mode is disabled from sending MAC Withdraw messages during a primary/secondary PW switchover.

      This command takes effect only in a VPLS scenario with primary and secondary VLLs. In other scenarios, the VLL needs to send MAC Withdraw messages; otherwise, services will be interrupted.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >