show ip ospf lsdb

Syntax

show ip ospf [<INSTANCE-TAG>] lsdb  [all-vrfs | vrf <VRF-NAME>] 
     [area <AREA-ID>] [lsid <LINK-STATE-ID>]
     [adv-router {<ROUTER-ID> | self}] [vsx-peer]

show ip ospf [<INSTANCE-TAG>] lsdb  [all-vrfs | vrf <VRF-NAME>] 
     asbr-summary [area <AREA-ID>] [lsid <LINK-STATE-ID>] 
     [adv-router {<router-id> | self}] [vsx-peer]

show ip ospf [<INSTANCE-TAG>] lsdb  [all-vrfs | vrf <VRF-NAME>] 
     external [lsid <LINK-STATE-ID>] [adv-router {<ROUTER-ID> | self}] [vsx-peer]

show ip ospf [<INSTANCE-TAG>] lsdb  [all-vrfs | vrf <VRF-NAME>] 
     router [area <AREA-ID>] [lsid <LINK-STATE-ID>] 
     [adv-router {<ROUTER-ID> | self}] [vsx-peer]

show ip ospf [<INSTANCE-TAG>] lsdb  [all-vrfs | vrf <VRF-NAME>] 
     network [area <AREA-ID>] [lsid <LINK-STATE-ID>] 
     [adv-router {<ROUTER-ID> | self}] [vsx-peer]

show ip ospf [<INSTANCE-TAG>] lsdb  [all-vrfs | vrf <VRF-NAME>] 
     summary [area <AREA-ID>] [lsid <LINK-STATE-ID>] 
     [adv-router {<ROUTER-ID> | self}] [vsx-peer]

show ip ospf [<INSTANCE-TAG>] lsdb  [all-vrfs | vrf <VRF-NAME>] 
     nssa-external [area <AREA-ID>] [lsid <LINK-STATE-ID>] 
     [adv-router {<ROUTER-ID> | self}] [vsx-peer]

show ip ospf [<INSTANCE-TAG>] lsdb  [all-vrfs | vrf <VRF-NAME>] 
     database-summary [vsx-peer]

Description

Shows the OSPF link state database summary for different OSPF LSAs (Link State Advertisement). Use the parameters to get information for a particular LSA.

Command context

Operator (>) or Manager (#)

Parameters

<INSTANCE-TAG>

Enter an OSPF Process ID to display the OSPF link state database information for the specified OSPF process. Range: 1-63.

all-vrfs

Select to display OSPF link state database information for all VRFs.

vrf <VRF-NAME>

Select to display OSPF link state database information for a particular VRF. If the VRF is not specified, information for the default VRF is displayed.

Optionally select one of the following parameters to filter the link state database information.
  • asbr-summary. Displays ASBR summary link states (LSA type 4).

  • external. Displays external link states (LSA type 5). The external parameter does not take the area <AREA-ID> parameter.

  • router. Displays router LSAs (LSA type 1).

  • network. Displays network LSAs (LSA type 2).

  • summary. Displays network-summary link states (LSA type 3).

  • nssa-external. Displays NSSA external link states (LSA type 7).

database-summary

Select to display the count of each type of LSA and each area in the database.

area <AREA-ID>
Select to display information filtered for the specified area in one of the following formats.
  • OSPF area identifier in IPv4 address format. Format: A.B.C.D

  • OSPF area identifier in decimal format. Value: 0-4294967295.

lsid <LINK-STATE-ID>

Select to display information filtered by link state identifier specified in IPv4 address format (A.B.C.D).

adv-router {<ROUTER-ID> | self}

Select to display link states for a particular advertising router. Specify either a Router ID of the advertising router or specify self to show self-originated link states.

[vsx-peer]

Shows the output from the VSX peer switch. If the switches do not have the VSX configuration or the ISL is down, the output from the VSX peer switch is not displayed.

Authority

Operators or Administrators. Users without administrator authority can execute this command from the operator context (>) only.

Examples

Showing OSPF link state database (LSDB) general information:

switch# show ip ospf lsdb
OSPF Router with ID (50.50.50.50) (Process ID 1 VRF default)
============================================================

Router Link State Advertisements (Area 0.0.0.0)
-----------------------------------------------

LSID            ADV Router      Age     Seq#        Checksum    Link Count
--------------------------------------------------------------------------
40.40.40.40     40.40.40.40     930     0x80000004  0x2ea1      3
50.50.50.50     50.50.50.50     935     0x80000002  0x8b52      1
60.60.60.60     60.60.60.60     943     0x800003c5  0x9854      2

Network Link State Advertisements (Area 0.0.0.0)
------------------------------------------------

LSID            ADV Router      Age     Seq#        Checksum
--------------------------------------------------------------
209.165.201.3   60.60.60.60     944     0x80000001  0x7179
192.0.2.1       50.50.50.50     935     0x80000001  0x516a

Inter-area Summary Link State Advertisements (Area 0.0.0.0)
------------------------------------------------------------

LSID            ADV Router      Age     Seq#        Checksum
--------------------------------------------------------------
209.165.201.1   40.40.40.40     929     0x80000001  0x2498
209.165.201.1   50.50.50.50     928     0x80000001  0x5b2f
209.165.201.1   60.60.60.60     1265    0x800003c3  0xf49b
192.0.2.0       40.40.40.40     943     0x80000001  0x53f3
192.0.2.0       50.50.50.50     935     0x80000001  0x26f8
192.0.2.0       60.60.60.60     930     0x80000001  0x7b51

Showing ASBR summary link states:

switch# show ip ospf lsdb asbr-summary
OSPF Router with ID (2.2.2.1) (Process ID 1 VRF default)
========================================================

ASBR Summary Link State Advertisements (Area 0.0.0.0)
-----------------------------------------------------

LSID            ADV Router      Age     Seq#            Checksum
------------------------------------------------------------------
209.165.201.3   60.60.60.60     944     0x80000001      0x7179
192.0.2.1       50.50.50.50     935     0x80000001      0x516a

Showing external link states:

switch# show ip ospf lsdb external
OSPF Router with ID (2.2.2.1) (Process ID 1 VRF default)
========================================================

AS External Link State Advertisements
--------------------------------------

LSID            ADV Router      Age     Seq#            Checksum
------------------------------------------------------------------
209.165.201.3   60.60.60.60     944     0x80000001      0x7179
192.0.2.1       50.50.50.50     935     0x80000001      0x516a

Showing database summary:

switch# show ip ospf lsdb database-summary
OSPF Router with ID (10.1.1.1) (Process ID 1 VRF default)
==========================================================

Area 0.0.0.0 database summary
------------------------------

LSA Type             Count
---------------------------
Router               2
Network              1
Inter-area Summary   1
ASBR Summary         0
NSSA External        0
Subtotal             4

Process 1 database summary
---------------------------

LSA Type             Count
---------------------------
Router               2
Network              1
Inter-area Summary   1
ASBR Summary         0
NSSA External        0
AS External          0
Total                4

Showing router LSAs:

switch# show ip ospf lsdb router
OSPF Router with ID (2.2.2.1) (Process ID 1 VRF default)
========================================================

Router Link State Advertisements (Area 0.0.0.0)
-----------------------------------------------

LSID            ADV Router      Age        Seq#       Checksum Link Count
-------------------------------------------------------------------------
1.1.1.2         1.1.1.2         15         0x80000004 0xf526    1
2.2.2.1         2.2.2.1         14         0x80000005 0x6c5e    2
2.2.2.2         2.2.2.2         104        0x80000004 0xf51a    1

Showing network LSAs:

switch# show ip ospf lsdb network
OSPF Router with ID (2.2.2.1) (Process ID 1 VRF default)
========================================================

Network Link State Advertisements (Area 0.0.0.0)
------------------------------------------------

LSID            ADV Router      Age        Seq#       Checksum
----------------------------------------------------------------
1.1.1.2         1.1.1.2         141        0x80000001 0xc55e
2.2.2.2         2.2.2.2         230        0x80000001 0xa179

Showing network-summary link states:

sswitch# show ip ospf lsdb summary
OSPF Router with ID (2.2.2.1) (Process ID 1 VRF default)
========================================================

Inter-area Summary Link State Advertisements (Area 0.0.0.0)
-----------------------------------------------------------

LSID            ADV Router      Age        Seq#       Checksum
----------------------------------------------------------------
1.1.1.0         2.2.2.1         133        0x80000002 0xa089

Inter-area Summary Link State Advertisements (Area 0.0.0.1)
-----------------------------------------------------------

LSID            ADV Router      Age        Seq#       Checksum
----------------------------------------------------------------
2.2.2.0         2.2.2.1         133        0x80000002 0x7caa

Showing NSSA external link states:

switch(config-ospf-1)# show ip ospf lsdb nssa-external
OSPF Router with ID (2.2.2.1) (Process ID 1 VRF default)
========================================================

NSSA External Link State Advertisements (Area 0.0.0.1)
------------------------------------------------------

LSID            ADV Router      Age        Seq#       Checksum
----------------------------------------------------------------
8.8.8.0         1.1.1.2         162        0x80000003 0xc7b2