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:
|
Router ID | Neighbor router ID. |
Address | Neighbor router address. |
GR state | GR state:
|
State | Neighbor state:
|
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:
|
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:
|
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. |