Displays OSPF neighbor information for a specific interface. If no interface name is specified, information for all interfaces is displayed.
Prolog information
Metadata
Keywords:
Syntax
show ip ospf neighbor [interface_name] [neighbor_id]
Parameters
Parameter
Description
Possible Values
Default Value
interface_name
The OSPF interface name
string
neighbor_id
The OSPF neighbor ID number
an IP address
Note:
If using spaces, enclose the entire string in quotation marks (for example, New York).
User level
read-only
Context
general
Example
To display OSPF neighbor information for all interfaces:
Gxxx-001(super)# show ip ospf neighbor Nbr-Id Priority State Router ID Time To Live --------------- ---------- ---------- --------------- ------------- 10.0.17.2 1 2 Way 212.150.244.1 36 10.0.17.3 12 Full 10.0.17.3 38 10.0.17.6 18 Full 10.0.17.6 33 10.0.18.2 1 Full 105.1.12.1 107 10.0.20.2 0 Full 62.56.252.253 40 18.18.18.2 1 Full 62.56.255.254 38 192.168.6.173 0 Full 172.18.21.254 4