Enable BFD under OSPF

This command helps to enable BFD under Open Shortest Path First (OSPF) for a particular IP (VLAN specific). When OSPF adjacency with a neighbor attains state FULL, BFD is informed to create a session in asynchronous mode. After the BFD session is UP, echo is enabled for the session.

Syntax


ip ospf IP-ADDR bfd
no ip ospf IP-ADDR bfd

Description

Enable BFD in OSPF for VLAN specific IP address.

Options

IP-ADDR

Specify the IP address of VLAN for which BFD has to be enabled.

BFD

Configure Bidirectional Forwarding Detection (BFD) for the VLAN.

NOTE:

Both end-points hosting the BFD sessions must be on the same network segment and in the same area.

Enable BFD under OSPF configuration

; J9850A Configuration Editor; Created on release #KB.16.02.0000x
; Ver #0b:fc.59.f4.7b.ff.ff.fc.ff.ff.3f.ef:0d
hostname "switch"
module A type j9989a
module C type j9550a
module F type j9987a
snmp-server community "public" unrestricted
oobm
   ip address dhcp-bootp
   exit
vlan 1
 name "DEFAULT_VLAN"
 untagged A2-A24,C1-C24,F1-F24
 ip address dhcp-bootp
 exit
ip routing
router ospf
 area 0.0.0.2
 area 0.0.0.3
 area backbone
 enable
 exit
bfd enable
bfd echo-src-ip-address 2.2.2.2
vlan 20
 untagged A1
 bfd min-transmit-interval 10 min-receive-interval 10 detect-multiplier 3
 bfd min-echo-receive-interval 700
 ip address 100.100.100.100 255.255.255.0
 ip ospf 100.100.100.100 area backbone
 ip ospf 100.100.100.100 bfd
 exit

Show BFD-session

switch# show bfd-session 1

BFD Session Information – Session 1
  
  Min Tx Interval (sec)       : 10                 
  Min Rx Interval (sec)       : 10                 
  Min Echo Rx Interval (msec) : 700               
  Detect Multiplier           : 3                 
  Authentication Mode         : NONE                     
  Password                    : ""                    
  Application                 : OSPF       
  Local Discriminator         : 1          
  Remote Discriminator        : 1          
  Echo                        : Enabled  
  Local Diagnostic            : No diagnostics configured.        
  
  VLAN Source IP    Destination IP  State Pkt In Pkt Drop Pkt Out 
  ---- ------------ ---------------   ----- ------ ------- -------
  20    100.100.100.100 100.100.100.101 Up    322      0   320