Skip to content

BFD

BFD (Bidirectional Forwarding Detection) provides sub-second failure detection for routing protocols and static routes on NX-OS devices. Global BFD settings configure the echo interface, hardware offload, slow timer, and startup timer under the bfd section. Interface-level BFD settings configure session parameters including transmit/receive intervals, detect multiplier, echo mode, authentication, and port-channel-specific options like per-link and track-member-link under each interface type’s bfd sub-section.

Diagram
NameTypeConstraintMandatoryDefault Value
bfdClass[bfd]No

loopbacks (nxos.devices.configuration.interfaces)

Section titled “loopbacks (nxos.devices.configuration.interfaces)”
NameTypeConstraintMandatoryDefault Value
bfdClass[bfd]No

vlans (nxos.devices.configuration.interfaces)

Section titled “vlans (nxos.devices.configuration.interfaces)”
NameTypeConstraintMandatoryDefault Value
bfdClass[bfd]No

ethernets (nxos.devices.configuration.interfaces)

Section titled “ethernets (nxos.devices.configuration.interfaces)”
NameTypeConstraintMandatoryDefault Value
bfdClass[bfd]No

port_channels (nxos.devices.configuration.interfaces)

Section titled “port_channels (nxos.devices.configuration.interfaces)”
NameTypeConstraintMandatoryDefault Value
bfdClass[bfd]No

NameTypeConstraintMandatoryDefault Value
echo_interface_typeChoiceethernet, loopback, mgmt, port-channel, vlan, vniNo
echo_interface_idStringNo
hardware_offloadBooleantrue, falseNo
slow_timerIntegermin: 1000, max: 30000No
startup_timerIntegermin: 0, max: 60No

bfd (nxos.devices.configuration.interfaces.loopbacks)

Section titled “bfd (nxos.devices.configuration.interfaces.loopbacks)”
NameTypeConstraintMandatoryDefault Value
intervalIntegermin: 0, max: 999No
min_rxIntegermin: 0, max: 999No
multiplierIntegermin: 0, max: 50No
echoBooleantrue, falseNo
echo_rx_intervalIntegermin: 0, max: 999No
optimize_subinterfaceBooleantrue, falseNo
per_linkBooleantrue, falseNo
source_ipStringNo
vpc_watchBooleantrue, falseNo
track_member_linkBooleantrue, falseNo
authentication_typeChoicenone, sha1, met-sha1No
authentication_key_idIntegermin: 1, max: 255No
authentication_keyStringNo
authentication_interopBooleantrue, falseNo

Example 1: Global BFD with echo interface and hardware offload

nxos:
devices:
- name: LEAF1
configuration:
feature:
bfd: true
bfd:
echo_interface_type: loopback
echo_interface_id: "0"
hardware_offload: true
slow_timer: 2000

Example 2: BFD timers on fabric uplinks with OSPF

nxos:
devices:
- name: LEAF1
configuration:
feature:
bfd: true
ospf: true
bfd:
echo_interface_type: loopback
echo_interface_id: "0"
routing:
ospf_processes:
- name: "1"
bfd: true
interfaces:
ethernets:
- id: 1/1
description: "FABRIC: SPINE1 Eth1/1"
mtu: 9216
ospf:
process: "1"
area: 0.0.0.0
network: p2p
bfd:
interval: 50
min_rx: 50
multiplier: 3
echo: false

Example 3: BFD with SHA-1 authentication on SVI interfaces

nxos:
devices:
- name: LEAF1
configuration:
feature:
bfd: true
interface_vlan: true
bfd:
echo_interface_type: loopback
echo_interface_id: "0"
interfaces:
vlans:
- id: 100
vrf: PROD
bfd:
interval: 100
min_rx: 100
multiplier: 5
authentication_type: sha1
authentication_key_id: 1
authentication_key: BFD-SECRET

Example 4: BFD per-link on port-channel with vPC watch

nxos:
devices:
- name: LEAF1
configuration:
feature:
bfd: true
interfaces:
port_channels:
- id: 1
description: "VPC: PEER-LINK"
bfd:
interval: 50
min_rx: 50
multiplier: 3
per_link: true
vpc_watch: true
track_member_link: true