Viewing OSPF neighbor information
Syntax:
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 --------------- --- -------------- --------- --------- ----- ------ ------ 10.0.8.34 1 10.3.18.34 DR FULL 0 6 none 10.3.53.38 1 10.3.53.38 DR FULL 0 6 none
This display shows the following information.
Field |
Description |
---|---|
Router ID |
The router ID of the neighbor. |
Pri |
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. |
NbIfState |
The neighbor interface state. The possible values are:
|
State |
The state of the conversation (the adjacency) between your routing switch and the neighbor. The possible values are:
|
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. |
Events |
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:
|
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. |