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.
- Enter the
configure terminalcommand to access global configuration mode. - Enter the
router bgpcommand to enable BGP routing. - Enter the
address-family ipv4 unicastcommand with the vrf keyword, specifying a VRF name, to enter BGP address-family IPv4 unicast VRF configuration mode. - Enter the
bfdcommand to enable BFD globally for the VRF instance. - Enter the
bfd min-txcommand with the min-rx and multiplier keywords, specifying the required intervals, to configure BFD session parameters for BGP for the VRF instance. - Enter the
bfd holdover-intervalcommand and specify a value to set the BFD holdover interval globally for the VRF instance.
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