Configuring BFD for OSPF is a two-step process:
1.
Enabling BFD
2.
Establishing sessions with OSPF
Related configuration tasks
•
Changing OSPF session
•
Disabling BFD for
Establishing sessions with OSPF neighbors
BFD sessions can be established with all OSPF neighbors at once or sessions can be established with all
neighbors out of a specific interface. Sessions are only established when the OSPF adjacency is in the full
state.
FTOS(conf-if-gi-2/1)# ip address 2.2.2.2/24
FTOS(conf-if-gi-2/1)# no shutdown
FTOS(conf-if-gi-2/1)# exit
FTOS(config)# router ospf 1
FTOS(config-router_ospf )# network 2.2.2.0/24 area 0
FTOS(config-router_ospf )# bfd all-neighbors
R1
To establish BFD with all OSPF neighbors:
Step
Task
1
Establish sessions with all OSPF neighbors.
152
|
Bidirectional Forwarding Detection (BFD)
globally.
parameters.
OSPF.
AREA 0
2/1
4/24
2.2.2.1/24
2.2.2.2/24
FTOS(conf-if-gi-4/24)# ip address 2.2.2.1/24
FTOS(conf-if-gi-4/24)# no shutdown
FTOS(conf-if-gi-4/24)# exit
FTOS(config)# router ospf 1
FTOS(config-router_ospf )# network 2.2.2.0/24 area 0
FTOS(config-router_ospf )# bfd all-neighbors
neighbors.
FTOS(conf-if-gi-2/2)# ip address 2.2.3.1/24
FTOS(conf-if-gi-2/2)# no shutdown
FTOS(conf-if-gi-2/2)# exit
FTOS(config)# router ospf 1
FTOS(config-router_ospf )# network 2.2.3.0/24 area 1
FTOS(config-router_ospf )# bfd all-neighbors
R2
2/2
2.2.3.1/24
FTOS(conf-if-gi-6/0)# ip address 2.2.3.2/24
FTOS(conf-if-gi-6/0)# no shutdown
FTOS(conf-if-gi-6/0)# exit
FTOS(config)# router ospf 1
FTOS(config-router_ospf )# network 2.2.3.0/24 area 1
FTOS(config-router_ospf )# bfd all-neighbors
R4
2.2.4.2/24
Command Syntax
bfd all-neighbors
FTOS(conf-if-gi-6/1)# ip address 2.2.4.1/24
FTOS(conf-if-gi-6/1)# no shutdown
FTOS(conf-if-gi-6/1)# exit
FTOS(config)# router ospf 1
FTOS(config-router_ospf )# network 2.2.4.0/24 area 1
FTOS(config-router_ospf )# bfd all-neighbors
AREA 1
R3
6/0
2.2.3.2/24
6/1
2.2.4.1/24
1/1
FTOS(conf-if-gi-6/0)# ip address 2.2.4.2/24
FTOS(conf-if-gi-6/0)# no shutdown
FTOS(conf-if-gi-6/0)# exit
FTOS(config)# router ospf 1
FTOS(config-router_ospf )# network 2.2.4.0/24 area 1
FTOS(config-router_ospf )# bfd all-neighbors
Command Mode
ROUTER-OSPF