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 interface type and the interface number. | - |
verbose | Displays verbose configuration information. | - |
The display ospf interface command output displays the configuration and operating status of OSPF, which facilitate fault location and configuration verification.
# Display OSPF interface information.
<HUAWEI> display ospf interface
OSPF Process 1 with Router ID 192.168.1.1 Interfaces Area: 0.0.0.0 (MPLS TE not enabled) IP Address Type State Cost Pri DR BDR 192.168.1.2 Broadcast DR 1 1 192.168.1.2 192.168.1.3 Area: 0.0.0.1 (MPLS TE not enabled) IP Address Type State Cost Pri DR BDR 172.16.0.1 Broadcast DR 1 1 172.16.0.1 172.16.0.2
Item |
Description |
---|---|
Area |
ID of the area to which the interface belongs. |
IP Address |
IP address of the interface (regardless of whether TE is enabled on the interface). |
Type |
Interface type: P2P, PTMP, 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 device 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. |
Timer Hello |
Interval for sending Hello packets. |
# Display detailed information about an OSPF interface.
<HUAWEI> display ospf interface Vlanif 501 verbose
OSPF Process 1 with Router ID 192.168.2.1 Interfaces Interface: 192.168.100.2 (Vlanif501) Cost: 1 State: BDR Type: Broadcast MTU: 1500 Priority: 1 Designated Router: 192.168.100.1 Backup Designated Router: 192.168.100.2 Timers: Hello 10 , Dead 40 , Poll 120 , Retransmit 5 , Transmit Delay 1 IO Statistics Type Input Output Hello 11 10 DB Description 3 2 Link-State Req 1 1 Link-State Update 4 3 Link-State Ack 2 3 ALLSPF GROUP ALLDR GROUP OpaqueId: 0 PrevState: Waiting Effective cost: 1, enabled by OSPF Protocol Suppress flapping peer: enable(flapping-count: 0, threshold: 10)
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:
|
Suppress flapping peer |
Status of OSPF neighbor relationship flapping suppression:
|