display ospf peer

Use display ospf peer to display information about OSPF neighbors.

Syntax

display ospf [ process-id ] peer [ verbose ] [ interface-type interface-number ] [ neighbor-id ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

process-id: Specifies an OSPF process by ID in the range of 1 to 65535. If you do not specify this argument, the command displays OSPF neighbor information for all OSPF processes.

verbose: Displays detailed neighbor information. If you do not specify this keyword, the command displays brief OSPF neighbor information.

interface-type interface-number: Specifies an interface by its type and number. If you do not specify this argument, the command displays neighbor information for all interfaces.

neighbor-id: Specifies a neighbor router ID. If you do not specify this argument, the command displays all neighbor information.

Examples

# Display detailed OSPF neighbor information.

<Sysname> display ospf peer verbose

          OSPF Process 1 with Router ID 1.1.1.1
                  Neighbors

 Area 0.0.0.0 interface 1.1.1.1(Vlan-interface100)'s neighbors
 Router ID: 1.1.1.2          Address: 1.1.1.2          GR state: Normal
   State: Full  Mode: Nbr is master  Priority: 1
   DR: 1.1.1.2  BDR: 1.1.1.1  MTU: 0
   Options is 0x02 (-|-|-|-|-|-|E|-)
   Dead timer due in 33  sec
   Neighbor is up for 02:03:35
   Authentication sequence: [ 0 ]
   Neighbor state change count: 6
   BFD status: Disabled


 Last Neighbor Down Event:
 Router ID: 22.22.22.22
 Local Address: 11.11.11.11
 Remote Address: 22.22.22.22
 Time: Apr  9 03:18:19 2014
 Reason: Ospf_ifachange

Table 43: Command output

Field

Description

Area areaID interface IPAddress(InterfaceName)'s neighbors

Neighbor information for the interface in the specified area:

  • areaID—Area to which the neighbor belongs.

  • IPAddress—Interface IP address.

  • InterfaceName—Interface name.

Router ID

Neighbor router ID.

Address

Neighbor router address.

GR state

GR state:

  • Normal.

  • Restarter.

  • Complete.

  • Helper.

State

Neighbor state:

  • Down—Initial state of a neighbor conversation.

  • Init—The router has received a Hello packet from the neighbor. However, the router has not established bidirectional communication with the neighbor. The router did not appear in the neighbor's hello packet.

  • Attempt—Available only in an NBMA network. In this state, the OSPF router has not received any information from a neighbor for a period. The router can send Hello packets at a longer interval to keep the neighbor relationship.

  • 2-Way—Communication between the two routers is bidirectional. The local router appears in the neighbor's Hello packet.

  • Exstart—The goal of this state is to decide which router is the master, and to decide upon the initial Database Description (DD) sequence number.

  • Exchange—The router is sending DD packets to the neighbor, describing its entire link-state database.

  • Loading—The router sends LSRs packets to the neighbor, requesting more recent LSAs.

  • Full—The neighboring routers are fully adjacent.

Mode

Neighbor mode for LSDB synchronization.

Priority

Neighboring router priority.

DR

DR on the interface's network segment.

BDR

BDR on the interface's network segment.

MTU

Interface MTU.

Options

LSA options:

  • O—Opaque LSA advertisement capability.

  • E—AS External LSA reception capability.

  • EA—External extended LSA reception capability.

  • DC—On-demand link support.

  • N—NSSA external LSA support.

  • P—Capability of an NSSA ABR to translate Type-7 LSAs into Type-5 LSAs.

Dead timer due in 33 sec

This dead timer will expire in 33 seconds.

Neighbor is up for 02:03:35

The neighbor has been up for 02:03:35.

Authentication sequence

Authentication sequence number.

Neighbor state change count

Count of neighbor state changes.

BFD status

BFD status:

  • Disabled.

  • Enabled (Control mode).

  • Enabled (Echo mode).

Last Neighbor Down Event

The most recent neighbor down event.

Time

Time when the neighbor went down.

Reason

Reason for the neighbor down event.

# Display brief OSPF neighbor information.

<Sysname> display ospf peer

          OSPF Process 1 with Router ID 1.1.1.1
               Neighbor Brief Information

 Area: 0.0.0.0
 Router ID       Address         Pri Dead-Time  State             Interface
 1.1.1.2         1.1.1.2         1   40         Full/DR           Vlan10

Table 44: Command output

Field

Description

Area

Neighbor area.

Router ID

Neighbor router ID.

Address

Neighbor interface address.

Pri

Neighboring router priority.

Dead-Time

Dead interval remained.

State

Neighbor state: Down, Init, Attempt, 2-Way, Exstart, Exchange, Loading, or Full.

Interface

Interface connected to the neighbor.