To display a
line-by-line listing of existing Bidirectional Forwarding Detection (BFD)
adjacencies, use the
show bfd neighbors command in user EXEC or privileged EXEC
mode.
show bfd neighbors [client {bgp | eigrp | isis | ospf | rsvp | te-frr} | details | interface-type interface-number | internal | ipv4 ip-address | ipv6 ipv6-address | vrf vrf-name]
Syntax Description
client
|
(Optional) Displays neighbors of a specific client.
|
bgp
|
(Optional) Displays a Border Gateway Protocol (BGP) client.
|
eigrp
|
(Optional) Displays an Enhanced Interior Gateway Routing Protocol (EIGRP)
client.
|
isis
|
(Optional) Specifies an Intermediate System-to-Intermediate System (IS-IS)
client.
|
ospf
|
(Optional) Specifies an Open Shortest Path First (OSPF) client.
|
rsvp
|
(Optional) Specifies a Resource Reservation Protocol (RSVP) client.
|
te-frr
|
(Optional) Specifies a traffic engineering (TE) Fast Reroute (FRR) client.
|
details
|
(Optional) Displays all BFD protocol parameters and timers for each neighbor.
|
interface-type
interface-number
|
(Optional) Neighbors at the specified interface.
|
internal
|
(Optional) Displays internal BFD information.
|
ipv4
|
(Optional) Specifies an IPv4 neighbor. If the
ipv4 keyword
is used without the
ip-address
argument, all IPv4 sessions are displayed.
|
ip-address
|
(Optional) IP address of a neighbor in A.B.C.D format.
|
ipv6
|
(Optional) Specifies an IPv6 neighbor. If the
ipv6 keyword
is used without the
ipv6-address
argument, all IPv6 sessions are displayed.
|
ipv6-address
|
(Optional) IPv6 address of a neighbor in X:X:X:X::X format.
|
vrf
vrf-name
|
(Optional) Displays entries for the specified VPN routing and forwarding (VRF)
instance.
|
Command Modes
User EXEC (>)
Privileged EXEC (#)
Command History
S
Release
|
Modification
|
12.0(31)S
|
This
command was introduced.
|
12.2(18)SXE
|
This
command was integrated into Cisco IOS Release 12.2(18)SXE.
|
12.2(33)SRA
|
This
command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(33)SRC
|
This
command was modified. The
vrf
vrf-name
keyword and argument, the
client
keyword, and the
ip-address
argument were added.
|
12.2(33)SB
|
This
command was integrated into Cisco IOS Release 12.2(33)SB.
|
12.2(33)SXI
|
This
command was modified. The output was modified to display the “OurAddr” field
only with the
details
keyword.
|
12.2(33)SRE
|
This
command was modified. Support for IPv6 was added.
|
15.1(2)S
|
This
command was modified.
-
The
show bfd neighbors details command output was changed for
hardware-offloaded BFD sessions.
-
The
show bfd neighbors command output was changed to display
the header type to identify the session type.
|
15.1(3)S
|
This
command was modified to display information about multihop sessions.
|
15.2(4)S
|
This
command was modified. The output of the command was enhanced to include
Template and Authentication fields for single-hop sessions.
|
15.1(1)SY
|
This
command was integrated into Cisco IOS Release 15.1(1)SY.
|
15.4(3)S
|
This command was implemented on the Cisco ASR 901 Series
Aggregation Services Router.
|
T Release
|
Modification
|
12.4(4)T
|
This
command was integrated into Cisco IOS Release 12.4(4)T.
|
12.4(9)T
|
This
command was modified. Support for BFD Version 1 and BFD echo mode was added.
|
15.1(2)T
|
This
command was modified. Support for IPv6 was added.
|
15.1(1)SG
|
This
command was integrated into Cisco IOS Release 15.1(1)SG.
|
15.2(1)E
|
This
command was integrated into Cisco IOS Release 15.2(1)E.
|
XE
Release
|
Modification
|
Cisco
IOS XE Release 2.1
|
This
command was integrated into Cisco IOS XE Release 2.1.
|
Usage Guidelines
The
show bfd neighbors command can be used to help troubleshoot
the BFD feature.
The full output
for the
details
keyword is not supported on the Route Processor (RP) for the Cisco 12000 Series
Internet Router. If you want to enter the
show bfd neighbors command with the
details
keyword on the Cisco 12000 Series Internet Router, you must enter the command
on the line card. Use the
attach
slot command
to establish a CLI session with a line card.
In Cisco IOS
Release 15.1(2)S and later releases that support BFD hardware offload, the Tx
and Rx intervals on both BFD peers must be configured in multiples of 50
milliseconds. If they are not, output from the
show
bfd
neighbors
details command will show the configured
intervals, not the changed ones.
See the
“Configuring Synchronous Ethernet on the Cisco 7600 Router with ES+ Line Card”
section of the
Cisco 7600
Series Ethernet Services Plus (ES+) and Ethernet Services Plus T (ES+T) Line
Card Configuration Guide
for more information about prerequisites and restrictions for
hardware offload.
Examples
The following is
sample output from the
show bfd neighbors that shows the status of the adjacency
or neighbor:
Device# show bfd neighbors
OurAddr NeighAddr LD/RD RH Holdown(mult) State Int
172.16.10.1 172.16.10.2 1/6 1 260 (3 ) Up Fa0/1
The following is sample output from the
show bfd neighbors command when it is entered with the
details keyword that shows BFD protocol parameters and timers for each neighbor:
Device# show bfd neighbors details
NeighAddr LD/RD RH/RS State Int
10.1.1.2 1/1 1(RH) Up Et0/0
Session state is UP and not using echo function.
OurAddr: 10.1.1.1
Local Diag: 0, Demand mode: 0, Poll bit: 0
MinTxInt: 50000, MinRxInt: 50000, Multiplier: 3 Received MinRxInt: 50000, Received Multiplier: 3 Holddown (hits): 150(0), Hello (hits): 50(2223) Rx Count: 2212, Rx Interval (ms) min/max/avg: 8/68/49 last: 0 ms ago Tx Count: 2222, Tx Interval (ms) min/max/avg: 40/60/49 last: 20 ms ago Elapsed time watermarks: 0 0 (last: 0) Registered protocols: CEF Stub
Uptime: 00:01:49
Last packet: Version: 0 - Diagnostic: 0
I Hear You bit: 1 - Demand bit: 0
Poll bit: 0 - Final bit: 0
Multiplier: 3 - Length: 24
My Discr.: 1 - Your Discr.: 1
Min tx interval: 50000 - Min rx interval: 50000
Min Echo interval: 50000
The following is sample output from the
show bfd neighbors command when it is entered on a Cisco 12000 Series Internet Router Route Processor (RP) that shows the status of the adjacency
or neighbor:
Device# show bfd neighbors
Cleanup timer hits: 0
OurAddr NeighAddr LD/RD RH Holdown(mult) State Int
172.16.10.2 172.16.10.1 2/0 0 0 (0 ) Up Fa6/0
Total Adjs Found: 1
The following is sample output from the
show bfd neighbors command when it is entered in a Cisco 12000 Series Internet Router RP that shows the status of the adjacency or neighbor
with the
details keyword:
Device# show bfd neighbors details
Cleanup timer hits: 0
OurAddr NeighAddr LD/RD RH Holdown(mult) State Int
172.16.10.2 172.16.10.1 2/0 0 0 (0 ) Up Fa6/0
Registered protocols: OSPF
Uptime: never
%% BFD Neighbor statistics are not available on RP. Please execute this command on Line Card.
The following is sample output from the
show bfd neighbors command when it is entered on a Cisco 12000 Series Internet Router line card that shows the status of the adjacency or neighbor:
Device# attach 6
Entering Console for 8 Port Fast Ethernet in Slot: 6
Type "exit" to end this session
Press RETURN to get started!
Device> show bfd neighbors
Cleanup timer hits: 0
OurAddr NeighAddr LD/RD RH Holdown(mult) State Int
172.16.10.2 172.16.10.1 2/1 1 848 (5 ) Up Fa6/0
Total Adjs Found: 1
The following is sample output from the
show bfd neighbors command when it is entered on a Cisco 12000 Series Internet Router line card that shows the status of the adjacency or neighbor
with the
details keyword:
Device# attach 6
Entering Console for 8 Port Fast Ethernet in Slot: 6
Type "exit" to end this session
Press RETURN to get started!
Device> show bfd neighbors details
Cleanup timer hits: 0
OurAddr NeighAddr LD/RD RH Holdown(mult) State Int
172.16.10.2 172.16.10.1 2/1 1 892 (5 ) Up Fa6/0
Local Diag: 0, Demand mode: 0, Poll bit: 0
MinTxInt: 50000, MinRxInt: 1000, Multiplier: 3
Received MinRxInt: 200000, Received Multiplier: 5
Holdown (hits): 1000(0), Hello (hits): 200(193745)
Rx Count: 327406, Rx Interval (ms) min/max/avg: 152/248/196 last: 108 ms ago
Tx Count: 193748, Tx Interval (ms) min/max/avg: 204/440/331 last: 408 ms ago
Last packet: Version: 0 - Diagnostic: 0
I Hear You bit: 1 - Demand bit: 0
Poll bit: 0 - Final bit: 0
Multiplier: 5 - Length: 24
My Discr.: 1 - Your Discr.: 2
Min tx interval: 200000 - Min rx interval: 200000
Min Echo interval: 0
Uptime: 17:54:07
SSO Cleanup Timer called: 0
SSO Cleanup Action Taken: 0
Pseudo pre-emptive process count: 7728507 min/max/avg: 8/16/8 last: 12 ms ago
IPC Tx Failure Count: 0
IPC Rx Failure Count: 0
Total Adjs Found: 1
Device>
Examples
The following is sample output from the
show bfd neighbors
details command that shows that the BFD neighbor device is running BFD Version 1 and that the BFD session is up and running in echo
mode:
Device# show bfd neighbors details
OurAddr NeighAddr LD/RD RH/RS Holdown(mult) State Int
172.16.1.2 172.16.1.1 1/6 Up 0 (3 ) Up Fa0/1
Session state is UP and using echo function with 50 ms interval.
Local Diag: 0, Demand mode: 0, Poll bit: 0
MinTxInt: 1000000, MinRxInt: 1000000, Multiplier: 3
Received MinRxInt: 1000000, Received Multiplier: 3
Holdown (hits): 3000(0), Hello (hits): 1000(337)
Rx Count: 341, Rx Interval (ms) min/max/avg: 1/1008/882 last: 364 ms ago
Tx Count: 339, Tx Interval (ms) min/max/avg: 1/1016/886 last: 632 ms ago
Registered protocols: EIGRP
Uptime: 00:05:00
Last packet: Version: 1
- Diagnostic: 0
State bit: Up - Demand bit: 0
Poll bit: 0 - Final bit: 0
Multiplier: 3 - Length: 24
My Discr.: 6 - Your Discr.: 1
Min tx interval: 1000000 - Min rx interval: 1000000
Min Echo interval: 50000
The following is sample output from the
show bfd neighbors command that displays all IPv6 sessions:
Device# show bfd neighbors ipv6 2001::1
OurAddr NeighAddr LD/RD RH/RS Holddown(mult) State Int
2001:DB8:0:ABCD::1 2001:DB8:0:ABCD::2 2/2 Up 0 (3 ) Up Et0/0
2001:DB8:0:1:FFFF:1234::5 2001:DB8:0:1:FFFF:1234::6 4/4 Up 0 (3 ) Up Et1/0
The following is a sample output from the
show bfd neighbors
The following is sample output from the
show bfd neighbors command:
Device# show bfd neighbors
NeighAddr LD/RD RH/RS State Int
192.0.2.1 4/0 Down Down Et0/0
192.0.2.2 5/0 Down Down Et0/0
192.0.2.3 6/0 Down Down Et0/0
192.0.2.4 7/0 Down Down Et0/0
192.0.2.5 8/0 Down Down Et0/0
192.0.2.6 11/0 0(RH) Fail Et0/0
2001:DB8::1 9/0 Down Down Et0/0
2001:DB8:0:ABCD::1 10/0 Down Down Et0/0
2001:DB8::2 1/0 0(RH) Fail Et0/0
2001:DB8:0:1::1 2/0 Down Down Et0/0
2001:DB8:0:1:FFFF:1234::5 3/0 Down Down Et0/0
The following is sample output from the
show bfd neighbors details command:
Device# show bfd neighbors details
IPv4 Sessions
NeighAddr LD/RD RH/RS State Int
100.0.2.1 127/156 Down Init Se0/5/1.1/2/1/1:0
Session Host: Hardware - session negotiated with platform adjusted timer values.
MinTxInt - configured: 200000 adjusted: 1000000
OurAddr: 100.0.2.2
Handle: 2
Local Diag: 1, Demand mode: 0, Poll bit: 0
MinTxInt: 1000000, MinRxInt: 1000000, Multiplier: 3
Received MinRxInt: 1000000, Received Multiplier: 3
Holddown (hits): 0(0), Hello (hits): 1000(0)
Rx Count: 5052
Tx Count: 7490
Elapsed time watermarks: 0 0 (last: 0)
Registered protocols: IPv4 Static CEF
Template: software
Downtime: 00:00:05
Last packet: Version: 1 - Diagnostic: 3
State bit: Down - Demand bit: 0
Poll bit: 0 - Final bit: 0
C bit: 1
Multiplier: 3 - Length: 24
My Discr.: 156 - Your Discr.: 0
Min tx interval: 1000000 - Min rx interval: 1000000
Min Echo interval: 200000
The table below describes the significant fields shown in the displays.
Table 2. show bfd neighbors Field Descriptions
Field
|
Description
|
OurAddr
|
IP address of the interface for which the
show bfd
neighbors details command was entered.
|
NeighAddr
|
IPv4 or IPv6 address of the BFD adjacency or neighbor.
|
LD/RD
|
Local discriminator (LD) and remote discriminator (RD) being used for the session.
|
RH
|
Remote Heard (RH) 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 using echo function with 50 ms interval.
|
BFD is up and running in echo mode. The 50-millisecond interval has been adopted from the
bfd command.
Note
|
BFD Version 1 and echo mode are supported only in Cisco IOS Release 12.4(9)T and later releases.
|
|
Rx Count
|
Number of BFD control packets that are received from the BFD neighbor.
|
Tx Count
|
Number of BFD control packets that are sent by the BFD neighbor.
|
Tx Interval
|
The interval, in milliseconds, between sent BFD packets.
|
Registered protocols
|
Routing protocols that are registered with BFD.
|
Last packet: Version:
|
BFD version detected and run between the BFD neighbors. The system automatically performs BFD version detection, and BFD
sessions between neighbors will run in the highest common BFD version. For example, if one BFD neighbor is running BFD Version
0 and the other BFD neighbor is running Version 1, the session will run BFD Version 0.
Note
|
BFD Version 1 and echo mode are supported only in Cisco IOS Release 12.4(9)T and later releases.
|
|
Diagnostic
|
A 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:
|
I Hear You bit
|
The I Hear You bit is set to 0 if the transmitting system is either not receiving BFD packets from the remote system or is
tearing down the BFD session for some reason. During normal operation, the I Hear You bit is set to 1 to signify that the
remote system is receiving the BFD packets from the transmitting system.
|
Demand bit
|
Demand mode bit. BFD has two modes: asynchronous and demand. If the demand mode is set, the transmitting system prefers to
operate in demand mode. The Cisco implementation of BFD supports only asynchronous mode.
|
Poll bit
|
Indicates that the transmitting system is requesting verification of connectivity or verification of a parameter change.
|
Final bit
|
Indicates that 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, it indicates that 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, it indicates that a failure has occurred.
|
Length
|
Length of the BFD control packet, in bytes.
|
My Discr.
|
My Discriminator is a 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 is a discriminator that is 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.
The Cisco implementation of BFD for Cisco IOS Releases 12.2(18)SXE and 12.0(31)S does not support the use of echo packets.
|
The following is sample output from the
show bfd neighbors details command for BFD sessions offloaded to hardware. The Rx and Tx counts show the number of packets received and transmitted
by the BFD session in hardware.
Device# show bfd neighbors details
NeighAddr LD/RD RH/RS State Int
192.0.2.1 298/298 Up Up Te7/1.2
Session state is UP and not using echo function.
Session Host: Hardware - session negotiated with platform adjusted timer values.
Holddown - negotiated: 510000 adjusted: 0
OurAddr: 192.0.2.2
Local Diag: 0, Demand mode: 0, Poll bit: 0
MinTxInt: 170000, MinRxInt: 170000, Multiplier: 3
Received MinRxInt: 160000, Received Multiplier: 3
Holddown (hits): 0(0), Hello (hits): 170(0)
Rx Count: 1256983
Tx Count: 24990
Elapsed time watermarks: 0 0 (last: 0)
Registered protocols: OSPF CEF
Uptime: 18:11:31
Last packet: Version: 1 - Diagnostic: 0
State bit: Up - Demand bit: 0
Poll bit: 0 - Final bit: 0
Multiplier: 3 - Length: 24
My Discr.: 298 - Your Discr.: 298
Min tx interval: 160000 - Min rx interval: 160000
Min Echo interval: 0
The following is sample output from the
show bfd neighbors command showing a header type identifying the type of session:
Device# show bfd neighbors
MPLS-TP Sessions
Interface LSP type LD/RD RH/RS State
Tunnel-tp1 Working 1/0 Down Down
Tunnel-tp2 Working 3/0 Down Down
Tunnel-tp1 Protect 2/0 Down Down
IPv4 Sessions
NeighAddr LD/RD RH/RS State Int
192.0.2.1 2/0 Down Down Et2/0
The following is sample output from the
show bfd neighbors command for Virtual Circuit Connection Verification (VCCV) sessions:
Device# show bfd neighbors
VCCV Sessions
Peer Addr :VCID LD/RD RH/RS State
198.51.100.1 :100 1/1 Up Up
The following is sample output from the
show bfd neighbors command for IPv4 and IPv6 sessions:
Device# show bfd neighbors
IPv4 Sessions
NeighAddr LD/RD RH/RS State Int
192.0.2.1 6/0 Down Down Et1/0
203.0.113.1 7/6 Up Up Et3/0
198.51.100.2 8/7 Up Up Et0/0
IPv6 Sessions
NeighAddr LD/RD RH/RS State Int
2001:DB8::1 1/1 Up Up Et0/0
2001:DB8:0:ABCD::1 2/2 Up Up Et0/0
2001:DB8::2 3/3 Up Up Et0/0
2001:DB8:0:1:FFFF:1234::5 4/4 Up Up Et0/0
2001:DB8:0:1::1 5/5 Up Up Et0/0
The table below describes the significant fields shown in the displays.
Table 3. show bfd neighbors Field Descriptions
Field
|
Description
|
Interface
|
Name of the Multiprotocol Label Switching (MPLS) tunnel Transport Profile (TP) interface.
|
LSP type
|
Type of label-switched path for this session (Working or Protect).
|
The following is sample output from the
show bfd neighbors command for a single-hop session:
Device# show bfd neighbors
IPv4 Sessions
NeighAddr LD/RD RH/RS State Int
192.0.2.6 1/12 Up Up Et0/0
Session state is UP and using echo function with 300 ms interval.
Session Host: Software
OurAddr: 192.0.2.12
Handle: 12
Local Diag: 0, Demand mode: 0, Poll bit: 0
MinTxInt: 1000000, MinRxInt: 1000000, Multiplier: 3
Received MinRxInt: 1000000, Received Multiplier: 3
Holddown (hits): 0(0), Hello (hits): 1000(62244)
Rx Count: 62284, Rx Interval (ms) min/max/avg: 1/2436/878 last: 239 ms ago
Tx Count: 62247, Tx Interval (ms) min/max/avg: 1/1545/880 last: 246 ms ago
Elapsed time watermarks: 0 0 (last: 0)
Registered protocols: Stub CEF
Template: my-template
Authentication(Type/Keychain): sha-1/my-chain
Uptime: 00:22:06
Last packet: Version: 1 - Diagnostic: 0
State bit: Up - Demand bit: 0
Poll bit: 0 - Final bit: 0
Multiplier: 3 - Length: 24
My Discr.: 12 - Your Discr.: 1
Min tx interval: 1000000 - Min rx interval: 1000000
Min Echo interval: 300000
The table below describes the significant fields shown in the display.
Table 4. show bfd neighbors Field Descriptions for Single-Hop BFD Sessions
Field
|
Description
|
Template
|
BFD multihop template name.
|
Authentication
|
Authentication type and key chain.
|
The following is sample output from the
show bfd neighbors command for an IPv4 multihop session. The section headed “Map information:” has information specific to the multihop session.
Device# show bfd neighbors
IPv4 Multihop Sessions
NeighAddr[vrf] LD/RD RH/RS State
192.0.2.20 2/13 Up Up
Session state is UP and not using echo function.
Session Host: Software
OurAddr: 192.0.2.21
Handle: 13
Local Diag: 0, Demand mode: 0, Poll bit: 0
MinTxInt: 750000, MinRxInt: 750000, Multiplier: 3
Received MinRxInt: 750000, Received Multiplier: 15
Holddown (hits): 10772(0), Hello (hits): 750(82985)
Rx Count: 82973, Rx Interval (ms) min/max/avg: 24/1334/659 last: 478 ms ago
Tx Count: 82935, Tx Interval (ms) min/max/avg: 1/1141/660 last: 78 ms ago
Elapsed time watermarks: 0 0 (last: 0)
Registered protocols: Xconnect
Map information:
Destination[vrf]: 192.0.2.1/24
Source[vrf]: 192.0.2.2/24
Template: mh
Authentication(Type/Keychain): md5/qq
last_tx_auth_seq: 5 last_rx_auth_seq 4
Uptime: 15:12:26
Last packet: Version: 1 - Diagnostic: 0
State bit: Up - Demand bit: 0
Poll bit: 0 - Final bit: 0
Multiplier: 15 - Length: 48
My Discr.: 13 - Your Discr.: 2
Min tx interval: 750000 - Min rx interval: 750000
Min Echo interval: 0
The table below describes the significant fields shown in the display.
Table 5. show bfd neighbors Field Descriptions for Multihop BFD Sessions
Field
|
Description
|
Destination
|
BFD map destination address.
|
Source
|
BFD map source address.
|
Template
|
BFD multihop template name.
|
Authentication
|
Authentication type and key chain.
|
last_tx_auth_seq
|
Last authenticated sequence sent by the peer.
|
last_rx_auth_seq
|
Last authenticated sequence received by the peer.
|