show ip ospf database
This command shows information about different OSPF Link State Advertisements
(LSAs) stored in this router’s database.
Syntax
show ip ospf [area-id] database [adv-router [ip-address]]
show ip ospf [area-id] database [asbr-summary] [link-state-id]
show ip ospf [area-id] database [asbr-summary] [link-state-id] [adv-router [ip-address]]
show ip ospf [area-id] database [asbr-summary] [link-state-id] [self-originate] [link-state-id]
show ip ospf [area-id] database [database-summary]
show ip ospf [area-id] database [external] [link-state-id]
show ip ospf [area-id] database [external] [link-state-id] [adv-router [ip-address]]
show ip ospf [area-id] database [external] [link-state-id] [self-originate] [ip-address]
show ip ospf [area-id] database [network] [link-state-id]
show ip ospf [area-id] database [network] [link-state-id] [adv-router [ip-address]]
show ip ospf [area-id] database [network] [link-state-id] [self-originate] [link-state-id]
show ip ospf [area-id] database [nssa-external] [link-state-id]
show ip ospf [area-id] database [nssa-external] [link-state-id] [adv-router [ip-address]]
show ip ospf [area-id] database [nssa-external] [link-state-id] [self-originate] [link-state-id]
show ip ospf [area-id] database [router] [link-state-id]
show ip ospf [area-id] database [[router] [adv-router [ip-address]]
show ip ospf [area-id] database [router] [self-originate] [link-state-id]
show ip ospf [area-id] database [self-originate] [link-state-id]
show ip ospf [area-id] database [summary] [link-state-id]
show ip ospf [area-id] database [summary] [link-state-id] [adv-router [ip-address]]
show ip ospf [area-id] database [summary] [link-state-id] [self-originate] [link-state-id]
area-id - Area defined for which you w ant to view LSA inform ation .
(This item must be entered in the form of an IP address. )
adv-router
- IP address of the advertising router. If not entered, information
about all advertising routers is displayed.
ip-address - IP address of the specified router. If no address is entered,
information about the local router is displayed.
asbr-summary
- Shows information about Autonomous System Boundary
Router summary LSAs.
link-state-id - The network portion d escr ibed by an LS A. The link-state-id
entered should be:
- An IP network number for Type 3 Summary and External LSA s
- A Router ID for Router, Network, and Type 4 AS Summ ary LSA s
Also, note that when an Type 5 ASBR External LSA is de scribin g a de fa ult
route, its link-state-id is set to the default destination (0.0.0.0).
self-originate - Shows LSAs originated b y this ro uter.
database-summary - Shows a count for each L SA type for eac h area
stored in the database, and the total number of LSAs in the databa se.
external - Shows informatio n about externa l LSAs.
network - Shows information about network LSAs.
nssa-external - Shows information abo ut NSSA external LSAs.
router - Shows information abo ut router LSA s.
summary - Shows information about summary LSA s.
42-41
Open Shortest Path First (OSPF)
42