Viewing the OSPF neighbor information

Displays OSPF neighbor information.

Procedure

  1. Enter Privileged EXEC mode:

    enable

  2. View the OSPF neighbor information:

    show ip ospf neighbor [vrf WORD<1-16>] [vrfids WORD<0-512>]

Example

View OSPF neighbor information:

Switch:1#show ip ospf neighbor 

================================================================================
                         OSPF Neighbors - GlobalRouter
================================================================================
INTERFACE       NBRROUTERID     NBRIPADDR       PRIO_STATE    RTXQLEN PERM TTL
--------------------------------------------------------------------------------
192.0.2.5       192.0.2.1       192.0.2.6       1    Full     0       Dyn   31  
198.51.100.7    198.51.100.1    198.51.100.8    128  Restart  0       Dyn   147 H

Total ospf neighbors: 2

H = Helping a Restarting neighbor

Variable definitions

The following table defines parameters for the show ip ospf neighbor command.

Variable

Value

vrf WORD<1-16>

Specifies a VRF by name.

vrfids WORD<0-512>

Specifies a range of VRF IDs.