Administrator Guide

INTERFACE mode
ip ospf bfd all-neighbors
Example of Verifying Sessions with OSPF Neighbors
To view the established sessions, use the show bfd neighbors command.
The bold line shows the OSPF BFD sessions.
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 Te 2/1 Up 100 100 3 O
* 2.2.3.1 2.2.3.2 Te 2/2 Up 100 100 3 O
Establishing Sessions with OSPF Neighbors for nondefault VRFs
To congure BFD in a nondefault VRF, follow this procedure:
Enable BFD globally.
CONFIGURATION mode
bfd enable
Establish sessions with all OSPF neighbors in a specic VRF.
ROUTER-OSPF mode
bfd all-neighbors
Establish sessions with OSPF neighbors on a single interface in a specic VRF.
INTERFACE mode
ip ospf bfd all-neighbors
to disable BFD on a specic OSPF enabled interface, use the ip ospf bfd all-neighbors disable command. You can also
use the no bfd enable command to disable BFD on a specic interface.
The following example shows the conguration to establish sessions with all OSPF neighbors in a specic VRF:
router ospf 20 vrf VRF_blue
bfd all-neighbors
!
The following example shows the conguration to establish sessions with all OSPF neighbors on a single interface in a specic VRF:
int vlan 20
ip vrf forwarding vrf VRF_blue
ip ospf bfd all-neighbors
The following example shows the show bfd vrf neighbors command output.
show bfd neighbors
* - Active session role
Ad Dn - Admin Down
156
Bidirectional Forwarding Detection (BFD)