< Home

display ospf lsdb

Function

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

Format

display ospf [ process-id ] lsdb [ brief ]

display ospf [ process-id ] lsdb [ { 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 } * ]

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 status of external links in the NSSA.

-

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.

The value is an IP address in dotted decimal notation.

advertising-router-id

Specifies the router ID of the device that advertises the LSA.

The value is an IP address in dotted decimal notation.

self-originate

Displays information about the self-originated LSA.

-

age

Displays the LSAs that meet the age filtering rule.

-

min-value min-age-value

Displays information about only LASs with the age value greater than or equal to the min-age-value value.

The value is an integer ranging from 0 to 3600.

max-value max-age-value

Displays information only about LASs with the age value less than or equal to the max-age-value value.

The value is an integer ranging from 0 to 3600.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To check information about the LSDB, run the display ospf lsdb command. You can choose to view:

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

The command output helps you troubleshoot OSPF faults.

Example

# Display brief information about the OSPF LSDB.

<HUAWEI> display ospf lsdb
          OSPF Process 1 with Router ID 10.1.1.1                                 
                  Link State Database                                           
                                                                                
                          Area: 0.0.0.0                                         
 Type      LinkState ID    AdvRouter          Age  Len   Sequence   Metric
 Router    10.1.1.1        10.1.1.1          1348  48    800007C9    10000
 Router    10.1.1.2        10.1.1.2          1078  60    80000654       0
 Network   192.168.10.1    192.168.10.1      1349  32    80000060       0

                  AS External Database
 Type      LinkState ID    AdvRouter          Age  Len   Sequence   Metric
 External  0.0.0.0         10.1.1.2          1743  36    800005FE       1
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, and Opq-As.

LinkState ID

Link State ID in the LSA header.

AdvRouter

Device that advertises or generates LSAs.

Age

Aging time of the LSA.

Len

Size of the LSA.

Sequence

Sequence number in the LSA header.

Metric

Metric.

AS External Database

LSDB that contains external LSAs.

# Display information about router LSAs in the LSDB.

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

  Type      : Router
  Ls id     : 10.2.2.2
  Adv rtr   : 10.2.2.2
  Ls age    : 52
  Len       : 48
  Options   :  E
  seq#      : 80000006
  chksum    : 0xbf5a
  Link count: 2
     Link ID: 10.2.1.2
     Data   : 10.2.1.2
     Link Type: TransNet
     Metric : 1
     Link ID: 10.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

Device that advertises or generates LSAs.

Ls age

Aging time of the LSA.

Len

Size of the LSA.

Options

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

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: P-2-P, TransNet, StubNet, or Virtual.

Metric

Link metric of the router LSA.

Priority

OSPF convergence priorities:

  • Critical: indicates that the convergence priority of OSPF routes is critical.
  • High: indicates that the convergence priority of OSPF routes is high.
  • Medium: indicates that the convergence priority of OSPF routes is medium.
  • Low: indicates that the convergence priority of OSPF routes is low.

# Display information about network LSAs in the LSDB.

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

  Type      : Network
  Ls id     : 10.1.1.1
  Adv rtr   : 10.1.1.1
  Ls age    : 167
  Len       : 32
  Options   :  E
  seq#      : 80000002
  chksum    : 0x3408
  Net mask  : 255.255.255.0

  Attached Router    10.2.2.2
  Attached Router    10.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

Device that is connected to the network.

# Display information about network summary LSAs in the LSDB.

<HUAWEI> display ospf 1 lsdb summary 10.20.1.0
          OSPF Process 1 with Router ID 10.1.1.1
                    Area: 0.0.0.0
                  Link State Database

  Type      : Sum-Net
  Ls id     : 10.1.1.0
  Adv rtr   : 10.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.

Priority

OSPF convergence priorities:

  • Critical: indicates that the convergence priority of OSPF routes is critical.
  • High: indicates that the convergence priority of OSPF routes is high.
  • Medium: indicates that the convergence priority of OSPF routes is medium.
  • Low: indicates that the convergence priority of OSPF routes is low.
# Display information about ASBR summary LSAs in the LSDB.
<HUAWEI> display ospf 1 lsdb asbr 10.2.2.2
          OSPF Process 1 with Router ID 10.1.1.1
                    Area: 0.0.0.2
                  Link State Database

  Type      : Sum-Asbr
  Ls id     : 10.2.2.2
  Adv rtr   : 10.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.
<HUAWEI> display ospf 100 lsdb ase 10.1.1.0
OSPF Process 1 with Router ID 10.1.1.1
Link State Database

  Type      : External
  Ls id     : 10.1.1.0
  Adv rtr   : 10.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

Priority

OSPF convergence priorities:

  • Critical: indicates that the convergence priority of OSPF routes is critical.
  • High: indicates that the convergence priority of OSPF routes is high.
  • Medium: indicates that the convergence priority of OSPF routes is medium.
  • Low: indicates that the convergence priority of OSPF routes is low.

# Display information about NSSA external LSAs in the LSDB.

<HUAWEI> display ospf 1 lsdb nssa 192.168.1.0
          OSPF Process 1 with Router ID 10.1.1.1
                    Area: 0.0.0.1
                  Link State Database

  Type      : NSSA
  Ls id     : 10.1.1.0
  Adv rtr   : 10.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.1.1.2
  Tag       : 1
  Priority  : Medium

# Display information about Opaque-link LSAs in the LSDB.

<HUAWEI> display ospf 1 lsdb opaque-link
          OSPF Process 1 with Router ID 10.1.1.1
Area: 0.0.0.0                                          
                 Link State Database 
 Link State Database for interface 10.1.1.1 (Vlanif200) Type: Broadcast

  Type      : Opq-Link
  Ls id     : 10.0.0.0
  Adv rtr   : 10.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-link LSA.

Opaque ID

Opaque ID of an Opaque-link LSA (Link state ID in the LSA header consists of Opaque type and Opaque ID.).

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 on the switch.

# Display information about Opaque-area LSAs in the LSDB.

<HUAWEI> display ospf 1 lsdb opaque-area
OSPF Process 1 with Router ID 10.1.1.1
Area: 0.0.0.0                                          
                 Link State Database 
  Type      : Opq-Area
  Ls id     : 10.0.0.1
  Adv rtr   : 10.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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >