Setting a BFD Session to Passive

BFD sessions can be set to passive for OSPFv2-enabled and OSPFv3-enabled interfaces. The following task enables BFD for an OSPFv2-enabled Ethernet interface and sets the BFD session to passive.
  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the interface command, specifying an interface.
    device(config)# interface ethernet 1/1/1
  3. Enter the ip ospf bfd command to enable BFD for the OSPFv2 interface.
    device(config-if-e40000-1/1/1)# ip ospf bfd
  4. Enter the ip ospf bfd command with the passive keyword to set the BFD session as passive.
    device(config-if-e40000-1/1/1)# ip ospf bfd passive

The following example enables BFD for an OSPFv2-enabled Ethernet interface and sets the BFD session to passive.

device# configure terminal 
device(config)# interface ethernet 1/1/1
device(config-if-e40000-1/1/1)# ip ospf bfd
device(config-if-e40000-1/1/1)# ip ospf bfd passive

The following example enables BFD for an OSPFv3-enabled virtual Ethernet interface and sets the BFD session to passive.

device# configure terminal
device(config)# interface ve 26
device(config-vif-26)# ipv6 ospf bfd
device(config-vif-26)# ipv6 ospf bfd passive