The show ip ospf database Command

show ip ospf database

This command displays the contents of the router's topological database and the different LSAs that have populated the database. In this example, because the router used is an internal router, the LSAs displayed will be the router and network updates. This command has many parameters that enable the user to examine very specific information. This section considers the general command.

Example 5-7 shows the output of this command. Table 5-9 explains the meaning of the important fields.

Area 3

Number of interfaces in this area is 3 Area has no authentication SPF algorithm executed 10 times Area ranges are

Link State Update Interval is 00:30:00 and due in 00:18:54

Example 5-7 show ip ospf database Output

SanJose#show ip

ospf database

OSPF

Router with

ID

(140.

100.32.10)

(Process ID

100)

Router

Link

States

(Area 3)

Link ID

ADV

Router

Age

Seq#

Checksum

Link count

140.100

17.

131

140

100

17.

131

471

0X80000008

0xA469

1

140.100

17.

132

140

100

17.

132

215

0x80000007

0xA467

1

140.100

17.

194

140

100

17.

194

1489

0X8000000B

0xFF16

1

140.100

23.

1

140

100

23

1

505

0x80000006

0X56B3

1

140.100

32.

10

140

100

32

10

512

0X8000000C

0X46BA

3

140.100

32.

11

140

100

32

11

150

0X80000006

0X6A73

1

140.100

32.

12

140

100

32

12

1135

0x80000002

0x8E30

1

Net

Link States

(Area 3)

Link ID

ADV

Router

Age

Seq#

Checksum

140.100

17.

130

140

100

23

1

220

0x80000007

0x3B42

140.100

17.

194

140

100

17.

194

1490

0x80000002

0X15C9

140.100

32.

11

140

100

32

11

150

0x80000004

0x379E

Table 5-9 Explanation of the show ip ospf database Command Field Explanation

Table 5-9 Explanation of the show ip ospf database Command Field Explanation

OSPF Router with ID (140.100.32.10) The router ID and the process ID of the router being viewed. (Process ID 100)

Displaying Router Link States The router LSAs, showing the links connecting the router to

(Area 3) neighbors discovered via the Hello protocol.

Link ID The link ID, which is the same as the OSPF router ID.

ADV Router The OSPF router ID of the advertising router. Note that the

ID is the same as the link ID when describing the router LSAs. This is because the router is advertising these links in its router LSA to the area.

Age

The age is the length of time since the last update. It is shown

in seconds.

Seq #

The sequence number, used to ensure that the LSA is truly an

update that is more recent than anything currently in the

topological database.

Checksum

The checksum on the entire LSA update. Ensures the

integrity of the update.

continues

Table 5-9 Explanation of the show ip ospf database Command (Continued)

Field

Explanation

Link Count

The number of links that the router has configured for OSPF.

Note that this field is shown only for the router LSA update.

Displaying Net Link States (Area 3)

Information taken from the network LSAs that have been

received by the router.

Displaying Summary Net Link States

Information taken from the summary LSAs, which are

(Area 3)

passed between the Area Border Routers. As an internal

router in a single area, this section of the display would be

blank.

Was this article helpful?

+1 0

Post a comment