Configuration Example: BFD for eBGP Single-Hop Session

The following figure shows a BFD single-hop session that is configured for eBGP for Ethernet interface 1/1/1 on two devices, Router 1 and Router 2.

BFD for eBGP Single-Hop Session

The following configuration example enables BFD for eBGP for Ethernet interface 1/1/1 on Router 1 globally. BFD session parameters are also configured.

Router1# configure terminal
Router1(config)# interface ethernet 1/1/1
Router1(config-if-e40000-1/1/1)# ip address 10.0.0.1/24
Router1(config-if-e40000-1/1/1)# exit
Router1(config)# router bgp
Router1(config-bgp-router)# local-as 1
Router1(config-bgp-router)# bfd
Router1(config-bgp-router)# bfd min-tx 290 min-rx 300 multiplier 3
Router1(config-bgp-router)# neighbor 10.0.0.2 remote-as 1

The following configuration example enables BFD for eBGP for a BGP peer on Router 1. BFD session parameters are also configured.

 
Router1# configure terminal
Router1(config)# router bgp
Router1(config-bgp-router)# local-as 1
Router1(config-bgp-router)# neighbor 10.0.0.2 remote-as 2
Router1(config-bgp-router)# neighbor 10.0.0.2 bfd
Router1(config-bgp-router)# neighbor 10.0.0.2 bfd min-tx 300 min-rx 290 multiplier 3

The following configuration example enables BFD for a BGP peer group on Router 1. BFD session parameters are also configured.

Router1# configure terminal
Router1(config)# router bgp
Router1(config-bgp-router)# local-as 1
Router1(config-bgp-router)# neighbor pg peer-group
Router1(config-bgp-router)# neighbor pg remote-as 2
Router1(config-bgp-router)# neighbor pg bfd
Router1(config-bgp-router)# neighbor pg bfd min-tx 290 min-rx 300 multiplier 3
Router1(config-bgp-router)# neighbor 10.0.0.2 pg

The following configuration example enables BFD for eBGP for Ethernet interface 1/1/1 on Router 2 globally. BFD session parameters are also configured.

Router2# configure terminal
Router2(config)# interface ethernet 1/1/1
Router2(config-if-e40000-1/1/1)# ip address 10.0.0.2/24
Router2(config-if-e40000-1/1/1)# exit
Router2(config)# router bgp
Router2(config-bgp-router)# local-as 2
Router2(config-bgp-router)# bfd
Router2(config-bgp-router)# bfd min-tx 300 min-rx 290 multiplier 3
Router2(config-bgp-router)# neighbor 10.0.0.1 remote-as 1

The following configuration example enables BFD for eBGP for a BGP peer on Router 2. BFD session parameters are also configured.

Router2# configure terminal
Router2(config)# router bgp
Router2(config-bgp-router)# local-as 2
Router2(config-bgp-router)# neighbor 10.0.0.1 remote-as 1
Router2(config-bgp-router)# neighbor 10.0.0.1 bfd
Router2(config-bgp-router)# neighbor 10.0.0.1 bfd min-tx 295 min-rx 300 multiplier 3

The following configuration example enables BFD for a BGP peer group on Router 2. BFD session parameters are also configured.

Router2# configure terminal
Router2(config)# router bgp
Router2(config-bgp-router)# local-as 2
Router2(config-bgp-router)# neighbor pg peer-group
Router2(config-bgp-router)# neighbor pg remote-as 1
Router2(config-bgp-router)# neighbor pg bfd
Router2(config-bgp-router)# neighbor pg bfd min-tx 300 min-rx 295 multiplier 3
Router2(config-bgp-router)# neighbor 10.0.0.1 pg