show ip ospf neighbor
show ip ospf neighbor
Use this command to display the state of communication between an OSPF router and its
neighbor routers.
Syntax
show ip ospf neighbor [detail] [ip-address] [vlan vlan-id]
Parameters
detail
ip‐address
vlan vlan‐id
Defaults
If detail is not specified, summary information will be displayed.
If ip‐address is not specified, OSPF neighbors will be displayed for all IP addresses configured for
routing.
If vlan‐id is not specified, OSPF neighbors will be displayed for all VLANs configured for routing.
Mode
Any router mode.
Example
This example shows how to use the show ospf neighbor command:
C2(su)->router#show ip ospf neighbor
ID
182.127.62.1
Table
20‐5 provides an explanation of the command output.
Table 20-5 show ip ospf neighbor Output Details
Output Field
ID
Pri
State
Dead-Int
Address
Interface
20-30 IPv4 Routing Protocol Configuration
(Optional) Displays detailed information about the neighbors, including the
area in which they are neighbors, who the designated router/backup
designated router is on the subnet, if applicable, and the decimal equivalent
of the E‐bit value from the hello packet options field.
(Optional) Displays OSPF neighbors for a specific IP address.
(Optional) Displays OSPF neighbors for a specific VLAN. This VLAN must
be configured for IP routing as described in "Pre‐Routing Configuration
Tasks" on page 18‐1.
Pri
State
Dead-Int
1
FULL
40
What It Displays...
Neighbor's router ID of the OSPF neighbor.
Neighbor's priority over this interface.
Neighbor's OSPF communication state.
Interval (in seconds) this router will wait without receiving a Hello packet from a
neighbor before declaring the neighbor is down.
Neighbor's IP address.
Neighbor's interface (VLAN).
Address
Interface
182.127.63.1
vlan1
Need help?
Do you have a question about the SecureStack C2 C2G170-24 and is the answer not in the manual?