![H3C S5500-EI series Скачать руководство пользователя страница 271](http://html2.mh-extra.com/html/h3c/s5500-ei-series/s5500-ei-series_configuration-manual_3726960271.webp)
254
# Inject network 8.0.0.0/8 to the BGP routing table.
[SwitchA-bgp] network 8.0.0.0
# Enable GR capability for BGP.
[SwitchA-bgp] graceful-restart
2.
Configure Switch B.
# Configure IP addresses for interfaces. (Details not shown)
# Configure the eBGP connection.
<SwitchB> system-view
[SwitchB] bgp 65009
[SwitchB-bgp] router-id 2.2.2.2
[SwitchB-bgp] peer 200.1.1.2 as-number 65008
# Configure the iBGP connection.
[SwitchB-bgp] peer 9.1.1.2 as-number 65009
# Inject networks 200.1.1.0/24 and 9.1.1.0/24 to the BGP routing table.
[SwitchB-bgp] network 200.1.1.0 24
[SwitchB-bgp] network 9.1.1.0 24
# Enable GR capability for BGP.
[SwitchB-bgp] graceful-restart
3.
Configure Switch C.
# Configure IP addresses for interfaces. (Details not shown)
# Configure the iBGP connection.
<SwitchC> system-view
[SwitchC] bgp 65009
[SwitchC-bgp] router-id 3.3.3.3
[SwitchC-bgp] peer 9.1.1.1 as-number 65009
# Enable GR capability for BGP.
[SwitchC-bgp] graceful-restart
4.
Verify the configuration.
Ping Switch C on Switch A. Meanwhile, perform a master/slave switchover on Switch B. The ping
operation is successful during the whole switchover process.
Configuring BFD for BGP
Network requirements
As shown in
,
•
Configure OSPF as the IGP in AS 200.
•
Establish two iBGP connections between Switch A and Switch C. When both links are working,
Switch C adopts the link Switch A<—>Switch B<—>Switch C to exchange packets with network
1.1.1.0/24. Configure BFD over the link. Then if the link fails, BFD can quickly detect the failure and
notify it to BGP. Then the link Switch A<—>Switch D<—>Switch C takes effect immediately.