| Parameter | Description | Value |
|---|---|---|
process-id |
Specifies the ID of an OSPF process. |
The value is an integer ranging from 1 to 65535. |
all |
Displays information about all OSPF interfaces. |
- |
interface-type interface-number |
Specifies the type and number of an interface. |
- |
verbose |
Displays detailed information about OSPF interfaces. |
- |
To check the configuration and operating status of OSPF, run the display ospf interface command. The command output helps you locate faults and verify configurations.
# Display OSPF interface information.
<sysname> display ospf interface
OSPF Process 1 with Router ID 192.168.1.1
Interfaces
Area: 0.0.0.0
IP Address Type State Cost Pri DR BDR
192.168.1.1 P2P P-2-P 1562 1 0.0.0.0 0.0.0.0
Area: 0.0.0.1
IP Address Type State Cost Pri DR BDR
172.16.0.1 Broadcast DR 1 1 172.16.0.1 0.0.0.0
Item |
Description |
|---|---|
Area |
ID of the area to which the interface belongs. |
IP Address |
IP address of the interface. |
Type |
Interface type: P2P, P2MP, broadcast, or NBMA. |
State |
Status of the interface, which is determined by the OSPF interface state machines.
|
Cost |
Cost of the interface. |
Pri |
Priority of the router interface during the DR and BDR election. The greater the value, the higher the priority. |
DR |
DR of the network where the interface resides. |
BDR |
BDR of the network where the interface resides. |
# Display information about the specified OSPF interface.
<sysname> display ospf interface GigabitEthernet 0/0/0
OSPF Process 1 with Router ID 192.168.1.1
Interfaces
Interface: 192.168.1.1 (GigabitEthernet0/0/0) --> 192.168.1.2
Cost: 1562 State: P-2-P Type: PTP MTU: 1500
Priority: 1
Designated Router: 192.168.1.2
Backup Designated Router: 192.168.1.3
Timers: Hello 10 , Dead 40 , Poll 120 , Retransmit 5 , Transmit Delay 1
Item |
Description |
|---|---|
Interface |
Interface information, including the IP address and number of this interface and IP address of the neighbor. |
MTU |
MTU value of the interface. |
Priority |
Priority of the router interface during the DR and BDR election. The greater the value, the higher the priority. |
Designated Router |
DR of the network where the interface resides. |
Backup Designated Router |
BDR of the network where the interface resides. |
Hello |
Interval at which Hello packets are sent, which can be set using the ospf timer hello command. |
Dead |
OSPF neighbor dead interval, which can be set using the ospf timer dead command. |
Poll |
Interval at which poll Hello packets are sent on NBMA networks, which can be set using the ospf timer poll command. |
Retransmit |
Interval at which LSAs are retransmitted, which can be set using the ospf timer retransmit command. |
Transmit Delay |
LSA transmission delay, which can be set using the ospf trans-delay command. |
# Display detailed information about an OSPF interface.
<sysname> display ospf interface GigabitEthernet0/0/0 verbose
OSPF Process 1 with Router ID 1.1.1.2
Interfaces
Interface: 10.0.0.2 (GigabitEthernet0/0/0)
Cost: 1 State: DR Type: Broadcast MTU: 1500
Priority: 1
Designated Router: 10.0.0.2
Backup Designated Router: 10.0.0.1
Timers: Hello 10 , Dead 40 , Poll 120 , Retransmit 5 , Transmit Delay 1
IO Statistics
Type Input Output
Hello 161367 10436
DB Description 18 18
Link-State Req 5 6
Link-State Update 203780 210
Link-State Ack 90411 276
ALLSPF GROUP
ALLDR GROUP
OpaqueId: 1 PrevState: BDR
Effective cost: 1, enabled by OSPF Protocol.
Link quality adjust cost: No, link quality: 0x0(GOOD).
Support PST: YES Support Remote LFA: YES
Suppress flapping peer: enable(flapping-count: 0, threshold: 20)
Item |
Description |
|---|---|
IO Statistics |
Statistics about received and sent OSPF packets. |
Type |
OSPF packet type. |
Input |
Number of OSPF packets that the interface receives. |
Output |
Number of OSPF packets sent by the interface. |
DB Description |
Statistics about received and sent OSPF DD packets. |
Link-State Req |
Statistics about received and sent OSPF LSR packets. |
Link-State Update |
Statistics about received and sent OSPF LSU packets. |
Link-State Ack |
Statistics about received and sent OSPF LSAck packets. |
ALLSPF GROUP |
ALLSPF GROUP that the interface joins. |
ALLDR GROUP |
ALLDR GROUP that the interface joins. |
OpaqueId |
Opaque ID of the interface. |
PrevState |
Previous state of the interface. |
Effective cost |
Effective cost of the interface, which may be any of the following values:
|
Link quality adjust cost |
Whether the OSPF interface automatically adjusts the link cost based on link quality is enabled:
|
link quality |
The quality of link:
|
Support PST |
Whether the interface supports remote LFA FRR NOTE:
The Support PST field is displayed only when remote LFA FRR is enabled. |
Support Remote LFA |
Whether the interface functions as a remote LFA FRR outbound interface NOTE:
The Support Remote LFA field is displayed only when remote LFA FRR is enabled. |
Suppress flapping peer |
Status of OSPF neighbor relationship flapping suppression:
|