R0106-HP MSR Router Series Layer 3 - IP Routing Configuration Guide(V7)

320
# Configure the EBGP connection.
<RouterB> system-view
[RouterB] bgp 65009
[RouterB-bgp] router-id 2.2.2.2
[RouterB-bgp] peer 200.1.1.2 as-number 65008
# Configure the IBGP connection.
[RouterB-bgp] peer 9.1.1.2 as-number 65009
# Enable GR capability for BGP.
[RouterB-bgp] graceful-restart
# Inject networks 200.1.1.0/24 and 9.1.1.0/24 to the IPv4 BGP routing table.
[RouterB-bgp] address-family ipv4
[RouterB-bgp-ipv4] network 200.1.1.0 24
[RouterB-bgp-ipv4] network 9.1.1.0 24
# Enable Router B to exchange IPv4 unicast routing information with Router A and Router C.
[RouterB-bgp-ipv4] peer 200.1.1.2 enable
[RouterB-bgp-ipv4] peer 9.1.1.2 enable
3. Configure Router C:
# Configure IP addresses for interfaces. (Details not shown.)
# Configure the IBGP connection.
<RouterC> system-view
[RouterC] bgp 65009
[RouterC-bgp] router-id 3.3.3.3
[RouterC-bgp] peer 9.1.1.1 as-number 65009
# Enable GR capability for BGP.
[RouterC-bgp] graceful-restart
# Enable Router C to exchange IPv4 unicast routing information with Router B.
[RouterC-bgp] address-family ipv4
[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 74:
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.