show ip ospf neighbors

Syntax

show ip ospf [<INSTANCE-TAG>] neighbors [<NEIGHBOR-ID>] 
     [interface <INTERFACE-NAME>] [detail | summary] 
     [all-vrfs | vrf <VRF-NAME>] [vsx-peer]

Description

Displays information about OSPF neighbors.

Command context

Operator (>) or Manager (#)

Parameters

<instance-tag>

Enter an OSPF Process ID to display OSPF neighbor information for the particular OSPF process. Range: 1-63.

neighbors <NEIGHBOR-ID>

Select to display information about a particular neighbor, specified in IPv4 format (A.B.C.D).

interface <INTERFACE-NAME>

Select to display neighbor information only for the specified interface.

detail

Select to display detailed information for all the neighbors.

summary

Select to display summary information for the neighbors.

all-vrfs

Optionally select to display neighbor information for all VRFs.

vrf <VRF-NAME>

Optionally select to display neighbor information for a particular VRF. If the VRF is not specified, information for the default VRF is displayed.

[vsx-peer]

Shows the output from the VSX peer switch. If the switches do not have the VSX configuration or the ISL is down, the output from the VSX peer switch is not displayed.

Authority

Operators or Administrators. Users without administrator authority can execute this command from the operator context (>) only.

Examples

Showing OSPF neighbors information:

switch# show ip ospf neighbors
OSPF Process ID 12 VRF default
===============================

Total Number of Neighbors: 1

Neighbor ID      Priority  State     Nbr Address    Interface
--------------------------------------------------------------
1.1.1.1          1         FULL/BDR  1.1.1.2        1/1/1

Showing OSPF neighbors information for a specific neighbor:

switch# show ip ospf neighbors 2.2.2.2
Neighbor 2.2.2.2, interface address 10.10.10.2
-----------------------------------------------

Process ID 1 VRF default, in area 0.0.0.0 via interface 1/1/1
Neighbor priority is 1, State is FULL
Options is 0x42
Dead timer due in 00:00:36

Showing OSPF neighbors information for a specific neighbor and interface:

switch# show ip ospf neighbors 2.2.2.2 interface 1/1/1
Neighbor 2.2.2.2, interface address 10.10.10.2
-----------------------------------------------

Process ID 1 VRF default, in area 0.0.0.0 via interface 1/1/1
Neighbor priority is 1, State is FULL
Options is 0x42
Dead timer due in 00:00:30

Showing detail information for OSPF neighbors:

switch# show ip ospf neighbors detail
Neighbor 2.2.2.2, interface address 10.10.10.2
----------------------------------------------

Process ID 1 VRF default, in area 0.0.0.0 via interface 1/1/1
Neighbor priority is 1, State is FULL
DR is 10.10.10.2, BDR is 10.10.10.1
Options is 0x42
Dead timer due in 00:00:38
Retransmission queue length 0

Showing summary information for OSPF neighbors:

switch# show ip ospf neighbors summary
OSPF Process ID 1 VRF default, Neighbor Summary
===============================================

Interface Down Attempt Init TwoWay ExStart Exchange Loading Full Total
------------------------------------------------------------------------
1/1/1     0    0       0    0      0       0        0       1    1
Total     0    0       0    0      0       0        0       1    1