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 - IP Unicast Routing

CloudEngine 12800 and 12800E V200R002C50

This document describes the configurations of IP Unicast Routing, including IP Routing, Static Route, RIP, RIPng, OSPF, OSPFv3, IPv4 IS-IS, IPv6 IS-IS, BGP, Routing Policy, and PBR.

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 for BGP

Configuring BFD for BGP


BGP periodically sends Keepalive messages to its peers to detect the status of its peers. It takes more than 1 second for this detection mechanism to detect a fault. When data is transmitted at gigabit rates, long-time fault detection will cause packet loss. This cannot meet high reliability requirements of carrier-class networks. BFD for BGP can solve this problem. BFD is a millisecond-level fault detection mechanism. It can detect faults on the link between BGP peers within 50 ms. Therefore, BFD speeds up BGP route convergence, ensures fast link switching, and reduces traffic loss.

When a peer joins a peer group on which BFD is enabled, BFD also takes effect on the peer and a BFD session is created on the peer. To prevent BFD from taking effect on the peer, run the peer bfd block command.

By default, Huawei devices establish multi-hop IBGP sessions with each other. When a Huawei device communicates with a non-Huawei device that establishes a single-hop IBGP session by default, you are advised to configure only association between IGP and BFD or association between IBGP and BFD.


  1. Run system-view

    The system view is displayed.

  2. Run bfd

    Global BFD is enabled on the local device.

  3. Run quit

    Return to the system view.

  4. Run bgp { as-number-plain | as-number-dot }

    The BGP view is displayed.

  5. Run peer { group-name | ipv4-address | ipv6-address } bfd enable [ single-hop-prefer ]

    BFD is configured for the peer or peer group, and default BFD parameters are used to establish BFD sessions.

    If BFD is configured for a peer group, BFD sessions are created for the peers on which the peer bfd block command is not used.

  6. Run peer { group-name | ipv4-address | ipv6-address } bfd { min-tx-interval min-tx-interval | min-rx-interval min-rx-interval | detect-multiplier multiplier } *

    BFD session parameters are configured.

  7. (Optional) Run peer { ipv4-address | ipv6-address } bfd block

    The peer is disabled from inheriting the BFD function of the peer group to which the peer belongs.

    • BFD sessions are established when they are in Established state.
    • If BFD parameters are configured on a peer, BFD sessions are established using these parameters.
    • The peer { ipv4-address | ipv6-address } bfd block and peer { ipv4-address | ipv6-address } bfd enable commands are mutually exclusive.

  8. Run commit

    The configuration is committed.

Verifying the Configuration

  • Run the display bgp bfd session { [ vpnv4 vpn-instance vpn-instance-name ] peer ipv4-address | all } command to check information about the BFD sessions established between BGP peers.

  • Run the display bgp [ vpnv4 vpn-instance vpn-instance-name ] peer [ [ ipv4-address ] verbose ] command to check information about BGP peers.

  • Run the display bgp group [ group-name ] command to check information about the specified BGP peer group.

  • Run the display bgp vpnv4 { all | vpn-instance vpn-instance-name } group [ group-name ] command to check information about the BGP VPNv4 peer group.

Updated: 2019-03-21

Document ID: EDOC1000166601

Views: 274820

Downloads: 161

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next