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 (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.
ip-address (Optional) Displays OSPF neighbors for a specific IP address.
vlan vlan-id (Optional) Displays OSPF neighbors for a specific VLAN. This VLAN must be configured for IP routing as described in the S-, K-, and 7100 Series Configuration Guide.

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

All command modes.

Example

This example shows how to use the show ip ospf neighbor command:

System(rw)->show ip ospf neighbor
ID              Pri    State    Dead-Int  Address       Interface
182.127.62.1      1    FULL     40        182.127.63.1  vlan1

show ip ospf neighbor Output Details provides an explanation of the command output.

Click to expand in new window

show ip ospf neighbor Output Details

Output... What it displays...
ID Neighbor‘s router ID of the OSPF neighbor.
Pri Neighbor‘s priority over this interface.
State Neighbor‘s OSPF communication state.
Dead-Int Interval (in seconds) this router will wait without receiving a Hello packet from a neighbor before declaring the neighbor is down.
Address Neighbor‘s IP address.
Interface Neighbor‘s interface (VLAN).