Step 4: Examine the Link-State Database
Purpose
You can examine the entire link-state database to obtain important information about the network. In this step, you verify that the key word
Attachedappears in the output of the Level 1 routers (R3andR4) and the Level 1/Level 2 routers (R2andR5).Action
To examine the link-state database for routers at different levels of the network, enter the following CLI command:
user@host>show isis databaseSample Output
user@R1>show isis databaseIS-IS level 1 link-state database:0 LSPsIS-IS level 2 link-state database:LSP ID Sequence Checksum Lifetime AttributesR1.00-00 0x1b 0xd4b5 583 L1 L2R2.00-00 0x1d 0x1a4f 1131 L1 L2R5.00-00 0x1b 0x6245 883 L1 L2R6.00-00 0x20 0xf7c 919 L1 L24 LSPsuser@R2> show isis databaseIS-IS level 1 link-state database:LSP ID Sequence Checksum Lifetime AttributesR2.00-00 0x56 0xbd8c 862 L1 L2AttachedR3.00-00 0x58 0xaca1 463L12 LSPsIS-IS level 2 link-state database:LSP ID Sequence Checksum Lifetime AttributesR1.00-00 0x57 0x3e10 871 L1 L2R2.00-00 0x5e 0x9790 1150 L1 L2R5.00-00 0x5a 0xadba 1162 L1 L2R6.00-00 0x56 0xa2b2 484 L1 L24 LSPsuser@R3>show isis databaseIS-IS level 1 link-state database:LSP ID Sequence Checksum Lifetime AttributesR2.00-00 0x56 0xbd8c 792 L1 L2AttachedR3.00-00 0x58 0xaca1 397 L12 LSPsIS-IS level 2 link-state database:0 LSPs[edit protocols isis]user@R4>show isis databaseIS-IS level 1 link-state database:LSP ID Sequence Checksum Lifetime AttributesR4.00-00 0x56 0x34b8 1125 L1R5.00-00 0x57 0x22bb 795 L1 L2Attached2 LSPsIS-IS level 2 link-state database:0 LSPsuser@R5>show isis databaseIS-IS level 1 link-state database:LSP ID Sequence Checksum Lifetime AttributesR4.00-00 0x56 0x34b8 1071 L1R5.00-00 0x57 0x22bb 745 L1 L2Attached2 LSPsIS-IS level 2 link-state database:LSP ID Sequence Checksum Lifetime AttributesR1.00-00 0x57 0x3e10 707 L1 L2R2.00-00 0x5e 0x9790 982 L1 L2R5.00-00 0x5a 0xadba 1002 L1 L2R6.00-00 0x57 0xa0b3 1064 L1 L24 LSPsuser@R6>show isis databaseIS-IS level 1 link-state database:0 LSPsIS-IS level 2 link-state database:LSP ID Sequence Checksum Lifetime AttributesR1.00-00 0x1b 0xd4b5 728 L1 L2R2.00-00 0x1c 0x1c4e 604 L1 L2R5.00-00 0x1b 0x6245 1032 L1 L2R6.00-00 0x20 0xf7c 1072 L1 L24 LSPsWhat It Means
The sample output shows the details of the Level 1 and Level 2 IS-IS databases for routers
R1,R2,R3,R4,R5,andR6. Whether a router is configured for Level 1, Level 2 or Level 1/Level 2 is indicated by the type of IS-IS link-state datebase(s) in the output for theshow isis databasecommand for that router. For example,R3andR4are Level 1 routers because they do not have LSPs in the Level 2 link-state database, and theR1andR6areLevel 2 routers because they do not have LSPS in the Level 1 link-state database.R2andR5are have LSPs in both Level 1/Level 2 link-state databases, indicating they are Level 1/Level 2 routers.In addition, the output for
R2shows that it is a Level 1/Level 2 router because it hasR3in its Level 1 database, whileR3does not have theL2notation in theAttributesfield, indicating that it is configured for Level 1.The details of the Level 2 IS-IS database are the same for all Level 2 routers in the network.
The key word
Attachedappears in the Level 1 link-state database forR2,R3,R4, andR5, indicating that the Level 2 routers (R2andR5) can communicate with other Level 2 systems and act as gateways for the Level 1 routers (R3andR4) in their respective areas. If the links that connectR2andR5to the other Level 2 routers (R1andR6) are broken, the key wordAttachedwill not appear in the output becauseR2andR5will no longer act as gateways for the Level 1 routers.