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
| 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. |
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).
# 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 ]
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:
|
State |
Neighbor status:
|
Mode |
Master or slave in the process of exchanging 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
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
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
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 |