37-11
Software Configuration Guide—Release IOS XE 3.3.0SG and IOS 15.1(1)SG
OL-25340-01
Chapter 37 Configuring Bidirection Forwarding Detection
How to Configure Bidirectional Forwarding Detection
• You can enable BFD on all the interfaces for which OSPF is routing by using the bfd all-interfaces
command in router configuration mode. You can disable BFD support on individual interfaces using
the ip ospf bfd [disable] command in interface configuration mode.
• You can enable BFD on a subset of the interfaces for which OSPF is routing by using the ip ospf
bfd command in interface configuration mode.
See the following sections for tasks for configuring BFD support for OSPF:
• Configuring BFD Support for OSPF for All Interfaces, page 37-11 (optional)
• Configuring BFD Support for OSPF for One or More Interfaces, page 37-12 (optional)
Configuring BFD Support for OSPF for All Interfaces
To configure BFD for all OSPF interfaces, perform the steps in this section.
If you do not want to configure BFD on all OSPF interfaces and would rather configure BFD support
specifically for one or more interfaces, see the “Configuring BFD Support for OSPF for One or More
Interfaces” section on page 37-12.
Prerequisites
OSPF must be running on all participating switches.
The baseline parameters for BFD sessions on the interfaces over which you want to run BFD sessions to
BFD neighbors must be configured. See the “Configuring BFD Session Parameters on the Interface”
section on page 37-8 for more information.
To configure BFD support for OSPF for all interfaces:
Command or Action Purpose
Step 1
enable
Switch> enable
Enables privileged EXEC mode.
• Enter your password if prompted.
Step 2
configure terminal
Switch# configure terminal
Enters global configuration mode.
Step 3
Switch ospf process-id
Switch(config)# router ospf 4
Specifies an OSPF process and enters router configuration
mode.
Step 4
bfd all-interfaces
Switch(config-router)# bfd all-interfaces
Enables BFD globally on all interfaces associated with the
OSPF routing process.
Step 5
end
Switch(config-if)# end
Exits interface configuration mode and returns the switch to
privileged EXEC mode.
Step 6
show bfd neighbors [details]
Switch# show bfd neighbors detail
(Optional) Displays information that can help verify if the
BFD neighbor is active and displays the routing protocols
that BFD has registered.
Step 7
show ip ospf
Switch# show ip ospf
(Optional) Displays information that can help verify if BFD
for OSPF has been enabled.