display ospf interface

Use display ospf interface to display OSPF interface information.

Syntax

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

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

process-id: Specifies an OSPF process ID in the range of 1 to 65535. If you do not specify this argument, the command displays the OSPF interface information for all OSPF processes.

interface-type interface-number: Specifies an interface by its type and number.

verbose: Displays detailed OSPF information for all interfaces.

Usage guidelines

If you do not specify the interface-type interface-number argument or the verbose keyword, this command displays OSPF brief information for all interfaces.

Examples

# Display all OSPF interface brief 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     PTP          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 37: Command output

Field

Description

Area

Area ID of the interface.

IP Address

Interface IP address (regardless of whether TE is enabled or not).

Type

Interface network type: PTP (P2P), PTMP (P2MP), Broadcast, or NBMA.

State

Interface state:

  • Down—No protocol traffic can be sent or received on the interface.

  • Loopback—The interface is in loopback state and it cannot forward traffic.

  • Waiting—The interface starts sending and receiving Hello packets. The router is trying to determine the identity of the (Backup) designated router for the network.

  • P-2-P—The interface will send Hello packets at the hello interval, and try to establish an adjacency with the neighbor.

  • DR—The router is the designated router on the network.

  • BDR—The router is the backup designated router on the network.

  • DROther—The router is a DR Other router on the attached network.

Cost

Interface cost.

Pri

Router priority.

DR

DR on the interface's network segment.

BDR

BDR on the interface's network segment.

# Display detailed information about VLAN-interface 10.

<Sysname> display ospf interface vlan-interface 10


          OSPF Process 1 with Router ID 192.168.1.1
                  Interfaces

 Area: 0.0.0.0

 Interface: 172.16.0.1 (Vlan-interface10)
 Cost: 1       State: DR        Type: Broadcast    MTU: 1500
 Priority: 1
 Designated router: 172.16.0.1
 Backup designated router: 0.0.0.0
 Timers: Hello 10, Dead 40, Poll  40, Retransmit 5, Transmit Delay 1
 FRR backup: Enabled
 Primary path detection mode: BFD ctrl
 Enabled by interface configuration (including secondary IP addresses) 
 BFD: echo
 MD5 authentication enabled.
    The last key is 3.
    The rollover is in progress, 2 neighbor(s) left.
 LDP state: No-LDP
 LDP sync state: Achieved
 Packet size: 1000

Table 38: Command output

Field

Description

Interface

Information about the interface, such as the IP address.

Timers

OSPF timers (in seconds): Hello, Dead, Poll, and Retransmit.

Transmit Delay

LSA transmission delay on the interface, in seconds.

FRR backup

Whether LFA calculation is enabled on an interface.

Primary path detection mode

Primary link detection mode:

  • BFD ctrl—BFD control packet mode.

  • BFD echo—BFD echo packet mode.

Enabled by interface configuration (including secondary IP addresses)

OSPF is enabled on the interface (including secondary IP addresses).

BFD

BFD session mode enabled on the interface:

  • ctrl—BFD control packet mode.

  • echo—BFD echo packet mode.

Simple authentication enabled

Simple authentication is enabled.

Keychain authentication enabled, name is xx

Keychain authentication is enabled. The keychain name is xx.

MD5 authentication enabled

MD5/HMAC-MD5 authentication is enabled.

The last key is xx

The most recent MD5/HMAC-MD5 authentication key ID is xx.

The rollover is in progress, xx neighbor(s) left.

Key rollover for MD5/HMAC-MD5 authentication is in progress. The number of neighbors that have not completed rollover is xx.

LDP state

LDP state:

  • Init—Initialization state. LDP has not been delivered.

  • No-LDP—LDP is not configured.

  • Not ready—LDP sessions have not been established.

  • Ready—LDP sessions have been established.

LDP sync state

LDP IGP synchronization state:

  • Init—Initialization state.

  • Achieved—LDP has been synchronized.

  • Max cost—OSPF advertises the maximum cost in LSAs.

Packet size

Maximum length of OSPF packets that can be sent by the interface.