Configuring BFD for OSPFv2 Globally in a Nondefault VRF Instance

BFD can be enabled globally for all OSPFv2-enabled interfaces for a nondefault VRF instance. The following task enables BFD globally on all OSPFv2 interfaces with default session parameters, and sets the BFD holdover interval, for a nondefault VRF instance.
  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the router ospf command with the vrf keyword, specifying a VRF, to enable OSPFv2 in a nondefault VRF instance.
    device(config)# router ospf vrf red
  3. Enter the bfd command to enable BFD globally with default session parameters on OSPFv2 interfaces for the VRF instance.
    device(config-ospf-router-vrf-red)# bfd
  4. Enter the bfd command with the holdover-interval keyword, specifying a value, to set the BFD holdover interval globally.
    device(config-ospf-router-vrf-red)# bfd holdover-interval 10

The following example enables BFD globally on all OSPFv2 interfaces with default session parameters, and sets the BFD holdover interval to 10 seconds for VRF red.

device# configure terminal
device(config)# router ospf vrf red
device(config-ospf-router-vrf-red)# bfd
device(config-ospf-router-vrf-red)# bfd holdover-interval 10