BFD
NX-OSBFD (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, startup timer, and the global keepalive timers (transmit interval, minimum receive interval, detect multiplier, and echo receive interval) and the global multihop session timers 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, including Ethernet and port-channel subinterfaces.
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
Section titled “Diagram”Diagram
Section titled “Diagram”Classes
Section titled “Classes”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| devices | List | devices | No | |
| device_groups | List | device_groups | No | |
| global | Class | global | No | |
| templates | List | templates | No | |
| interface_ | List | interface_ | No |
| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| devices | List | devices | No | |
| device_groups | List | device_groups | No | |
| global | Class | global | No | |
| templates | List | templates | No |
devices (nxos)
Section titled “devices (nxos)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| configuration | Class | configuration | No |
device_groups (nxos)
Section titled “device_groups (nxos)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| configuration | Class | configuration | No |
global (nxos)
Section titled “global (nxos)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| configuration | Class | configuration | No |
templates (nxos)
Section titled “templates (nxos)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| configuration | Class | configuration | No |
interface_groups (nxos)
Section titled “interface_groups (nxos)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| configuration | Class | configuration | No |
configuration (nxos.devices)
Section titled “configuration (nxos.devices)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| interfaces | Class | interfaces | No | |
| bfd | Class | bfd | No |
configuration (nxos.interface_groups)
Section titled “configuration (nxos.interface_groups)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| subinterfaces | List | subinterfaces | No | |
| bfd | Class | bfd | No |
interfaces (nxos.devices.configuration)
Section titled “interfaces (nxos.devices.configuration)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| loopbacks | List | loopbacks | No | |
| vlans | List | vlans | No | |
| ethernets | List | ethernets | No | |
| port_channels | List | port_channels | No |
ethernets (nxos.devices.configuration.interfaces)
Section titled “ethernets (nxos.devices.configuration.interfaces)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| subinterfaces | List | subinterfaces | No | |
| bfd | Class | bfd | No |
ethernets (nxos.devices.configuration.interfaces)
Section titled “ethernets (nxos.devices.configuration.interfaces)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| bfd | Class | bfd | No |
port_channels (nxos.devices.configuration.interfaces)
Section titled “port_channels (nxos.devices.configuration.interfaces)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| subinterfaces | List | subinterfaces | No | |
| bfd | Class | bfd | No |
port_channels (nxos.devices.configuration.interfaces)
Section titled “port_channels (nxos.devices.configuration.interfaces)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| bfd | Class | bfd | No |
loopbacks (nxos.devices.configuration.interfaces)
Section titled “loopbacks (nxos.devices.configuration.interfaces)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| bfd | Class | bfd | No |
vlans (nxos.devices.configuration.interfaces)
Section titled “vlans (nxos.devices.configuration.interfaces)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| bfd | Class | bfd | No |
subinterfaces (nxos.devices.configuration.interfaces.ethernets)
Section titled “subinterfaces (nxos.devices.configuration.interfaces.ethernets)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| bfd | Class | bfd | No |
bfd (nxos.devices.configuration)
Section titled “bfd (nxos.devices.configuration)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| echo_ | Choice | ethernet, loopback, mgmt, port-channel, vlan, vni | No | |
| echo_ | Any | String or Integer[min: 0] | No | |
| hardware_ | Boolean | true, false | No | |
| slow_timer | Integer | min: 1000, max: 30000 | No | |
| startup_timer | Integer | min: 0, max: 60 | No | |
| interval | Integer | min: 10, max: 999 | No | |
| min_rx | Integer | min: 10, max: 999 | No | |
| multiplier | Integer | min: 1, max: 50 | No | |
| echo_ | Integer | min: 0, max: 999 | No | |
| multihop_ | Integer | min: 250, max: 999 | No | |
| multihop_min_rx | Integer | min: 250, max: 999 | No | |
| multihop_ | Integer | min: 1, max: 50 | No |
bfd (nxos.devices.configuration)
Section titled “bfd (nxos.devices.configuration)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| echo_ | Choice | ethernet, loopback, mgmt, port-channel, vlan, vni | No | |
| echo_ | Any | String or Integer[min: 0] | No | |
| hardware_ | Boolean | true, false | No | |
| slow_timer | Integer | min: 1000, max: 30000 | No | |
| startup_timer | Integer | min: 0, max: 60 | No |
bfd (nxos.devices.configuration.interfaces.loopbacks)
Section titled “bfd (nxos.devices.configuration.interfaces.loopbacks)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| interval | Integer | min: 0, max: 999 | No | |
| min_rx | Integer | min: 0, max: 999 | No | |
| multiplier | Integer | min: 0, max: 50 | No | |
| echo | Boolean | true, false | No | |
| echo_ | Integer | min: 0, max: 999 | No | |
| optimize_ | Boolean | true, false | No | |
| per_link | Boolean | true, false | No | |
| source_ip | IP | No | ||
| vpc_watch | Boolean | true, false | No | |
| track_ | Boolean | true, false | No | |
| authentication_ | Choice | none, keyed-sha1, meticulous-keyed-sha1 | No | |
| authentication_ | Integer | min: 1, max: 255 | No | |
| authentication_ | String | No | ||
| authentication_ | Boolean | true, false | No |
Examples
Section titled “Examples”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: 2000Example 2: Global BFD keepalive timers
nxos: devices: - name: LEAF1 configuration: feature: bfd: true bfd: interval: 100 min_rx: 100 multiplier: 5 echo_rx_interval: 100 slow_timer: 2000 startup_timer: 10Example 3: Global BFD multihop session timers
nxos: devices: - name: BORDER-LEAF1 configuration: feature: bfd: true bfd: multihop_interval: 300 multihop_min_rx: 300 multihop_multiplier: 3Example 4: 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 areas: - id: 0.0.0.0 interfaces: ethernets: - id: 1/1 description: "FABRIC: SPINE1 Eth1/1" mtu: 9216 ospf: process: "1" area: 0.0.0.0 network: point-to-point bfd: interval: 50 min_rx: 50 multiplier: 3 echo: falseExample 5: 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: keyed-sha1 authentication_key_id: 1 authentication_key: BFD-SECRETExample 6: 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: trueExamples
Section titled “Examples”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: 2000Example 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: falseExample 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-SECRETExample 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