display ospf [ process-id ] peer [ interfaceName | interfaceType interfaceNum | { neighbor-id | hostname hostnamestr } | brief | last-nbr-down ]
display ospf [ process-id ] peer { { interfaceName | interfaceType interfaceNum } { neighbor-id [ resolve-hostname ] | hostname hostnamestr } }
display ospf [ process-id ] peer [ interfaceName | interfaceType interfaceNum | neighbor-id | brief ] resolve-hostname
Parameter | Description | Value |
---|---|---|
process-id |
Specifies the ID of an OSPF process. |
The value is an integer ranging from 1 to 4294967295. |
interfaceName |
Specifies the interface name. |
- |
interfaceType |
Specifies the interface type. |
- |
interfaceNum |
Specifies the interface number. |
The value is a string of 1 to 63 case-sensitive characters, spaces not supported. |
neighbor-id |
Specifies the neighbor router ID. |
The value is in dotted decimal notation. |
hostname hostnamestr |
Specifies a dynamic hostname. |
The value is a string of 1 to 255 characters. |
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 information about resolved dynamic hostnames. |
- |
Usage Scenario
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).
The command output includes such information as all OSPF interfaces, interface types, status, and attributes. If an OSPF neighbor relationship fails to be established or routes are incorrectly calculated, you can run the command to check whether OSPF interfaces are normal.The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display ospf 1 peer brief (M) Indicates MADJ interface OSPF Process 1 with Router ID 1.1.1.1 Peer Statistic Informations Total number of peer(s): 2 Peer(s) in full state: 2 ------------------------------------------------------------------------- Area Id Interface Neighbor id State 0.0.0.0 GE0/1/8 1.1.1.2 Full 0.0.0.1 GE0/1/16 1.1.1.2 Full -------------------------------------------------------------------------
<HUAWEI> display ospf peer brief resolve-hostname (M) Indicates MADJ interface OSPF Process 1 with Router ID 1.1.1.1 Peer Statistic Informations Total number of peer(s): 2 Peer(s) in full state: 1 ------------------------------------------------------------------------- Area Id Interface Neighbor id State 0.0.0.1 GE0/1/8 RTR_BLR FULL 0.0.0.1 GE0/1/16 RTR_BJI 2-Way -------------------------------------------------------------------------
<HUAWEI> display ospf 1 peer last-nbr-down OSPF Process 1 with Router ID 10.1.1.1 Last Down OSPF Peer Neighbor Ip Address : 10.2.1.2 Neighbor Area Id : 0.0.0.0 Neighbor Router Id : 10.1.1.2 Interface : GE0/1/16 Immediate Reason : Neighbor Down Due to Kill Neighbor Primary Reason : Hello Not Seen Down Time : [2010/02/11] 06:50:23
<HUAWEI> display ospf peer (M) Indicates MADJ interface OSPF Process 1 with Router ID 1.1.1.1 Neighbors Area 0.0.0.0 interface 192.168.1.1 ( GE0/1/16 )'s neighbors Router ID: 2.2.2.2 Address: 192.168.1.2 State: 2-Way Mode:Nbr is Slave Priority: 1 DR: 192.168.1.4 BDR: 192.168.1.3 MTU: 0 Dead timer due in 32 sec Retrans timer interval: 5 Neighbor is up for 00:00:05 Neighbor Up Time : 2018-06-08 01:41:57 Authentication Sequence: [ 0 ]
Item | Description |
---|---|
(M) Indicates MADJ interface | Multi-area adjacency interface. |
OSPF Process 1 with Router ID 1.1.1.1 | OSPF process ID and router ID. |
Router ID | Router ID of the neighbor. |
Total number of peer(s) | Total information of neighbors. |
Peer(s) in full state | Number of entries with the neighbor state Full. |
Area | Area to which the neighbor belongs. |
Area Id | Area to which the neighbor belongs. |
Interface | Interface that connects to the neighbor. |
Neighbor Up Time | Time when the peer went Up. |
Neighbor is up for | Duration in which the neighbor stays Up. |
Neighbor id | Router ID of the neighbor. |
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. |
State | Neighbor status:
|
Mode | Master or slave in the process of exchanging DD packets:
|
DR | Designated router. |
BDR | Backup designated router. |
MTU | Maximum Transmission Unit (MTU) value of the neighboring interface. |
Dead timer due in 32 sec | The dead timer is due in x seconds. |
Retrans timer interval | Interval for retransmitting LSAs, in seconds. |
Authentication Sequence | Authentication sequence number. |
Down Time | Time when the neighbor goes Down. |
Address | Address of the neighboring interface. |
Immediate Reason | Immediate reason why the neighbor goes Down:
|
Primary Reason | Root cause of the neighbor Down event.
|
Priority | Priority of the neighboring router. |