# 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
Verify the configuration:
4.
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.
BFD for BGP configuration example
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.
Figure 97 Network diagram
AS 100
1.1.1.0/24
Device
Switch A
Switch B
Configuration procedure
Configure IP addresses for interfaces. (Details not shown.)
1.
Figure
97,
Vlan-int30
Vlan-int30
Switch E
Interface
Vlan-int100
Vlan-int200
Vlan-int30
Vlan-int100
Vlan-int101
Switch B
Vlan-int100
Vlan-int100
Vlan-int200
Switch A
Vlan-int200
Switch D
IP address
Device
3.0.1.1/24
Switch C
2.0.1.1/24
30.1.1.1/24
Switch D
3.0.1.2/24
3.0.2.1/24
Switch E
248
Vlan-int101
Vlan-int101
AS 200
Vlan-int201
Switch C
Vlan-int201
Interface
Vlan-int101
Vlan-int201
Vlan-int200
Vlan-int201
Vlan-int30
AS 300
IP address
3.0.2.2/24
2.0.2.2/24
2.0.1.2/24
2.0.2.1/24
30.1.1.2/24