< Home

display ospf peer

Function

The display ospf peer command displays information about neighbors in each OSPF area.

Format

display ospf [ process-id ] peer [ brief | [ interface-type interface-number ] [ neighbor-id ] ] [ resolve-hostname ]

display ospf [ process-id ] peer last-nbr-down

display ospf [ process-id ] peer [ interface-type interface-number ] hostname hostname

Parameters

Parameter Description Value
process-id Specifies the ID of an OSPF process. The value is an integer ranging from 1 to 65535.
interface-type interface-number Specifies the type or number of the interface. -
neighbor-id Specifies the neighbor ID. -
brief Displays brief information about neighbors in each OSPF area. -
last-nbr-down Displays brief information about the last neighbor that goes Down in the OSPF area. -
resolve-hostname Displays resolved hostname information. -
hostname hostname Displays LSDB information using a hostname. It is a string of 1 to 255 characters.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The command output can display information about OSPF neighbors, and help you troubleshoot OSPF faults, verify the configurations of OSPF neighbors, and check whether the neighbor performs Graceful Restart (GR).

Example

# Display information about the OSPF neighbor.

<sysname> display ospf peer
         OSPF Process 1 with Router ID 10.1.1.2
                 Neighbors

 Area 0.0.0.0 interface 10.1.1.2(GigabitEthernet0/0/2)'s neighbors
 Router ID: 10.1.1.1         Address: 10.1.1.1         GR State: Normal
   State: Full  Mode:Nbr is  Slave  Priority: 1
   DR: 10.1.1.1  BDR: None   MTU: 0
   Dead timer due in 35  sec
   Retrans timer interval: 5
   Neighbor is up for 00:00:05
   Authentication Sequence: [ 0 ]
Table 1 Description of the display ospf peer command output

Item

Description

Area

Area to which the neighbor belongs

interface

Interface that connects to the neighbor

Router Id

Router ID of the neighbor

Address

Address of the neighboring interface

GR State

GR status after OSPF GR is enabled:

  • Normal: indicates that the device is in the Normal state and does not perform GR.

  • Doing GR: indicates that the device is performing GR.

  • Complete GR: indicates that the device finishes GR.

  • Helper: indicates that the neighbor is the Helper when the device is performing GR.

State

Neighbor status:

  • Down: It is the initial status of the neighbor, indicating that the neighbor does not receive any information. On an NBMA network, when the neighbor is in the Down state, Hello packets can still be transmitted at the poll interval, which is longer than the Hello interval.

  • Attempt: It exists only on an NBMA network, indicating that two ends are attempting to establish the neighbor relationship. The interval for sending Hello packets is the Hello interval, which is shorter than the poll interval.

  • Init: It indicates that the Hello packet has been received from the neighbor.

  • 2-Way: It indicates that the Hello packet has been received from the neighbor, and the neighbor list of the Hello packet contains the local Router ID. That is, the two ends can interwork.

  • ExStart: It is the first step of establishing adjacencies. In this step, the master and slave relationship and DD sequence number are negotiated.

  • Exchange: It indicates that the LSDBs start to be synchronized. In this process, DD packets, LSR packets, and LSU packets are exchanged.

  • Loading: It indicates that the LSDBs are being synchronized. In this process, LSR packets and LSU packets are exchanged.

  • Full: It indicates that the LSDB of the neighbor is already synchronized, and the Full adjacency is established between both ends.

Mode

Master or slave in the process of exchanging DD packets:

  • Nbr is Master: indicates that the neighbor is the master and actively sends DD packets.

  • Nbr is Slave: indicates that the neighbor is the slave and cooperates with the master to send DD packets.

Priority

Priority of the neighboring device

DR

Designated router

BDR

Backup designated router

MTU

MTU value of the neighboring interface

Retrans timer interval

Interval for retransmitting timer, in seconds

Neighbor is up for

The time during which the state of the neighbor is up.

Authentication Sequence

Authentication sequence number

# Display brief information about OSPF neighbors.

<sysname> display ospf 1 peer brief
         OSPF Process 1 with Router ID 1.1.1.1
                   Peer Statistic Information
 -------------------------------------------------------------------
 Area Id         Interface                  Neighbor id      State
 0.0.0.0         GigabitEthernet0/0/2       3.3.3.3          Full
-------------------------------------------------------------------
 Total Peer(s):  1
Table 2 Description of the display ospf peer brief command output

Item

Description

Area Id

Area to which the neighbor belongs

Interface

Interface that connects to the neighbor

Neighbor id

Router ID of the neighbor

State

Neighbor status, including Down, Init, 2-way, Exstart, Exchange, and Loading/Full

Total Peer(s)

Total information of neighbors

# Display information about the OSPF neighbor that goes Down for the last time.

<sysname> display ospf 1 peer last-nbr-down

          OSPF Process 1 with Router ID 1.1.1.1

                         Last Down OSPF Peer

         Neighbor Ip Address : 10.2.1.2
         Neighbor Area   Id  : 0.0.0.0
         Neighbor Router Id  : 2.2.2.2
         Interface           : GigabitEthernet0/0/3
         Immediate Reason    : Neighbor Down Due to Kill Neighbor
         Primary Reason      : Logical Interface State Change
         Down Time           : 2014-09-16 14:19:27-08:00
Table 3 Description of the display ospf peer last-nbr-down command output

Item

Description

Neighbor Ip Address

Address of the neighboring interface.

Neighbor Area Id

Area to which the neighbor belongs.

Neighbor Router Id

Router ID of the neighbor.

Interface

Interface that connects to the neighbor.

Immediate Reason

Direct reason that the neighbor goes Down. .

Primary Reason

Primary reason that the neighbor goes Down.

Down Time

Time when the neighbor went Down.

# Display resolved hostname information.

<sysname> display ospf peer brief resolve-hostname
         OSPF Process 1 with Router ID 1.1.1.1
                   Peer Statistic Information
-------------------------------------------------------------------------
 Area Id         Interface                  Neighbor id      State       
 0.0.0.1         Eth3/0/0                   RTR_BLR          FULL
 0.0.0.1         Eth3/0/1                   RTR_BJI          2-Way
-------------------------------------------------------------------------
 Total Peer(s):  2
Table 4 Description of the display ospf peer brief resolve-hostname command output

Item

Description

Area Id

Area ID

Interface

Interface Name

Neighbor id

Neighbor ID or hostname

State

Neighbor status, including Down, Init, 2-way, Exstart, Exchange, and Loading/Full

Total Peer(s)

Total information of neighbors

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >