Configuration for fast BGP covergence

Simple example for bfd+bgp
R1 1.4 config

set protocols bfd peer 192.0.2.2 source address '192.0.2.1'
set protocols bgp local-as '65001'
set protocols bgp neighbor 192.0.2.2 bfd
set protocols bgp neighbor 192.0.2.2 remote-as '65002'

R2 1.2.8 config

set protocols bfd peer 192.0.2.1 source address '192.0.2.2'
set protocols bgp 65002 neighbor 192.0.2.1 bfd
set protocols bgp 65002 neighbor 192.0.2.1 remote-as '65001'

Poweroff or set interface down on R1 and check bgp state on R2:

Neighbor        V         AS MsgRcvd MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd
192.0.2.1       4      65001       5       5        0    0    0 00:00:08       Active

Be attention you may need to increase bfd timers if RTT for remote peer so big.

1 Like