96
Configuring BFD for OSPF
OSPF supports the following BFD detection methods:
•
Control packet bidirectional detection, which requires BFD configuration to be made on both OSPF
routers on the link.
•
Echo packet single-hop detection, which requires BFD configuration to be made on one OSPF router
on the link.
Configuring control packet bidirectional detection
Both ends of a BFD session must be on the same network segment and in the same area. One network
segment can only belong to one area.
To enable BFD control packet bidirectional detection on an OSPF interface:
Step Command
Description
1.
Enter system view.
system-view
N/A
2.
Enter interface view.
interface
interface-type
interface-number
N/A
3.
Enable BFD control packet bidirectional
detection on the interface.
ospf bfd enable
Not enabled by
default.
Configuring echo packet single-hop detection
Step Command
Description
1.
Enter system view.
system-view
N/A
2.
Configure the source address of echo
packets.
bfd echo-source-ip
ip-address
Not configured by
default.
3.
Enter interface view.
interface
interface-type
interface-number
N/A
4.
Enable BFD echo packet single-hop
detection on the interface.
ospf bfd enable echo
Not enabled by
default.
Displaying and maintaining OSPF
Task Command
Remarks
Display OSPF brief information.
display ospf
[
process-id
]
brief
[
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any
view
Display OSPF statistics.
display ospf
[
process-id
]
cumulative
[
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any
view