show ip ospf database
Shows the OSPF Link-State Advertisement (LSA) database.
Syntax: show ip ospf database [type]
type
|
The link state advertisement type. Valid types include:
- asbr-summary - ASBR summary link advertisements
- database-summary - Summary of database
- external - External link state advertisements
- network - Network link state advertisements
- router - Router link state advertisements
- summary - Network summary link state advertisements
- te - Traffic Engineering Opaque advertisement
|
Description: Use the show ip ospf database command with no arguments to display all link state advertisements.
Use the show ip ospf database type command to display only the specified type of link state advertisements.
Factory Default: None.
Command Mode: Executive and privileged.
Example 1: The following example shows the output from the show ip ospf database router command:
router#show ip ospf database router
Router Advertisements (Area 0.0.0.0)
LS age: 1191
Options: (External Routing Capability, No TOS Capability)
LS Type: Router Links
Link State ID: 21.5.2.1
Advertising Router ID: 21.5.2.1
LS Seq Number: 5
Checksum: 0x6962
Length: 132
Area Border Router
AS Boundary Router
Number of Links: 9
Link connected to: a Router
(Router ID) Address: 21.5.1.1
(Link Data) Router Interface Address: 120.5.1.2
tos0 metric : 11
Link connected to: a Stub Network
(Link ID) Network/subnet number: 120.5.1.0
(Link Data) Network Mask: 255.255.255.255
tos0 metric : 11
.
.
.
|
|
Table 2-3. Fields Displayed by show ip ospf database router
Field
|
Description
|
LS age
|
Link state age.
|
Options
|
Type of service options.
|
LS Type
|
Format and function of the LSA. Valid values include:
- router-LSAs - states of the router's interfaces
- network-LSAs - the set of routers attached to the network
- summary-LSAs - summary routes to networks.
- summary LSAs - summary routes to AS boundary routers.
- AS-external-LSAs - routes to destinations external to the Autonomous System.
|
Link State ID
|
The portion of the routing domain that is being described by the LSA. Depending on the LSA's LS type, the Link State ID is one of the following values:
LS type = 1: The originating router's Router ID.
LS type = 2: The IP interface address of the network's DR.
LS type = 3: The destination network's IP address.
LS type = 4: The Router ID of the described AS boundary router.
LS type = 5: The destination network's IP address.
|
Advertising Router ID
|
Advertising router's ID.
|
LS Seq Number
|
Link state sequence number. A 32-bit value which wraps on overflow.
|
Checksum
|
Checksum of the LSA packet.
|
Length
|
Number of bytes in the LSA.
|
Area Border Router
|
Router connected to multiple areas.
|
AS Boundary Router
|
A router that exchanges routing information with routers belonging to other Autonomous Systems.
|
Number of Links
|
Number of active links.
|
Link Connected to
|
Links are connected to a Router on a Point-to-Point link or a Stub Network.
|
(Router ID)
|
IP address of the neighbor.
|
(Link Data)
|
Router interface address.
|
tos0 metric
|
Type of service metric.
|
Example 2: The following is sample output of the show ip ospf database summary command:
router#show ip ospf database database summary
Summary Net Advertisements (Area 0.0.0.0)
LS age: 1
Options: (External Routing Capability, No TOS Capability)
LS Type: Summary Net Links
Link State ID: 33.3.3.3
Advertising Router ID: 23.2.2.2
LS Seq Number: 80000237
Checksum: 0x15a7
Length: 28
Network Mask: 255.255.255.255
Metric : 1
.
.
.
|
Example 3: The following is sample output of the show ip ospf database network command:
Network Advertisements (Area 0.0.0.0)
LS age: 1
Options: (External Routing Capability, No TOS Capability)
LS Type: Network Links
Link State ID: 192.1.1.199
Advertising Router ID: 23.2.2.2
LS Seq Number: 80000080
Checksum: 0x379e
Length: 32
Network Mask: 255.255.255.0
Attached Router(s):
23.2.2.2
29.1.1.1
|
The following is sample output of the show ip ospf database te command:
LDP-TSR10#show ip ospf database te
Area Local Opaque Advertisements (Area 0.0.0.0)
LS age: 534
Options: (External Routing Capability, No TOS Capability)
LS Type: Area Local Opaque Links
Link State ID: 1.0.0.2
Advertising Router ID: 92.92.92.92
LS Seq Number: 8000000a
Checksum: 0xaca5
length: 124
number of tlvs: 1
TLV type: 2
Link Type: 1
Link ID: 4.4.4.4
Local IP address: 92.1.1.1
Remote IP Address: 92.1.1.2
TE Metric 1
|
Max Link BW (Bytes/sec): 49233166336.000000
Max Reservable BW (Bytes/sec): 443098.468750
Unreserved BW (Bytes/sec): 443098.468750
443098.468750
443098.468750
443098.468750
443098.468750
443098.468750
443098.468750
443098.468750
Administrative Color 0x0
.
.
.
|
The following table describes the fields displayed by the show ip ospf database te command:
Table 2-4. Fields Displayed by show ip ospf database te
Field
|
Description
|
LS age
|
Link state age.
|
Options
|
Type of service options.
|
LS Type
|
Format and function of the LSA. Valid values include:
- router-LSAs - states of the router's interfaces
- network-LSAs - the set of routers attached to the network
- summary-LSAs - summary routes to networks.
- summary LSAs - summary routes to AS boundary routers.
- AS-external-LSAs - routes to destinations external to the Autonomous System.
|
Link State ID
|
The portion of the routing domain that is being described by the LSA. Depending on the LSA's LS type, the Link State ID is one of the following values:
LS type = 1: The originating router's Router ID.
LS type = 2: The IP interface address of the network's DR.
LS type = 3: The destination network's IP address.
LS type = 4: The Router ID of the described AS boundary router.
LS type = 5: The destination network's IP address.
|
Advertising Router ID
|
Advertising router's ID.
|
LS Seq Number
|
Link state sequence number. A 32-bit value which wraps on overflow.
|
Checksum
|
Checksum of the LSA packet.
|
Length
|
Number of bytes in the LSA.
|
number of tlvs
|
Number of TLVs associated with this LSA.
|
TLV type
|
1 - Router Address
2 - Link
|
Link type
|
Defines the type of the link:
1 - Point-to-point
2 - Multiaccess
|
Link ID
|
Identifies the other end of the link. For point-to-point links, this is the Router ID of the neighbor. For multiaccess links, this is the interface address of the designated router.
|
Local IP address
|
The IP address of the interface corresponding to this link.
|
Remote IP address
|
The IP address of the neighbor's interface corresponding to this link.
|
TE Metric
|
Link metric for traffic engineering purposes. This metric may be different than the standard OSPF link metric.
|
Max Link BW
|
Maximum bandwidth that can be used on this link in this direction (from the system originating the LSA to its neighbor).
|
Max Reservable BW
|
Maximum bandwidth that may be reserved on this link in this direction
|
Unreserved BW
|
Amount of bandwidth not yet reserved at each of the eight priority levels
|
Administrative Color
|
Administrative color membership for this link. A link that is a member of multiple groups will have multiple bits set.
|
Related Commands: area authentication
area stub
network area
ospf router-id
router ospf
show ip ospf
show ip ospf interface
show ip ospf neighbor
show ip ospf request-list
show ip ospf retransmission-list
show ospf virtual-links