No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Configuration Guide - VPN

S7700 and S9700 V200R013C00

This document describes the configurations of VPN, including GRE, IPSec, BGP/MPLS IP VPN, BGP/MPLS IPv6 VPN, VLL, PWE3, VPLS, L2VPN Access to L3VPN.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring MAC Withdraw

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.

NOTE:

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-nameThe 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.

        NOTE:

        Do not run the local-mac remove all-but-mine command if a device running V200R002 is communicating with another device running a version earlier than V200R002. When a PE running a version earlier than V200R002 receives a MAC Withdraw message with TLV type 0x404, the PE removes all MAC address entries in its VSI.

    • Method 2

      1. Run system-view

        The system view is displayed.

      2. Run vsi vsi-nameThe 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.

        NOTE:

        Do not run the local-mac remove all-but-mine command if a device running V200R002 is communicating with another device running a version earlier than V200R002. When a PE running a version earlier than V200R002 receives a MAC Withdraw message with TLV type 0x404, the PE removes all MAC address entries in its VSI.

  • 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 40GE interface, a 100GE interface, an Ethernet 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.

      NOTE:

      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.

Translation
Download
Updated: 2019-04-08

Document ID: EDOC1100065751

Views: 33051

Downloads: 50

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next