276 
[RouterC-bgp-ipv4] peer 9.1.1.1 enable 
Verifying the configuration 
Ping Router C on Router A. Meanwhile, perform an active/standby switchover on Router B. The ping 
operation is successful during the whole switchover process.  
BFD for BGP configuration example 
Network requirements 
As shown in Figure 71,  
•  Run OSPF in AS 200.  
•  Establish two IBGP connections between Router A and Router C. When both paths are working, 
Router C adopts the path Router A<—>Router B<—>Router C to communicate with network 
1.1.1.0/24. Configure BFD over the path. If the path fails, BFD can quickly detect the failure and 
notify it to BGP. Then the path Router A<—>Router D<—>Router C takes effect immediately.  
Figure 71 Network diagram 
 
 
Configuration procedure 
1.  Configure IP addresses for interfaces. (Details not shown.) 
2.  Configure OSPF so that Router A and Router C can reach each other. (Details not shown.) 
3.  Configure BGP on Router A: 
# Establish two IBGP connections to Router C.  
<RouterA> system-view 
[RouterA] bgp 200 
[RouterA-bgp] peer 3.0.2.2 as-number 200 
[RouterA-bgp] peer 2.0.2.2 as-number 200 
[RouterA-bgp] address-family ipv4 unicast 
[RouterA-bgp-ipv4] peer 3.0.2.2 enable 
[RouterA-bgp-ipv4] peer 2.0.2.2 enable 
[RouterA-bgp-ipv4] quit 
# Create ACL 2000 to permit 1.1.1.0/24 to pass.  
[RouterA] acl number 2000 
[RouterA-acl-basic-2000] rule permit source 1.1.1.0 0.0.0.255