Enabling BFD Sessions for a BGP Neighbor for a Nondefault VRF Instance

BFD sessions can be configured for specified BGP neighbors in a nondefault VRF instance for both the IPv4 and IPv6 unicast address families The following task enables a BFD session for a BGP neighbor with the IP address 10.5.1.1 and configures the BFD session parameters for VRF instance “red”.
  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-bgp-router)# 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 neighbor bfd command, specifying an IP address, to enable BFD sessions for the for the neighbor in the nondefault VRF instance.
    device(config-bgp-ipv4u-vrf)# neighbor 10.5.1.1 bfd
  5. Enter the neighbor bfd command, specifying an IP address, with the min-tx, min-rx, and multiplier keywords, specifying the required intervals, to set the BFD session parameters for the BGP neighbor for the nondefault VRF instance.
    device(config-bgp-ipv4u-vrf)# neighbor 10.5.1.1 bfd min-tx 300 min-rx 298 multiplier 3
  6. Enter the neighbor bfd command, specifying an IP address, with the holdover-interval keyword and specify a value to set the BFD holdover interval for the BGP neighbor for the nondefault VRF instance.
    device(config-bgp-ipv4u-vrf)# neighbor 10.5.1.1 bfd holdover-interval 10

The following example enables a BFD session for a BGP neighbor with the IP address 10.5.1.1 and configures the BFD session parameters and holdover interval for VRF instance “red”.

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

The following example enables a BFD session for a BGP neighbor with the IPv6 address 2001:2018:8192::125 and sets the BFD session timer values and holdover interval for VRF instance “green”.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# address-family ipv6 unicast vrf green
device(config-bgp-ipv6u)# neighbor 2001:2018:8192::125 bfd
device(config-bgp-ipv6u)# neighbor 2001:2018:8192::125 bfd min-tx 302 min-rx 290 multiplier 3
device(config-bgp-ipv6u)# neighbor 2001:2018:8192::125 bfd holdover-interval 10