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


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


Configuration Guide - VPN

S9300, S9300E, and S9300X V200R010C00

This document describes the VPN configuration procedures and provides configuration examples.
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 BFD to Detect Public Network Links

Configuring BFD to Detect Public Network Links


After BFD for PW is configured, the fault on a PW can be rapidly detected and service flows on the PW can be rapidly switched to the secondary PW. In this scenario, BFD can be configured in the following two modes:
  • If there are a small number of service PWs, configure BFD for service PWs.
  • If there are multiple PWs, configure BFD for mPW and associate service PWs with the mPW. In this way, BFD monitors service PWs by detecting the mPW.

The BFD control packets are encapsulated in the PW control packets. Therefore, the control word function must be enabled on the PWs to be detected by BFD.

Perform the following operations on PEs at both ends of the primary PW.


  • Configure BFD for service PWs or the mPW.
    1. Run:


      The system view is displayed.

    2. Run:


      BFD is enabled globally, and the global BFD view is displayed.

    3. Run:


      Return to the system view.

    4. Run:

      bfd cfg-name bind pw interface interface-type interface-number [ secondary ]

      A BFD configuration item is created.

      • The outbound interface (specified by interface interface-type interface-number) to which a BFD session is bound is an AC interface on which a PW is established. If an mPW is bound to a BFD session, the interface is the loopback interface where the mPW is configured.
      • If the PW to be detected is a secondary PW, you must specify secondary.

    5. (Optional) Run:

      wtr wtr-value

      The time before a BFD session recovers is set.

      By default, the value is 0, indicating that a BFD session recovers immediately.

      Running this command can prevent applications from continuous active/standby switchovers during the BFD session flapping.

    6. Configure local and remote discriminators.

      • Run:

        discriminator local discr-value

        A local discriminator is configured.

      • Run:

        discriminator remote discr-value

        A remote discriminator is configured.


      The local discriminator of one end must be the same as the remote discriminator of the other end of a BFD session.

    7. Run:


      The configuration is committed.

      If the status of a PW is Down, the BFD session can be established but cannot go Up.

      • The local and remote discriminators cannot be changed once being configured. To modify the local and remote discriminators, run the undo bfd bfd-name command in the system view to delete BFD for PW configurations. After that, you can re-configure the local and remote discriminators.
      • After the PW is deleted, the related BFD sessions and configurations are deleted.

  • (Optional) Associate service PWs with the mPW.
    1. Run:


      The system view is displayed.

    2. Run:

      interface interface-type interface-number [ .subinterface-number ]

      The AC interface view is displayed.

    3. Run:

      mpls l2vc [ secondary | bypass ] track admin-vc interface loopback interface-number

      Service PWs on the AC interface are associated with the mPW.

Updated: 2019-08-21

Document ID: EDOC1000142068

Views: 113110

Downloads: 208

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