< Home

display ospf interface

Function

The display ospf interface command displays information about OSPF interfaces.

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 interface type and the interface number. -
verbose Displays verbose configuration information. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The display ospf interface command output displays the configuration and operating status of OSPF, which facilitate fault location and configuration verification.

Example

# 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
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 (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:

  • 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 device is in the Loopback state. The loopback interface cannot be used to transmit data but can collect interface information by performing the ICMP ping operation or bit error detection.
  • Waiting: The device 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 a P2P network or a virtual link.
  • DROther: The device itself is not elected as the DR or BDR. Instead, another device connecting to the broadcast network or NBMA network is elected as the DR. The device starts to set up adjacency with the DR and BDR (if existing).
  • BDR: The device functions as the BDR on the network, and will turn into a DR when the current DR fails. The device sets up adjacency with other devices that access the network.
  • DR: The device functions as the DR on the network. The device sets up adjacency with other devices that access the network.

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)
Table 2 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:

  • 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.

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 is incremented 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 >