Show ip ospf database

Use the show ip ospf database command in EXEC mode to display lists of information related to the OSPF database for a specific router. The various forms of this command deliver information about different OSPF link state advertisements.

show ip ospf [process-id area-id] database show ip ospf [process-id area-id] database [adv-router [ip-address]] show ip ospf [process-id area-id] database [asbr-summary] [link-state-id]

show ip ospf [process-id area-id] database [asbr-summary] [link-state-id] [adv-router

show ip ospf [process-id area-id] database [asbr-summary] [link-state-id] [self-originate]

[link-state-id]

show ip ospf [process-id area-id] database [database-summary] show ip ospf [process-id] database [external] [link-state-id]

show ip ospf [process-id] database [external] [link-state-id] [adv-router [ip-address]]

show ip ospf [process-id area-id] database [external] [link-state-id] [self-originate]

[link-state-id]

show ip ospf [process-id area-id] database [network] [link-state-id]

show ip ospf [process-id area-id] database [network] [link-state-id] [adv-router [ip-address]]

show ip ospf [process-id area-id] database [network] [link-state-id] [self-originate]

[link-state-id]

show ip ospf [process-id area-id] database [nssa-external] [link-state-id]

show ip ospf [process-id area-id] database [nssa-external] [link-state-id] [adv-router

show ip ospf [process-id area-id] database [nssa-external] [link-state-id] [self-originate]

[link-state-id]

show ip ospf [process-id area-id] database [router] [link-state-id] show ip ospf [process-id area-id] database [router] [adv-router [ip-address]] show ip ospf [process-id area-id] database [router] [self-originate] [link-state-id] show ip ospf [process-id area-id] database [self-originate] [link-state-id] show ip ospf [process-id area-id] database [summary] [link-state-id]

show ip ospf [process-id area-id] database [summary] [link-state-id] [adv-router [ip-address]]

show ip ospf [process-id area-id] database [summary] [link-state-id] [self-originate]

[link-state-id]

Syntax Description process-id (Optional) Internal identification. It is locally assigned and can be any positive integer. The number used here is the number assigned administratively when enabling the OSPF routing process.

area-id (Optional) Area number associated with the OSPF address range defined in the network router configuration command used to define the particular area.

link-state-id (Optional) Portion of the Internet environment that is being described by the advertisement. The value entered depends on the advertisement's LS type. It must be entered in the form of an IP address.

When the link state advertisement is describing a network, the link-state-id can take one of two forms.

The network's IP address (as in type 3 summary link advertisements and in autonomous system external link advertisements).

A derived address obtained from the link state ID. (Note that masking a network links advertisement's link state ID with the network's subnet mask yields the network's IP address.)

When the link state advertisement is describing a router, the link state ID is always the described router's OSPF router ID.

When an autonomous system external advertisement (LS Type = 5) is describing a default route, its link state ID is set to Default Destination (0.0.0.0).

adv-router

(Optional) Displays all the LSAs of the specified router. If no IP

[ip-address]

address is included, the information is about the local router itself (in

this case, the same as self-originate).

asbr-summary

(Optional) Displays information only about the autonomous system

boundary router summary LSAs.

database-summary

(Optional) Displays how many ofeach type ofLSA for each area there

are in the database, and the total.

external

(Optional) Displays information only about the external LSAs.

network

(Optional) Displays information only about the network LSAs.

nssa-external

(Optional) Displays information only about the NSSA external LSAs.

router

(Optional) Displays information only about the router LSAs.

self-originate

(Optional) Displays only self-originated LSAs (from the local router).

summary

(Optional) Displays information only about the summary LSAs.

Was this article helpful?

+1 0

Post a comment