Configuring BFD for BGP
BGP maintains neighbor relationships based on the keepalive timer and holdtime timer, which are set in
seconds. BGP defines that the holdtime interval must be at least three times the keepalive interval. This
slows down link failure detection; once a failure occurs on a high-speed link, a large quantity of packets
will be dropped. BFD is introduced to solve this problem. It detects links between neighbors quickly to
reduce convergence time upon link failures.
Follow these steps to enable BFD for a BGP peer:
To do...
Enter system view
Enter BGP view
Enable BFD for the specified BGP
peer
NOTE:
Before configuring BFD for BGP, you need to enable BGP.
•
After a link failure occurs, BFD may detect the failure before the system performs GR. As a result, GR will
•
fail. If GR capability is enabled for BGP, use BFD with caution. If GR and BFD are both enabled, do not
disable BFD during a GR process; otherwise, GR may fail.
For BFD configuration, see High Availability Configuration Guide.
•
Displaying and maintaining BGP
Displaying BGP
To do...
Display peer group information
Display advertised BGP routing
information
Display AS path information
Display BGP peer or peer group
information
Display the prefix information in
the ORF packet from the specified
BGP peer
Display BGP routing information
Use the command...
system-view
bgp as-number
peer ip-address bfd
Use the command...
display bgp group [ group-name ] [ | { begin | exclude
| include } regular-expression ]
display bgp network [ | { begin | exclude | include }
regular-expression ]
display bgp paths [ as-regular-expression | | { begin |
exclude | include } regular-expression ]
display bgp peer [ ip-address { log-info | verbose } |
group-name log-info | verbose ] [ | { begin | exclude
| include } regular-expression ]
display bgp peer ip-address received ip-prefix [ |
{ begin | exclude | include } regular-expression ]
display bgp routing-table [ ip-address [ { mask |
mask-length } [ longer-prefixes ] ] ] [ | { begin |
exclude | include } regular-expression ]
230
Remarks
—
—
Required
Not enabled for any BGP peer by
default
Remarks
Available in
any view