display ospf lsdb
Use display ospf lsdb to display OSPF LSDB information.
Syntax
display ospf [ process-id ] lsdb [ brief | originate-router advertising-router-id | self-originate ]
display ospf [ process-id ] lsdb { opaque-as | ase } [ link-state-id ] [ originate-router advertising-router-id | self-originate ]
display ospf [ process-id ] [ area area-id ] lsdb { asbr | network | nssa | opaque-area | opaque-link | router | summary } [ link-state-id ] [ originate-router advertising-router-id | self-originate ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. If you do not specify this argument, the command displays LSDB information for all OSPF processes.
area area-id: Specifies an OSPF area by its ID. The area ID is an IP address or a decimal integer in the range of 0 to 4294967295 that is translated into the IP address format. If you do not specify this option, the command displays LSDB information for all OSPF areas.
brief: Displays brief LSDB information.
asbr: Displays Type-4 LSA (ASBR Summary LSA) information in the LSDB.
ase: Displays Type-5 LSA (AS External LSA) information in the LSDB.
network: Displays Type-2 LSA (Network LSA) information in the LSDB.
nssa: Displays Type-7 LSA (NSSA External LSA) information in the LSDB.
opaque-area: Displays Type-10 LSA (Opaque-area LSA) information in the LSDB.
opaque-as: Displays Type-11 LSA (Opaque-AS LSA) information in the LSDB.
opaque-link: Displays Type-9 LSA (Opaque-link LSA) information in the LSDB.
router: Displays Type-1 LSA (Router LSA) information in the LSDB.
summary: Displays Type-3 LSA (Network Summary LSA) information in the LSDB.
link-state-id: Specifies a link state ID in the IP address format.
originate-router advertising-router-id: Specifies an advertising router by its ID.
self-originate: Displays information about self-originated LSAs.
Examples
# Display OSPF LSDB information.
<Sysname> display ospf lsdb OSPF Process 1 with Router ID 192.168.0.1 Link State Database Area: 0.0.0.0 Type LinkState ID AdvRouter Age Len Sequence Metric Router 192.168.0.2 192.168.0.2 474 36 80000004 0 Router 192.168.0.1 192.168.0.1 21 36 80000009 0 Network 192.168.0.1 192.168.0.1 321 32 80000003 0 Sum-Net 192.168.1.0 192.168.0.1 321 28 80000002 1 Sum-Net 192.168.2.0 192.168.0.2 474 28 80000002 1 Area: 0.0.0.1 Type LinkState ID AdvRouter Age Len Sequence Metric Router 192.168.0.1 192.168.0.1 21 36 80000005 0 Sum-Net 192.168.2.0 192.168.0.1 321 28 80000002 2 Sum-Net 192.168.0.0 192.168.0.1 321 28 80000002 1 Type 9 Opaque (Link-Local Scope) Database Flags: * -Vlink interface LSA Type LinkState ID AdvRouter Age Len Sequence Interfaces *Opq-Link 3.0.0.0 7.2.2.1 8 14 80000001 10.1.1.2 *Opq-Link 3.0.0.0 7.2.2.2 8 14 80000001 20.1.1.2
Table 39: Command output
Field | Description |
---|---|
Area | LSDB information for the area. |
Type | LSA type. |
LinkState ID | Link state ID. |
AdvRouter | Advertising router. |
Age | Age of the LSA. |
Len | Length of the LSA. |
Sequence | Sequence number of the LSA. |
Metric | Cost of the LSA. |
*Opq-Link | Opaque LSA generated by a virtual link. |
# Display Type-2 LSA (Network LSA) information in the LSDB.
<Sysname> display ospf 1 lsdb network OSPF Process 1 with Router ID 192.168.1.1 Link State Database Area: 0.0.0.0 Type : Network LS ID : 192.168.0.2 Adv Rtr : 192.168.2.1 LS age : 922 Len : 32 Options : E Seq# : 80000003 Checksum : 0x8d1b Net mask : 255.255.255.0 Attached router 192.168.1.1 Attached router 192.168.2.1 Area: 0.0.0.1 Type : Network LS ID : 192.168.1.2 Adv Rtr : 192.168.1.2 LS age : 782 Len : 32 Options : NP Seq# : 80000003 Checksum : 0x2a77 Net mask : 255.255.255.0 Attached router 192.168.1.1 Attached router 192.168.1.2
Table 40: Command output
Field | Description |
---|---|
Type | LSA type. |
LS ID | DR IP address. |
Adv Rtr | Router that advertised the LSA. |
LS age | LSA age time. |
Len | LSA length. |
Options | LSA options:
|
Seq# | LSA sequence number. |
Checksum | LSA checksum. |
Net mask | Network mask. |
Attached router | ID of the router that established adjacency with the DR, and ID of the DR itself. |