Command:

show ip ospf database


Mode:

Router>


Syntax:

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 [ ip-address ]]

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 [ area-id ]] database [external] [ link-state-id ]


show ip ospf [ process-id [ area-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 [ ip-address ]]

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 [opaque-area] [ link-state-id ]

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

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

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


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

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

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

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


show ip ospf [ process-id [ area-id ]] database [opaque-link] [ 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.

adv-router [ip-address]

(Optional) Displays all the link-state advertisements (LSAs) of the specified router. If no IP address is included, the information is about the local router itself (in this case, the same as the self-originate keyword).

asbr-summary

(Optional) Displays information only about the Autonomous System Boundary Router (ASBR) summary LSAs

link-state-id

(Optional) Portion of the Internet environment that is being described by the advertisement. The value entered depends on the type of the LSA. The value must be entered in the form of an IP address.

database-summary

(Optional) Displays how many of each type of LSA 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 not so stubby area (NSSA) external LSAs.

opaque-area

(Optional) Displays information about the opaque Type 10 LSAs. Type 10 denotes an area-local scope. Refer to RFC 2370 for more information on the opaque LSA options.

opaque-as

(Optional) Displays information about the opaque Type 11 LSAs. Type 11 denotes that the LSA is flooded throughout the autonomous system.

opaque-link

(Optional) Displays information about the opaque Type 9 LSAs. Type 9 denotes a link-local scope.

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.

 

Command Description:

To display lists of information related to the OSPF database for a specific router, use the show ip ospf database command in EXEC mode. The various forms of this command deliver information about different OSPF link-state advertisements(LSAs).


Example:

The following is sample output from the show ip ospf database command when no arguments or keywords are used:


 


Router#
show ip ospf database


OSPF Router with ID(192.168.1.11) (Process ID 1)

                 Router Link
States(Area 0)

Link ID
   ADV Router
  
 Age
   Seq# Checksum Link count

192.168.1.8 192.168.1.8 1381 0x8000010D
    0xEF60 2

192.168.1.11 192.168.1.11 1460 0x800002FE
    0xEB3D 4

192.168.1.12 192.168.1.12 2027 0x80000090
    0x875D 3

192.168.1.27 192.168.1.27 1323 0x800001D6
    0x12CC 3

          
       Net Link States(Area
0)

Link ID ADV Router
   Age
   Seq# Checksum

172.16.1.27 192.168.1.27 1323 0x8000005B
    0xA8EE

172.17.1.11 192.168.1.11 1461 0x8000005B
    0x7AC

                 Type-10
Opaque Link Area Link States (Area 0)

Link ID ADV Router
  
 Age Seq# Checksum Opaque ID

10.0.0.0 192.168.1.11 1461 0x800002C8
    0x8483
   0

10.0.0.0 192.168.1.12 2027 0x80000080
    0xF858
   0

10.0.0.0 192.168.1.27 1323 0x800001BC
    0x919B
   0

10.0.0.1 192.168.1.11 1461 0x8000005E
    0x5B43
   1


Misconceptions:

None.


Related Commands:

None.


© Cisco Systems, Inc. 2001, 2002
World Wide Education















Converted from CHM to HTML with chm2web Pro 2.85 (unicode)