Viewing the OSPF link-state database

View the area advertisements and other information in the LSDB to ensure correct OSPF operations.

Procedure

  1. Enter Privileged EXEC mode:

    enable

  2. View the OSPF link-state database:

    show ip ospf lsdb [adv_rtr {A.B.C.D}] [area {A.B.C.D}>] [lsa-type <1-11] [lsid {A.B.C.D}] [vrf WORD<1-16>] [vrfids WORD<0-512>] [detail]

Example

Switch(config-ospf)#show ip ospf lsdb
================================================================================
                            OSPF LSDB - GlobalRouter
================================================================================

                Router Lsas in Area 0.0.0.0

LSTYPE     LINKSTATEID     ADV_ROUTER      AGE  SEQ_NBR    CSUM
--------------------------------------------------------------------------------
Router     192.0.2.0       192.0.2.0       617  0x80000031 0xeafd    
Router     198.51.100.0    198.51.100.0    1033 0x80000030 0xa5f2    

                Network Lsas in Area 0.0.0.0

LSTYPE     LINKSTATEID     ADV_ROUTER      AGE  SEQ_NBR    CSUM
--------------------------------------------------------------------------------
Network    100.1.1.2       192.0.2.0       617  0x8000002f 0xd038    

                Summary Lsas in Area 0.0.0.0

LSTYPE     LINKSTATEID     ADV_ROUTER      AGE  SEQ_NBR    CSUM
--------------------------------------------------------------------------------

                AsSummary Lsas in Area 0.0.0.0

                    





LSTYPE     LINKSTATEID     ADV_ROUTER      AGE  SEQ_NBR    CSUM
--------------------------------------------------------------------------------

                NSSA Lsas in Area 0.0.0.0

LSTYPE     LINKSTATEID     ADV_ROUTER      AGE  SEQ_NBR    CSUM
--------------------------------------------------------------------------------

================================================================================
                                AsExternal Lsas
================================================================================

LSTYPE     LINKSTATEID     ADV_ROUTER      ETYPE  METRIC  ASE_FWD_ADDR    AGE  SEQ_NBR    CSUM      
--------------------------------------------------------------------------------

Variable definitions

The following table defines parameters for the show ip ospf lsdb command.

Variable

Value

adv_rtr {A.B.C.D}

Specifies the advertising router.

area {A.B.C.D}

Specifies the OSPF area.

detail

Provides detailed output.

lsa-type <1-11

Specifies the link-state advertisement type in the range of 1–11.

lsid {A.B.C.D}

Specifies the link-state ID.

vrf WORD<1-16>

Specifies a VRF by name.

vrfids WORD<0-512>

Specifies a range of VRF IDs.