display ospf interface

Function

The display ospf interface command displays OSPF interface information.

Format

display ospf [ process-id ] interface [ interface-name | interface-type interface-number | all ] [ verbose ]

display ospf [ process-id ] interface no-peer

Parameters

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.

-

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
ospf read

Usage Guidelines

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.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display information about the interfaces that are Up but have no neighbors.
<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
# Display detailed configuration information.
<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
# Display information about the specified OSPF interface.
<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
# Display OSPF interface information.
<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
Table 1 Description of the display ospf interface command output
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:

  • Down: The status of the interface is Down. If an interface is Down, the interface is unavailable and cannot be used to transmit traffic.
  • Loopback: The interface connecting to the network on the router is in the Loopback state. The loopback interface cannot be used to transmit data but can collect interface information through ICMP ping operations or bit error detection.
  • Waiting: The router is determining the DR and BDR on the network. The DR or BDR election mechanism is not implemented until the waiting period ends. This prevents unnecessary changes in the DR and BDR roles.
  • P-2-P: The interface is connected to the P2P network or a virtual link.
  • DROther: The router itself is not elected as the BDR. Instead, another router connecting to the broadcast network or NBMA network is elected as the DR. The router starts to set up adjacency with the DR and BDR (if existing).
  • BDR: The router functions as the BDR on the network, and will turn into a DR when the current DR fails. The router sets up adjacency with other routers that access the network.
  • DR: The router functions as the DR on the network. The router sets up adjacency with other routers that access the network.
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:

  • enabled by OSPF Protocol: default value or the one configured using the ospf cost command.
  • enabled by IGP_LDP: interface cost configured in LDP.
  • enabled by BGP_IGP: interface cost configured in BGP.
  • enabled by Cost-fallback: fallback cost of an Eth-Trunk.
  • enabled byBFD DOWN COST: The interface cost is the BFD-associated cost.
Link quality adjust cost

Whether bit-error-triggered interface cost adjustment is effective:

  • NO.
  • YES.

The prerequisites for the function to take effect are as follows:

  • The cost specified in the ospf link-quality low incr-cost cost command is not 0.
  • The link quality is 0x4 (Low). For details, see the description of the Link quality field.
  • IDP-OSPF synchronization is not in HoldMaxCost state. To check the state, run the display ospf ldp-sync interface command.
  • OSPF neighbor relationship flapping suppression is not in hold-max-cost state. For details, see the description of the Suppress flapping peer field.
Link quality

Quality attribute of the interface.

  • 0x0(GOOD).
  • 0x4(LOW).
Suppress flapping peer

Status of OSPF neighbor relationship flapping suppression:

  • enable: OSPF neighbor relationship flapping suppression is enabled.
  • flapping-count: number of valid flapping_events.

    If the interval between two successive neighbor status changes from Full to a non-Full state is shorter than detecting-interval, a valid flapping_event is recorded, and the flapping_count increases by 1. To change detecting-interval, run the ospf suppress-flapping peer detecting-interval detecting-interval command.

  • threshold: flapping suppression threshold.

    When the flapping_count reaches or exceeds threshold, flapping suppression takes effect. To configure the threshold, run the ospf suppress-flapping peer threshold threshold command.

  • disable: OSPF neighbor relationship flapping suppression is disabled. In this case, the following information is displayed, without flapping-count or threshold: Suppress flapping peer: disable.
  • hold-down: OSPF neighbor relationship flapping suppression works in Hold-down mode. In this case, an example of the displayed information is as follows: Suppress flapping peer: hold-down(start: 2016-01-02 09:58:41, remain-interval: 476 sec).
  • start: time when the flapping suppression started.
  • remain-interval: remaining time of the flapping suppression.

    In the flapping suppression state, remain-interval is reset each time when the device detects a valid neighbor flapping event.

  • hold-max-cost: OSPF neighbor relationship flapping suppression works in Hold-max-cost mode. In this case, an example of the displayed information is as follows: Suppress flapping peer: hold-max-cost(start: 2016-01-02 09:58:41, remain-interval: 476 sec).
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:

  • Hello: interval at which Hello packets are sent. To set the interval at which Hello packets are sent, run the ospf timer hello command.
  • Dead: interval of the Dead timer. You can run the ospf timer dead command to set the dead interval of OSPF neighbors.
  • Wait: interval of the Wait timer. You can run the ospf timer wait command to set the interval of the Wait timer on an OSPF interface.
  • Poll: interval at which poll Hello packets are sent on an NBMA network. To set the poll interval, run the ospf timer poll command.
  • Retransmit: interval at which an interface retransmits LSAs, which can be set using the ospf timer retransmit command.
  • Transmit Delay: indicates the delay for transmitting LSAs on the interface. You can run the ospf trans-delay command to set the delay for transmitting LSAs on the interface.
Priority

Priority.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >