< Home

display ospf lsdb

Function

The display ospf lsdb command displays the OSPF Link-State Database (LSDB).

Format

display ospf [ process-id ] lsdb [ { router | network | summary | asbr | ase | nssa | opaque-link | opaque-area | opaque-as } [ link-state-id ] ] hostname hostname [ age { min-value min-age-value | max-value max-age-value } * ]

display ospf [ process-id ] lsdb [ { brief | [ { router | network | summary | asbr | ase | nssa | opaque-link | opaque-area | opaque-as } [ link-state-id ] ] [ originate-router [ advertising-router-id ] | self-originate ] [ age { min-value min-age-value | max-value max-age-value } * ] [ resolve-hostname ] } ]

Parameters

Parameter Description Value

process-id

Specifies the ID of an OSPF process.

The value is an integer ranging from 1 to 65535.

brief

Displays brief information about the LSDB.

-

router

Displays information about the router LSA.

-

network

Displays information about the network LSA.

-

summary

Displays information about the network summary LSA.

-

asbr

Displays information about the ASBR summary LSA.

-

ase

Displays information about the AS external LSA.

-

nssa

Displays information about the NSSA external LSA.

-

opaque-link

Displays information about the opaque link LSA.

-

opaque-area

Displays information about the opaque area LSA.

-

opaque-as

Displays information about the opaque AS LSA.

-

originate-router

Displays the LSA of the advertising router.

-

link-state-id

Specifies the ID of an LSA, which is an IP address in dotted decimal notation.

-

hostname hostname

Displays LSDB information using a hostname.

It is a string of 1 to 255 characters.

advertising-router-id

Specifies the ID of the router that advertises the LSA.

-

self-originate

Displays information about the self-originated LSA.

-

age

Only display the LSAs that age in the scope.

-

min-value min-age-value

Only display the LSAs that age equal or more than min-age-value.

The value is an integer ranging from 0 to 3600.

max-value max-age-value

Only display the LSAs that age equal or less than max-age-value.

The value is an integer ranging from 0 to 3600.

resolve-hostname

Displays resolved hostname information.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

By running the display ospf lsdb command displays information about the LSDB in various modes. That is, you can view any of the following:

  • Brief information about the LSDB
  • LSAs of a specified type
  • LSAs of the originating router
  • Locally originated LSAs

The command output can display information about the OSPF LSDB, which helps you troubleshoot OSPF faults.

Example

# Display brief information about the OSPF LSDB.

<sysname> display ospf lsdb
          OSPF Process 1 with Router ID 1.1.1.1                                 
                  Link State Database                                           
                                                                                
                          Area: 0.0.0.0                                         
 Type      LinkState ID    AdvRouter          Age  Len   Sequence   Metric      
 Router    2.2.2.2         2.2.2.2             98  36    8000000B       1       
 Router    1.1.1.1         1.1.1.1             92  36    80000005       1       
 Network   10.1.1.2        2.2.2.2             98  32    80000004       0       
 Sum-Net   10.2.1.0        2.2.2.2            286  28    80000001       1       
 Sum-Net   10.2.1.0        1.1.1.1            282  28    80000001       1       
 Sum-Asbr  2.2.2.2         1.1.1.1             61  28    80000001       1

                                                                                
                          Area: 0.0.0.1                                         
 Type      LinkState ID    AdvRouter          Age  Len   Sequence   Metric      
 Router    2.2.2.2         2.2.2.2             99  36    8000000D       1       
 Router    1.1.1.1         1.1.1.1             93  36    80000005       1       
 Network   10.2.1.2        2.2.2.2             99  32    80000004       0       
 Sum-Net   10.1.1.0        2.2.2.2            534  28    80000001       1       
 Sum-Net   10.1.1.0        1.1.1.1            288  28    80000002       1       
 NSSA      10.10.1.0       2.2.2.2            293  36    80000009       1       
                                                                                
                                                                                
                  AS External Database                                          
 Type      LinkState ID    AdvRouter          Age  Len   Sequence   Metric      
 External  0.0.0.0         2.2.2.2           1128  36    80000001       1       
 External  10.10.1.0       2.2.2.2            538  36    80000002       1       
                                                                                
          Type 9 Opaque (Link-Local Scope) Database. Area: 0.0.0.0              
 Type      LinkState ID    AdvRouter          Age  Len   Sequence   Interfaces  
 Opq-Link  10.3.0.0        2.2.2.2             12  44    80000001    10.1.1.1   
                                                                                
                  Type 10 Opaque (Area-Local Scope) Database                    
 Type      LinkState ID    AdvRouter          Age  Len   Sequence   Area        
 Opq-Area  1.0.0.1         1.1.1.1              4  200   80000003    0.0.0.0    
 Opq-Area  1.0.0.0         1.1.1.1           1641  28    80000001    0.0.0.0    
Table 1 Description of the display ospf lsdb command output

Item

Description

Area

Area whose LSDB information needs to be displayed

Type

LSA type (Router/Network/Sum-Net/Sum-Asbr/NSSA/External/Opq-Link/Opq-Area/Opq-As)

LinkState Id

Link State ID in the LSA header

AdvRouter

Router that advertises or generates LSAs

Age

Aging time of the LSA

Len

Size of the LSA

Sequence

Sequence number in the LSA header

Metric

Link metric of the router LSA

AS External Database

LSDB that contains external LSAs

Type 9 Opaque (Link-Local Scope) Database

LSDB that contains opaque LSAs in the link-local scope

Interfaces

Interface of the link-local opaque LSA

Type 10 Opaque (Area-Local Scope) Database

LSDB that contains opaque LSAs in the area-local scope

Area

Area of the Type-10 opaque LSA

# Display information about router LSAs in the LSDB.

<sysname> display ospf lsdb router
          OSPF Process 1 with Router ID 1.1.1.1
                          Area: 0.0.0.0
                  Link State Database

  Type      : Router
  Ls id     : 2.2.2.2
  Adv rtr   : 2.2.2.2
  Ls age    : 52
  Len       : 48
  Options   :  E
  seq#      : 80000006
  chksum    : 0xbf5a
  Link count: 2
     Link ID: 1.2.1.2
     Data   : 1.2.1.2
     Link Type: TransNet
     Metric : 1
     Link ID: 2.2.2.2
     Data   : 255.255.255.255
     Link Type: StubNet
     Metric : 0
     Priority : Medium
Table 2 Description of the display ospf lsdb router command output

Item

Description

Ls id

Link State ID in the LSA header

Adv rtr

Router that advertises or generates LSAs

Ls age

Aging time of the LSA

Options

Indicates the Options field as below:

  • E: allows Flood AS-External-LSAs.
  • MC: forwards IP multicast packets.
  • N/P: processes Type-7 LSAs.
  • DC: processes the required links.

seq#

Sequence number, which is used to check the order of LSAs

Chksum

LSA checksum

Link count

Number of links

Link ID

Link ID of the router LSA, which is classified according to the link type

  • If the type of link is Point-to-Point, Link ID indicates the router id of neighbour.
  • If the type of link is TransNet, Link ID indicates IP address of DR.
  • If the type of link is Stub, Link ID indicates IP address.
  • If the type of link is Virtual Link, Link ID indicates the router id of neighbour.

Data

Link data of the router LSA

  • If the type of link is Point-to-Point, TransNet, or Virtual Link, Data indicates IP address.
  • If the type of link is Stub, Data indicates mask of IP address.

Link Type

Link type of the router LSA: Point-to-Point, TransNet, StubNet, or Virtual

Metric

Link metric of the router LSA

Priority

OSPF convergence priority:

  • Critical
  • High
  • Medium
  • Low

# Display information about network LSAs in the LSDB.

<sysname> display ospf 1 lsdb network 1.1.1.1
          OSPF Process 1 with Router ID 1.1.1.1
                          Area: 0.0.0.0
                  Link State Database

  Type      : Network
  Ls id     : 10.1.1.1
  Adv rtr   : 1.1.1.1
  Ls age    : 167
  Len       : 32
  Options   :  E
  seq#      : 80000002
  chksum    : 0x3408
  Net mask  : 255.255.255.0
  Attached Router    2.2.2.2
  Attached Router    1.1.1.1
Table 3 Description of the display ospf lsdb network command output

Item

Description

Net mask

Network mask of the network LSA

Attached Router

Router that is connected to the network

# Display information about network summary LSAs in the LSDB.

<sysname> display ospf 1 lsdb summary 10.2.1.0
          OSPF Process 1 with Router ID 1.1.1.1
                    Area: 0.0.0.0
                  Link State Database

  Type      : Sum-Net
  Ls id     : 10.2.1.0
  Adv rtr   : 2.2.2.2
  Ls age    : 419
  Len       : 28
  Options   :  E
  seq#      : 80000001
  chksum    : 0x1d21
  Net mask  : 255.255.255.0
  Tos 0  metric: 1       
  Priority  : Medium
Table 4 Description of the display ospf lsdb summary command output

Item

Description

Net mask

Network mask of the network summary LSA

Tos

Type of service of the network summary LSA

Metric

Metric or cost of the route from the advertising router to the network, which is carried in the network summary LSA

# Display information about ASBR summary LSAs in the LSDB.

<sysname> display ospf 1 lsdb asbr 2.2.2.2
          OSPF Process 1 with Router ID 1.1.1.1
                    Area: 0.0.0.2
                  Link State Database

  Type      : Sum-Asbr
  Ls id     : 2.2.2.2
  Adv rtr   : 1.1.1.1
  Ls age    : 90
  Len       : 28
  Options   :  E
  seq#      : 80000001
  chksum    : 0xec62
  Tos 0  metric: 1

# Display information about AS external LSAs in the LSDB.

<sysname> display ospf 100 lsdb ase 10.10.1.0
          OSPF Process 1 with Router ID 1.1.1.1
                  Link State Database

  Type      : External
  Ls id     : 10.10.1.0
  Adv rtr   : 2.2.2.2
  Ls age    : 569
  Len       : 36
  Options   :  E
  seq#      : 80000002
  chksum    : 0x90d0
  Net mask  : 255.255.255.0
  TOS 0  Metric: 1
  E type    : 2
  Forwarding Address : 0.0.0.0
  Tag       : 1
  Priority  : Medium
Table 5 Description of the display ospf lsdb ase command output

Item

Description

Net mask

Network mask of the ASE or NSSA LSA

Tos

Type of service of the ASE or NSSA LSA

Metric

Metric or cost of the route from the advertising router to the network, which is carried in the ASE or NSSA LSA

E type

E type of the ASE or NSSA LSA

Forwarding Address

Forwarding address of the ASE or NSSA LSA

Tag

32-bit tag, which is carried in Type-5 and Type-7 LSAs to avoid routing loops

# Display information about NSSA external LSAs in the LSDB.

<sysname> display ospf 1 lsdb nssa 10.10.1.0
          OSPF Process 1 with Router ID 1.1.1.1
                    Area: 0.0.0.1
                  Link State Database

  Type      : NSSA
  Ls id     : 10.10.1.0
  Adv rtr   : 2.2.2.2
  Ls age    : 521
  Len       : 36
  Options   : None
  seq#      : 80000005
  chksum    : 0x9ea7
  Net mask  : 255.255.255.0
  TOS 0  Metric: 1
  E type    : 2
  Forwarding Address : 10.2.1.2
  Tag       : 1
  Priority  : Medium

# Display information about opaque link LSAs in the LSDB.

<sysname> display ospf 1 lsdb opaque-link
          OSPF Process 1 with Router ID 1.1.1.1
                         Area: 0.0.0.0                                          
                 Link State Database                                            

 Link State Database for interface 10.1.1.1 (GigabitEthernet0/0/1) Type: Broadcast

  Type      : Opq-Link
  Ls id     : 3.0.0.0
  Adv rtr   : 2.2.2.2
  Ls age    : 12
  Len       : 44
  Options   :  E
  seq#      : 80000001
  chksum    : 0x9579
         Opaque type : 3, Opaque ID : 0
         Grace LSA TLV information:
         Grace Period        : 1800
         GR reason           : 1
         IP address          : 10.1.1.2    
Table 6 Description of the display ospf lsdb opaque-link command output

Item

Description

Opaque Type

Opaque LSA

Opaque ID

Opaque ID of the opaque LSA (The opaque type and opaque ID equal the link state ID in the LSA header.)

Grace LSA TLV information:

GR information

Grace Period

GR waiting period

GR reason

Cause of GR:

  • 0: unknown

  • 1: software

  • 2: upgrade

  • 3: switchover

IP address

Address of the interface that performs GR

# Display information about opaque area LSAs in the LSDB.

<sysname> display ospf 1 lsdb opaque-area
          OSPF Process 1 with Router ID 1.1.1.1
                         Area: 0.0.0.0                                          
                 Link State Database                                            

  Type      : Opq-Area
  Ls id     : 1.0.0.1
  Adv rtr   : 1.1.1.1
  Ls age    : 639
  Len       : 200
  Options   :  E
  seq#      : 80000001
  chksum    : 0x2175
  Opaque Type: 1
  Opaque Id: 1
  Opaque lsa information:

     00 02 00 b0 00 01 00 01 02 00 00 00 00 02 00 04
     0a 01 01 01 00 03 00 04 0a 01 01 01 00 04 00 04
     00 00 00 00 00 05 00 04 00 00 00 01 80 02 00 04
     00 00 00 01 00 06 00 04 00 00 00 00 00 07 00 04
     00 00 00 00 80 00 00 04 00 00 00 00 00 09 00 04
     00 00 00 00 00 08 00 20 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 80 01 00 20 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 0a 00 09
     00 00 00 00 00 00 00 00 00 00 00 00 00 0c 00 04
     00 01 00 01

# Display information about generated hostnames in the LSDB.

<sysname> display ospf lsdb resolve-hostname
       OSPF Process 1 with Router ID 10.1.1.1
                  Link State Database

                          Area: 0.0.0.1
 Type      LinkState ID    AdvRouter        Age  Len   Sequence       Metric
 Router    10.1.1.1        RTR_BLR          192  36    800000b6            1

                  AS External Database
 Type      LinkState ID    AdvRouter        Age  Len   Sequence       Metric
 External  10.1.1.0        RTR_BLR          192  36    800000b6            1
 External  10.1.1.2        RTR_BJI          1    36    800000b6            1

# Display information about the hostname that generated by the ASE in the LSDB.

<sysname> display ospf lsdb ase resolve-hostname
       OSPF Process 1 with Router ID 255.255.255.255
                  Link State Database

  Type      : External
  Ls id     : 10.1.1.0
  Adv rtr   : 1.1.1.1
  Hostname  : RTR_BLR

  Ls age    : 223
  Len       : 36
  Options   :  E
  seq#      : 80000001
  chksum    : 0x655F
  Net mask  : 255.255.255.0
  Tos 0  metric: 1
  E type    : 2
  Forwarding Address : 0.0.0.0
  Tag       : 1
Table 7 Description of the display ospf lsdb ase resolve-hostname command output

Item

Description

Hostname

Hostname of a router

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