Command Reference Guide
Open Shortest Path First Commands
CLI Command Reference
September 2014 Page 600
HP Moonshot Switch Module CLI Command Reference
show ip ospf neighbor
This command displays information about OSPF neighbors. If you do not specify a neighbor IP address, the
output displays summary information in a table. If you specify an interface or tunnel, only the information for
that interface or tunnel displays, if the interface is a physical routing interface and vlan format if the interface
is a routing vlan. The
ip-address is the IP address of the neighbor, and when you specify this, detailed
information about the neighbor displays. The information below only displays if OSPF is enabled and the
interface has a neighbor.
If you do not specify an IP address, a table with the following columns displays for all neighbors or the neighbor
associated with the interface that you specify:
Format
show ip ospf neighbor [interface {unit/slot/port|vlan 1-4093}] [ip-address]
Modes •Privileged EXEC
• User EXEC
Term Definition
Router ID The 4-digit dotted-decimal number of the neighbor router.
Priority The OSPF priority for the specified interface. The priority of an interface is a priority integer
from 0 to 255. A value of '0' indicates that the router is not eligible to become the
designated router on this network.
IP Address The IP address of the neighbor.
Interface The interface of the local router in
unit/slot/port format.
State The state of the neighboring routers. Possible values are:
• Down—Initial state of the neighbor conversation; no recent information has been
received from the neighbor.
• Attempt—No recent information has been received from the neighbor but a more
concerted effort should be made to contact the neighbor.
• Init—An Hello packet has recently been seen from the neighbor, but bidirectional
communication has not yet been established.
• 2 way—Communication between the two routers is bidirectional.
• Exchange start—The first step in creating an adjacency between the two neighboring
routers, the goal is to decide which router is the master and to decide upon the initial
DD sequence number.
• Exchange—The router is describing its entire link state database by sending Database
Description packets to the neighbor.
• Loading—Link State Request packets are sent to the neighbor asking for the more
recent LSAs that have been discovered (but not yet received) in the Exchange state.
• Full—The neighboring routers are fully adjacent and they will now appear in router-
LSAs and network-LSAs.
Dead Time The amount of time, in seconds, to wait before the router assumes the neighbor is
unreachable.