Parameter | Description | Value |
---|---|---|
process-id |
Specifies the ID of an OSPF process. |
The value is an integer ranging from 1 to 4294967295. |
interface-type |
Specifies the interface type. |
- |
interface-number |
Specifies the interface number. |
- |
all |
Displays information about all OSPF interfaces. |
- |
verbose |
Displays detailed information about OSPF interfaces. |
- |
no-peer |
Displays information about the interfaces whose states are Up but have no neighbors. |
- |
Usage Scenario
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.
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 interface no-peer
OSPF Process 1 with Router ID 172.16.6.185
Interfaces
Area: 0.0.0.0 (MPLS TE not enabled)
Interface IP Address Type State Cost Pri
Loop2147483647 172.16.6.185 P2P P-2-P 0 1
<HUAWEI> display ospf interface gigabitethernet0/1/0 verbose OSPF Process 1 with Router ID 1.1.1.2 Interfaces Area: 0.0.0.1 (MPLS TE not enabled) Interface: 6.6.6.2 ( GE0/1/0 ) Cost: 1 State: DR Type: Broadcast MTU: 1500 Unnumbered Priority: 1 Designated Router: 6.6.6.2 Backup Designated Router: 6.6.6.1 Timers: Hello 10 , Dead 40 , Wait 40 , Poll 120 , Retransmit 5 , Transmit Delay 1 OpaqueId: 0 PrevState: BackupDR Bandwidth: 100 Mbps Effective cost : 65535, enabled by BGP_IGP Link quality adjust cost: No, link quality: 0x0(GOOD). Suppress flapping peer: enable(flapping-count: 0, threshold: 20) Multi-area Interface Count is 1 Label Stack Depth: 10 SRLG Info: 1,5
<HUAWEI> display ospf interface gigabitethernet0/1/0 OSPF Process 1 with Router ID 1.1.1.1 Interfaces Area: 0.0.0.0 (MPLS TE not enabled) Interface: 192.168.1.1 ( GE0/1/0 ) --> 192.168.1.2 Cost: 1 State: P-2-P Type: P2P MTU: 1500 Timers: Hello 10 , Dead 40 , Wait 40 , Poll 120 , Retransmit 5 , Transmit Delay 1 Multi-area interface
<HUAWEI> display ospf interface (M) Indicates MADJ interface OSPF Process 1 with Router ID 1.1.1.1 Area: 0.0.0.0 (MPLS TE not enabled) Interface IP Address Type State Cost Pri GigabitEthernet0/1/0 192.168.1.1 P2P P-2-P 1 100
Item | Description |
---|---|
OSPF Process 1 with Router ID 1.1.1.1 | OSPF process ID and router ID. |
Interface | Interface name. |
IP Address | Interface IP address. |
Type | Interface type, which can be 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 an interface during DR and BDR election. The greater the value, the higher the priority. |
Unnumbered | Unnumbered address. |
Designated Router | Designated router (DR). |
Backup Designated Router | Backup designated router (BDR). |
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. |
Wait | The wait timer on an OSPF interface, which can be set using the ospf timer wait 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. |
Effective cost | Effective cost of the interface:
|
Link quality adjust cost | Whether bit-error-triggered interface cost adjustment is effective:
The prerequisites for the function to take effect are as follows:
|
Link quality | Quality attribute of the interface.
|
Suppress flapping peer | Status of OSPF neighbor relationship flapping suppression:
|
Multi-area interface | Multi-area adjacency interface. To enable OSPF on the multi-area adjacency interface, run the ospf enable multi-area command. The field is displayed only after OSPF multi-area adjacency is enabled on the interface. |
Multi-area Interface Count is 1 | Number of multi-area adjacency interfaces. To enable OSPF on a multi-area adjacency interface, run the ospf enable multi-area command. This field is displayed only when the multi-area adjacency interface is enabled. |
MPLS TE not enabled | MPLS TE is disabled. |
Label Stack Depth | Depth of the label stack. |
SRLG Info | Shared risk link group (SRLG) information. |
(M) Indicates MADJ interface | Multi-area adjacency interface. |
Area | ID of the area to which the interface belongs. |
MTU | Interface MTU. |
OpaqueId | Opaque ID of the interface. |
PrevState | Previous state of the interface. |
Bandwidth | Interface bandwidth. |
Timers | Timers, including:
|
Priority | Priority. |