Configuring OSPF show ip ospf database
21-44 Routing Protocol Configuration
Defaults
Iflink‐state‐idisnotspecified,thespecifiedtypeofdatabaserecordswillbedisplayedforalllink
stateIDs.
Mode
Routercommand,Anyroutermode.
Example
ThisexampleshowshowtodisplayallOSPFlinkstatedatabaseinformation:
Matrix>Router#show ip ospf database
OSPF Router with ID(182.127.64.1)
Displaying Net Link States(Area 0.0.0.0)
LinkID ADV Router Age Seq# Checksum
182.127.63.1 182.127.62.1 956 0x80000001 0xb6ca
Displaying Router Link States(Area 0.0.0.0)
LinkID ADV Router Age Seq# Checksum LinkCount
182.127.64.1 182.127.64.1 308 0x8000000f 0x636b 2
182.127.62.1 182.127.62.1 952 0x8000001b 0x7ed7 1
Displaying Summary Net Link States(Area 0.0.0.0)
LinkID ADV Router Age Seq# Checksum
182.127.63.1 182.127.62.1 956 0x80000001 0xb6ca
Table 21‐3providesanexplanationofthecommandoutput.
nssa‐external Displaysnssa‐external(Type7)linkstaterecordsintheirdetailed
format.Type7recordsareoriginatedbyASBRs.
database‐summary Displaysanumericalsummaryofthecontentsofthelinkstate
database.
Table 21-3 show ip ospf database Output Details
Output... What it displays...
Link ID Link ID, which varies as a function of the link state record type, as
follows:
•NetLinkStates‐ShowstheinterfaceIPaddressofthe
designatedroutertothebroadcastnetwork.
•RouterLinkStates‐ShowstheIDoftherouter
originatingtherecord.
• SummaryLinkStates‐Showsthesummarynetwork
prefix.
ADV Router Router ID of the router originating the link state record.
Age Age (in seconds) of the link state record.
Seq# OSPF sequence number assigned to each link state record.