Users 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/1 Up 100 100 3 O
* 2.2.3.1 2.2.3.2 Te 2/2/1 Up 100 100 3 O
Establishing Sessions with OSPF Neighbors for nondefault VRFs
To congure BFD in a nondefault VRF, follow this procedure:
• Enable BFD globally.
CONFIGURATION mode
bfd enable
• Establish sessions with all OSPF neighbors in a specic VRF.
ROUTER-OSPF mode
bfd all-neighbors
• Establish sessions with OSPF neighbors on a single interface in a specic VRF.
INTERFACE mode
ip ospf bfd all-neighbors
• to disable BFD on a specic 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 specic interface.
The following example shows the conguration to establish sessions with all OSPF neighbors in a specic VRF:
router ospf 20 vrf vrf1
bfd all-neighbors
!
The following example shows the conguration to establish sessions with all OSPF neighbors on a single interface in a specic VRF:
int vlan 1002
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
148
Bidirectional Forwarding Detection (BFD)