Configuration Examples for Bidirectional Forwarding Detection
Ethernet interface 6/1 in SwitchB. The example, starting in global configuration mode, shows the
configuration of BFD. For both SwitchA and SwitchB, BFD is configured globally for all interfaces
associated with the OSPF process.
Configuration for SwitchA
!
interface GigsbitEthernet 6/1
no switchport
ip address 172.16.10.1 255.255.255.0
bfd interval 50 min_rx 50 multiplier 3
!
interface GigsbitEthernet 6/2
no switchport
ip address 172.17.0.1 255.255.255.0
!
router ospf 123
log-adjacency-changes detail
network 172.16.0.0 0.0.0.255 area 0
network 172.17.0.0 0.0.0.255 area 0
bfd all-interfaces
Configuration for SwitchB
!
interface GigsbitEthernet 6/1
no switchport
ip address 172.16.10.2 255.255.255.0
bfd interval 50 min_rx 50 multiplier 3
!
interface GigsbitEthernet 6/2
no switchport
ip address 172.18.0.1 255.255.255.0
!
router ospf 123
log-adjacency-changes detail
network 172.16.0.0 0.0.255.255 area 0
network 172.18.0.0 0.0.255.255 area 0
bfd all-interfaces
The output from the show bfd neighbors details command verifies that a BFD session has been created
and that OSPF is registered for BFD support. The relevant command output is shown in bold in the
output.
SwitchA
SwitchA# show bfd neighbors details
OurAddr
172.16.10.1
Local Diag: 0, Demand mode: 0, Poll bit: 0
MinTxInt: 200000, MinRxInt: 200000, Multiplier: 5
Received MinRxInt: 1000, Received Multiplier: 3
Holdown (hits): 600(22), Hello (hits): 200(84453)
Rx Count: 49824, Rx Interval (ms) min/max/avg: 208/440/332 last: 68 ms ago
Tx Count: 84488, Tx Interval (ms) min/max/avg: 152/248/196 last: 192 ms ago
Registered protocols: OSPF
Uptime: 02:18:49
Last packet: Version: 0
Software Configuration Guide—Release IOS XE 3.3.0SG and IOS 15.1(1)SG
37-22
NeighAddr
LD/RD RH
172.16.10.2
1/2
1
- Diagnostic: 0
I Hear You bit: 1
- Demand bit: 0
Poll bit: 0
- Final bit: 0
Multiplier: 3
- Length: 24
My Discr.: 2
- Your Discr.: 1
Chapter 37
Configuring Bidirection Forwarding Detection
Holdown(mult)
State
532
(3 )
Up
Int
Gi6/1
OL-25340-01