show bfd

Syntax

show bfd-session [<session-id>]

Description

Shows Bidirectional Forwarding Detection (BFD) information. This command displays all the current BFD sessions in the switch. Detailed output is displayed if the user provides the session number.

Command context

config

Example

When a BFD session is shared by only static route application:

Switch(config)# show bfd-session


 Bidirectional Forwarding Detection (BFD) Information

  Administrative Status : Enabled
  Echo Source IP        : 2.2.2.2

  Maximum number of sessions supported         : 128
  Number of sessions reserved for internal use : 0
  Total Number of Sessions : 1
  Number of Sessions Up    : 1
  Number of Sessions Down  : 0

  Global Statistics:
  Total Number of Control Packets Transmitted  : 158
  Total Number of Control Packets Received     : 153
  Total Number of Control Packets Dropped      : 203

  Session  VLAN   Source IP        Destination IP   Echo       State       Application
  -------- ------ ---------------- ---------------- ---------- ----------- -----------
  1        10     172.16.4.1       172.16.4.2       Enabled    Up          STATIC
Switch(config)#
Switch(config)#
Switch(config)# show bfd-session 1

 BFD Session Information

  Min Tx (sec)          : 3
  Min Rx (sec)          : 3
  Min Echo Rx (msec)    : 500
  Detect Multiplier     : 5
  Auth Mode             : NONE
  Password              : ""
  Application ID        : STATIC
  Local Discriminator   : 1
  Remote Discriminator  : 1
  Echo                  : Enabled
  Local Diag            : No diagnostics configured.

  VLAN     Source IP        Destination IP   State       Pkt In   Pkt Drop Pkt Out
  -------- ---------------- ---------------- ----------- -------- -------- --------
  10       172.16.4.1       172.16.4.2       Up          10       0        10
Switch(config)#

Example

When a BFD session is shared by both static route and an OSPF application:

Switch(config)# show bfd-session


 Bidirectional Forwarding Detection (BFD) Information

  Administrative Status : Enabled
  Echo Source IP        : 2.2.2.2

  Maximum number of sessions supported         : 128
  Number of sessions reserved for internal use : 0
  Total Number of Sessions : 1
  Number of Sessions Up    : 1
  Number of Sessions Down  : 0

  Global Statistics:
  Total Number of Control Packets Transmitted  : 16
  Total Number of Control Packets Received     : 15
  Total Number of Control Packets Dropped      : 4

  Session  VLAN   Source IP        Destination IP   Echo       State       Application
  -------- ------ ---------------- ---------------- ---------- ----------- -----------
  1        10     172.16.4.1       172.16.4.2       Enabled    Up          OSPF/STATIC

Switch(config)# show bfd-session 1

 BFD Session Information

  Min Tx (sec)          : 3
  Min Rx (sec)          : 3
  Min Echo Rx (msec)    : 500
  Detect Multiplier     : 5
  Auth Mode             : NONE
  Password              : ""
  Application ID        : OSPF/STATIC
  Local Discriminator   : 1
  Remote Discriminator  : 1
  Echo                  : Enabled
  Local Diag            : No diagnostics configured.

  VLAN     Source IP        Destination IP   State       Pkt In   Pkt Drop Pkt Out
  -------- ---------------- ---------------- ----------- -------- -------- --------
  10       172.16.4.1       172.16.4.2       Up          18       0        19
Switch(config)#