Bidirectional Forwarding Detection (BFD) | 153
To establish BFD for all OSPF neighbors on a single interface:
View the established sessions using the command
show bfd neighbors, as shown in the example below.
R2(conf-router_ospf)#bfd all-neighbors
R2(conf-router_ospf)#do show bfd neighbors
* - Active session role
Ad Dn - Admin Down
C - CLI
I - ISIS
O - OSPF
R - Static Route (RTM)
LocalAddr RemoteAddr Interface State Rx-int Tx-int Mult Clients
* 2.2.2.2 2.2.2.1 Gi 2/1 Up 100 100 3 O
* 2.2.3.1 2.2.3.2 Gi 2/2 Up 100 100 3 O
Changing OSPF session parameters
BFD sessions are configured with default intervals and a default role. The parameters that can be
configured are: Desired TX Interval, Required Min RX Interval, Detection Multiplier, and system role.
These parameters are configured for all OSPF sessions or all OSPF sessions on a particular interface; if
you change a parameter globally, the change affects all OSPF neighbors sessions. If you change a
parameter at interface level, the change affects all OSPF sessions on that interface.
To change parameters for all OSPF sessions:
To change parameters for OSPF sessions on an interface:
View session parameters using the command
show bfd neighbors detail, as shown in the example in
Displaying BFD for BGP Information.
Step Task Command Syntax Command Mode
1 Establish sessions with all OSPF neighbors on a
single interface.
ip ospf bfd all-neighbors INTERFACE
Step Task Command Syntax Command Mode
1 Change parameters for OSPF
sessions.
bfd all-neighbors interval milliseconds
min_rx milliseconds multiplier value role
[active | passive]
ROUTER-OSPF
Step Task Command Syntax Command Mode
1 Change parameters for all OSPF
sessions on an interface.
ip ospf bfd all-neighbors interval
milliseconds min_rx milliseconds multiplier
value role [active | passive]
INTERFACE