配置R1
[R1]ospf router-id 2.2.2.2
[R1-ospf-1]area 0
[R1-ospf-1-area-0.0.0.0]network 2.2.2.0 0.0.0.255
[R1-ospf-1-area-0.0.0.0]network 12.1.1.0 0.0.0.255
[R1-ospf-1-area-0.0.0.0]network 13.1.1.0 0.0.0.255
[R1-ospf-1-area-0.0.0.0]quit
[R1]bfd
[R1-ospf-1]bfd all-interfaces ?
detect-multiplier Specify the detect multiplier
enable Enable BFD
frr-binding Configure BFD binding link status for Auto FRR
min-rx-interval Specify the minimum receive interval
min-tx-interval Specify the minimum transmit interval
[R1-ospf-1]bfd all-interfaces enable ?
<cr> Please press ENTER to execute command
[R1-ospf-1]bfd all-interfaces enable
Warning: The configuration succeeded. You need to enable global BFD to validate
the configuration.
[R1-ospf-1]quit
查看R1配置BFD结果
[R1]display bfd session all
--------------------------------------------------------------------------------
Local Remote PeerIpAddr State Type InterfaceName
--------------------------------------------------------------------------------
8192 8193 12.1.1.2 Up D_IP_IF GigabitEthernet0/0/1
--------------------------------------------------------------------------------
Total UP/DOWN Session Number : 1/0
[R1]
配置R2
[R2]ospf router-id 3.3.3.3
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 3.3.3.0 0.0.0.255
[R2-ospf-1-area-0.0.0.0]network 12.1.1.0 0.0.0.255
[R2-ospf-1-area-0.0.0.0]network 13.1.1.0 0.0.0.255
[R2-ospf-1-area-0.0.0.0]quit
[R2]bfd
[R2-ospf-1]bfd all-interfaces ?
detect-multiplier Specify the detect multiplier
enable Enable BFD
frr-binding Configure BFD binding link status for Auto FRR
min-rx-interval Specify the minimum receive interval
min-tx-interval Specify the minimum transmit interval
[R2-ospf-1]bfd all-interfaces enable ?
<cr> Please press ENTER to execute command
[R2-ospf-1]bfd all-interfaces enable
Warning: The configuration succeeded. You need to enable global BFD to validate
the configuration.
[R2-ospf-1]quit
查看R2 配置的BFD结果
[R2]display bfd session all
--------------------------------------------------------------------------------
Local Remote PeerIpAddr State Type InterfaceName
--------------------------------------------------------------------------------
8193 8192 12.1.1.1 Up D_IP_IF GigabitEthernet0/0/1
--------------------------------------------------------------------------------
Total UP/DOWN Session Number : 1/0