show bfd neighbors
To display information about Bidirectional Forwarding Detection (BFD) neighbors, use the show bfd neighbors command.
show bfd neighbors { [multihop | application name | {dest-ip | src-ip} ipaddr interface int-if] | | [vrf vrf-name]} [details]
Syntax Description
multihop |
(Optional) Displays BFD multihop session details. |
application name |
(Optional) Displays BFD information for the named protocol that BFD is enabled on. |
dest-ip ipaddr |
(Optional) Displays BFD information for the destination IP address. The IP address is in dotted decimal notation for IPv4 and in A:B::C:D format for IPv6. |
src-ip ipaddr |
(Optional) Displays BFD information for the source IP address. The IP address is in dotted decimal notation for IPv4 and in A:B::C:D format for IPv6. |
interface int-if |
(Optional) Displays BFD information for the interface. Use the ? keyword to display a list of supported interfaces. |
vrf vrf-name |
(Optional) Displays BFD information for the virtual routing and forwarding (VRF) instance. |
details |
(Optional) Displays detailed BFD information. |
Command Default
None
Command Modes
Any command mode
Command History
Release |
Modification |
---|---|
8.1(1) |
The multihop keyword was added. |
5.0(2) |
This command was introduced. |
Usage Guidelines
Use the show bfd neighbors command to display information about BFD sessions. If you use the applications keyword, the application name is one of the following:
-
bfd_app (bfd_app is a stub client and not real client)
-
bgp
-
eigrp
-
hsrp
-
isis
-
ospf
-
pim
-
static
This command does not require a license.
Examples
This example shows how to display the output from the show bfd neighbors command:
switch# show bfd neighbors
OurAddr NeighAddr LD/RD RH/RS Holdown(mult) State Int
10.0.0.2 10.0.0.1 1124073474/1107296257 Up 582(3) Up Po10
This example shows how to display the output from the show bfd neighbors application details command for BFD:
switch# show bfd neighbors application bfd_app details
OurAddr NeighAddr LD/RD RH/RS Holdown(mult) State Int
1.1.1.2 1.1.1.1 1090519041/1107296257 Up 137(3) Up Eth4/37
Session state is Up and not using echo function
Local Diag: 0, Demand mode: 0, Poll bit: 0
MinTxInt: 50000 us, MinRxInt: 50000 us, Multiplier: 3
Received MinRxInt: 50000 us, Received Multiplier: 3
Holdown (hits): 150 ms (2), Hello (hits): 50 ms (1232223)
Rx Count: 1267540, Rx Interval (ms) min/max/avg: 0/1789/44 last: 12 ms ago
Tx Count: 1232223, Tx Interval (ms) min/max/avg: 41/41/41 last: 13 ms ago
Registered protocols: bfd_app
Uptime: 0day 15hour 5minute 8second 430ms
Last packet: Version: 1 - Diagnostic: 0
State bit: Up - Demand bit: 0
Poll bit: 0 - Final bit: 0
Multiplier: 3 - Length: 24
My Discr.: 1107296257 - Your Discr.: 1090519041
Min tx interval: 50000 - Min rx interval: 50000
Min Echo interval: 0
This example shows how to display information about BFD multihop sessions:
switch# show bfd neighbors multihop details
OurAddr NeighAddr LD/RD RH/RS Holdown(mult) State Int Vrf Type
200.1.1.1 100.1.1.1 1090519058/1107296266 Up 695(3) Up default MH
Session state is Up and not using echo function
Session type: Multihop
Local Diag: 0, Demand mode: 0, Poll bit: 0, Authentication: None
MinTxInt: 250000 us, MinRxInt: 250000 us, Multiplier: 20
Received MinRxInt: 250000 us, Received Multiplier: 3
Holdown (hits): 750 ms (2), Hello (hits): 250 ms (622317)
Rx Count: 714572, Rx Interval (ms) min/max/avg: 0/2210/196 last: 54 ms ago
Tx Count: 622317, Tx Interval (ms) min/max/avg: 187/187/187 last: 146 ms ago
Registered protocols: bgp
Uptime: 0 days 12 hrs 21 mins 59 secs
Last packet: Version: 1 - Diagnostic: 0
State bit: Up - Demand bit: 0
Poll bit: 0 - Final bit: 0
Multiplier: 3 - Length: 24
My Discr.: 1107296266 - Your Discr.: 1090519058
Min tx interval: 250000 - Min rx interval: 250000
Min Echo interval: 0 - Authentication bit: 0
Hosting LC: 9, Down reason: None, Reason not-hosted: None, Offloaded: No
Table 1 describes the significant fields shown in the display.
Field |
Description |
---|---|
OurAddr |
IP address of the interface for which the show bfd neighbors command was entered. |
NeighAddr |
IPv4 or IPv6 address of the BFD adjacency or neighbor. |
LD/RD |
Local discriminator and remote discriminator being used for the session. |
RH |
Remote Heard—Indicates that the remote BFD neighbor has been heard. |
Holdown(mult) |
Detect timer multiplier that is used for this session. |
State |
State of the interface—Up or Down. |
Int |
Interface type and slot/port. |
Session state is UP and not using echo function |
BFD is up and not running in echo mode. |
RX Count |
Number of BFD control packets that have been received from the BFD neighbor. |
TX Count |
Number of BFD control packets that have been sent by the BFD neighbor. |
TX Interval |
Interval, in milliseconds, between sent BFD packets. |
Registered protocols |
Routing protocols that have been registered with BFD. |
Last packet: Version: |
BFD version detected and run between the BFD neighbors. |
Diagnostic |
Diagnostic code specifying the local system’s reason for the last transition of the session from Up to some other state. State values are as follows:
|
Demand bit |
Demand Mode bit. If set, the transmitting system wants to operate in demand mode. BFD has two modes—asynchronous and demand. The Cisco implementation of BFD supports only asynchronous mode. |
Poll bit |
Poll bit. If the Poll bit is set, the transmitting system is requesting verification of connectivity or of a parameter change. |
Final bit |
Final bit. If the Final bit is set, the transmitting system is responding to a received BFD control packet that had a Poll (P) bit set. |
Multiplier |
Detect time multiplier. The negotiated transmit interval, multiplied by the detect time multiplier, determines the detection time for the transmitting system in BFD asynchronous mode. The detect time multiplier is similar to the hello multiplier in Intermediate System-to-Intermediate System (IS-IS), which is used to determine the hold timer: (hello interval) * (hello multiplier) = hold timer. If a hello packet is not received within the hold-timer interval, a failure has occurred. Similarly, for BFD: (transmit interval) * (detect multiplier) = detect timer. If a BFD control packet is not received from the remote system within the detect-timer interval, a failure has occurred. |
Length |
Length of the BFD control packet, in bytes. |
My Discr. |
My Discriminator. Unique, nonzero discriminator value generated by the transmitting system used to demultiplex multiple BFD sessions between the same pair of systems. |
Your Discr. |
Your Discriminator. The discriminator received from the corresponding remote system. This field reflects the received value of My Discriminator or is zero if that value is unknown. |
Min tx interval |
Minimum transmission interval, in microseconds, that the local system wants to use when sending BFD control packets. |
Min rx interval |
Minimum receipt interval, in microseconds, between received BFD control packets that the system can support. |
Min Echo interval |
Minimum interval, in microseconds, between received BFD control packets that the system can support. If the value is zero, the transmitting system does not support the receipt of BFD echo packets. |
Vrf |
Virtual routing and forwarding instance (VRF). The BFD session belongs to the specified VRF. |
Type |
Session type. The session type is either single hop (SH) or multihop (MH). |