Configure BFD on an IPv4 Interface

About this task

Use the following procedure to enable and to configure Bidirectional Forwarding Detection (BFD) on an IPv4 interface. All interface configuration is performed at the VLAN, GigabitEthernet, or Loopback level.

Note

Note

Enabling BFD on an interface does not establish a BFD session. To establish a BFD session, you must enable BFD globally and at the application level.

Procedure

  1. Enter Interface Configuration mode:

    enable

    configure terminal

    followed by one of the following:

    • interface GigabitEthernet {slot/port[/sub-port][-slot/port[/sub-port]][,...]}

    • interface loopback <1–256>

    • interface vlan <1–4059>

    Note

    Note

    If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.

  2. Enable BFD on an interface:

    ip bfd enable

  3. Optional: Configure the transmit interval:

    ip bfd interval <100-65335>

  4. Optional: Configure the minimum receive interval:

    ip bfd min-rx <100-65335>

  5. Optional: Configure the multiplier:

    ip bfd multiplier <1-20>

  6. Optional: In GigabitEthernet Interface Configuration mode, you can configure a value for port:

    ip bfd port {slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}

  7. Optional: In VLAN Interface Configuration mode, you can configure a value for VLAN:

    ip bfd vlan <1-4094>

  8. Optional: In Loopback Interface Configuration mode, you can configure a value for loopback:

    ip bfd loopback <1-256>

Variable Definitions

The following table defines parameters for the ip bfd command.

Variable

Value

{slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}

Identifies the slot and port in one of the following formats: a single slot and port (slot/port), a range of slots and ports (slot/port-slot/port), or a series of slots and ports (slot/port,slot/port,slot/port). If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.

enable

Enable BFD on a port, VLAN, or loopback.

interval <100-65335>

Specifies the transmit interval in milliseconds. The default is 200 ms.

Note:

The minimum value you can configure for the transmit interval is 100 ms. You can configure a maximum of 4 BFD sessions with the minimum value for the transmit interval. You can configure any remaining BFD sessions with a transmit interval that is greater than or equal to the 200 ms default value.

min-rx <100-65535>

Specifies the receive interval in milliseconds. The default is 200 ms.

Note:

The minimum value you can configure for the receive interval is 100 ms. You can configure a maximum of 4 BFD sessions with the minimum value for the receive interval. You can configure any remaining BFD sessions with a receive interval that is greater than or equal to the 200 ms default value.

multiplier <1-20>

Specifies the multiplier used to calculate the amount of time BFD waits before declaring a receive timeout. The default is 3.

Note:

If you configure the transmit interval or the receive interval as 100 ms, you must configure a value of 4 or greater for the multiplier.

port {slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}

Identifies the slot and port in one of the following formats: a single slot and port (slot/port), a range of slots and ports (slot/port-slot/port), or a series of slots and ports (slot/port,slot/port,slot/port). If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.

vlan <1-4094>

Specifies the VLAN ID.

loopback <1-256>

Specifies the Loopback ID.