Viewing OSPF neighbor information


show ip ospf neighbor [ip-addr]

To display OSPF information for all neighbors, enter show ip ospf neighbor at any CLI level.

[ip-addr] can be specified to retrieve detailed information for the specific neighbor only. This is the IP address of the neighbor, not the router ID.

Output for the show ip ospf neighbor command

OSPF Neighbor Information

                                                         Rxmt         Helper
  Router ID       Pri IP Address     NbIfState State     QLen  Events Status
  --------------- --- -------------- --------- --------- ----- ------ ------       1     DR        FULL      0     6      none      1     DR        FULL      0     6      none

This display shows the following information.

CLI display of OSPF neighbor information



Router ID

The router ID of the neighbor.


The OSPF priority of the neighbor. The priority is used during election of the DR and BDR.

IP Address

The IP address of this routing switch's interface with the neighbor.


The neighbor interface state. The possible values are:

This neighbor is the elected designated router for the interface.


This neighbor is the elected backup designated router for the interface.


This neighbor is neither the DR or the BDR for the interface.


The state of the conversation (the adjacency) between your routing switch and the neighbor. The possible values are:

A Hello packet has recently been seen from the neighbor. However, bidirectional communication has not yet been established with the neighbor. (The switch itself did not appear in the neighbor's hello packet.) All neighbors in this state (or higher) are listed in the hello packets sent from the associated interface.


Communication between the two routers is bidirectional. This is the most advanced state before beginning adjacency establishment. The DR and BDR are selected from the set of neighbors in the 2Way state or greater.


The first step in creating an adjacency between the two neighboring routers. The goal of this step is to decide which router is the master and to decide upon the initial database description (DD) sequence number. Neighbor conversations in this state or greater are called adjacencies.


The switch is describing its entire link state database by sending DD packets to the neighbor. Each DD packet has a DD sequence number and is explicitly acknowledged. Only one DD packet can be outstanding at any time. In this state, link-state request packets can also be sent asking for the neighbor's more recent advertisements. All adjacencies in exchange state or greater are used by the flooding procedure. In fact, these adjacencies are fully capable of transmitting and receiving all types of OSPF routing protocol packets.


Link-state request packets are sent to the neighbor asking for the more recent advertisements that have been discovered (but not yet received) in the exchange state.


The neighboring routers are fully adjacent. These adjacencies will now appear in router links and network link advertisements.

Rxmt QLen

Remote transmit queue length—The number of LSAs that the routing switch has sent to this neighbor and for which the routing switch is awaiting acknowledgements.


The number of times the neighbor's state has changed.

Helper Status

Whether the neighboring router is helping the OSPF router. The possible values are:

The neighbor is helping.


The neighbor is not helping.

Helper Age

Amount of time the neighboring router is helping. This time can range from 1 to 1800 seconds with a default time of 120 seconds. Helper Age is 0 when the router is not helping.