< Home

display ospf interface

Function

The display ospf interface command displays information about an OSPF interface.

Format

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

Parameters

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.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

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.

Example

# 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
Table 1 Description of the display ospf interface command output

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.

  • Down: 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 the ICMP ping operation or bit error detection.
  • Waiting: The router is determining the DR and BDR on the network. The DR or BDR election mechanism should not be 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 is not elected as the BDR, and 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 any).
  • BDR: The router functions as the BDR on the network and will become 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 and sets up adjacency with other routers that access the network.

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
Table 2 Description of the display ospf interface command output

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)
Table 3 Description of the display ospf interface verbose command output

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:

  • enabled by OSPF Protocol: default value or the one configured using the ospf cost command.
  • enabled by RUI: RUI route cost.
  • enabled by IGP_LDP: interface cost configured in LDP.
  • enabled by BGP_IGP: interface cost configured in BGP.
  • enabled by Tunnel: cost generated after a TE Tunnel is configured.

Link quality adjust cost

Whether the OSPF interface automatically adjusts the link cost based on link quality is enabled:

  • YES: enabled

  • NO: disabled

link quality

The quality of link:

  • 0x0(GOOD): indicates that the link is in a high quality grade.
  • 0x4(LOW): indicates that the link is in a low quality grade.

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:

  • 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
  • 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)
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >