Configuring BFD for BGP for a Nondefault VRF Instance

BFD can be enabled and BFD session parameters can be set globally for BGP-enabled interfaces for a nondefault VRF instance. The following task enables BFD globally for BGP, configures the BFD 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 bgp command to enable BGP routing.
    device(config)# router bgp
  3. Enter the address-family ipv4 unicast command with the vrf keyword, specifying a VRF name, to enter BGP address-family IPv4 unicast VRF configuration mode.
    device(config)# address-family ipv4 unicast vrf red
  4. Enter the bfd command to enable BFD globally for the VRF instance.
    device(config-bgp-ipv4u-vrf)# bfd
  5. Enter the bfd min-tx command with the min-rx and multiplier keywords, specifying the required intervals, to configure BFD session parameters for BGP for the VRF instance.
    device(config-bgp-ipv4u-vrf)# bfd min-tx 280 min-rx 300 multiplier 3
  6. Enter the bfd holdover-interval command and specify a value to set the BFD holdover interval globally for the VRF instance.
    device(config-bgp-ipv4u-vrf)# bfd holdover-interval 10

The following example enables BFD globally for BGP, configures the BFD session parameters, and sets the BFD holdover interval to 16 for VRF red for the IPv4 address family.

device# configure terminal
device(config)# router bgp
device(config)# address-family ipv4 unicast vrf red
device(config-bgp-ipv4u-vrf)# bfd
device(config-bgp-ipv4u-vrf)# bfd min-tx 280 min-rx 300 multiplier 3
device(config-bgp-ipv4u-vrf)# bfd holdover-interval 10

The following example enables BFD globally for BGP, configures the BFD session parameters, and sets the BFD holdover interval to 17 for VRF green for the IPv6 address family.

device# configure terminal
device(config)# router bgp
device(config)# address-family ipv6 unicast vrf green
device(config-bgp-ipv6u-vrf)# bfd
device(config-bgp-ipv6u-vrf)# bfd min-tx 290 min-rx 300 multiplier 3
device(config-bgp-ipv6u-vrf)# bfd holdover-interval 10