参考一下: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
Table 55 describes the significant fields shown in the display.
Table 57 show ip ospf database Field Descriptions
Field
Description
Link ID
Router ID number.
ADV Router
Advertising router ID.
Age
Link-state age.
Seq#
Link-state sequence number (detects old or duplicate LSAs).
Checksum
Fletcher checksum of the complete contents of the LSA.
Link count
Number of interfaces detected for router.
Opaque ID
Opaque LSA ID number.
The following is sample output from the
show ip ospf database command with the
asbr-summary keyword:
Router#
show ip ospf database asbr-summary
OSPF Router with id(192.168.239.66) (Process ID 300)
Displaying Summary ASB Link States(Area 0.0.0.0)
LS age: 1463
Options: (No TOS-capability)
LS Type: Summary Links(AS Boundary Router)
Link State ID: 172.16.245.1 (AS Boundary Router address)
Advertising Router: 172.16.241.5
LS Seq Number: 80000072
Checksum: 0x3548
Length: 28
Network Mask: 0.0.0.0 TOS: 0 Metric: 1
Table 56 describes the significant fields shown in the display.
Table 58 show ip ospf database asbr-summaryField Descriptions
Field
Description
OSPF Router with id
Router ID number.
Process ID
OSPF process ID.
LS age
Link-state age.
Options
Type of service options (Type 0 only).
LS Type
Link-state type.
Link State ID
Link-state ID (ASBR).
Advertising Router
Advertising router ID.
LS Seq Number
Link-state sequence (detects old or duplicate LSAs).
Checksum
Link-state checksum (Fletcher checksum of the complete contents of the LSA).
Length
Length in bytes of the LSA.
Network Mask
Network mask implemented.
TOS
Type of service.
Metric
Link-state metric.
The following is sample output from the
show ip ospf databasecommand with the
external keyword:
Router#
show ip ospf database external
OSPF Router with id(192.168.239.66) (Autonomous system 300)
Displa ying AS External Link States
LS age: 280
Options: (No TOS-capability)
LS Type: AS External Link
Link State ID: 143.105.0.0 (External Network Number)
Advertising Router: 10.187.70.6
LS Seq Number: 80000AFD
Checksum: 0xC3A
Length: 36
Network Mask: 255.255.0.0
Metric Type: 2 (Larger than any link state path)
TOS: 0
Metric: 1
Forward Address: 0.0.0.0
External Route Tag: 0
Table 57 describes the significant fields shown in the display.
Table 59 show ip ospf database external Field Descriptions
Field
Description
OSPF Router with id
Router ID number.
Autonomous system
OSPF autonomous system number (OSPF process ID).
LS age
Link-state age.
Options
Type of service options (Type 0 only).
LS Type
Link-state type.
Link State ID
Link-state ID (external network number).
Advertising Router
Advertising router ID.
LS Seq Number
Link-state sequence number (detects old or duplicate LSAs).
Checksum
Checksum (Fletcher checksum of the complete contents of the LSA).
Length
Length in bytes of the LSA.
Network Mask
Network mask implemented.
Metric Type
External type.
TOS
Type of service.
Metric
Link-state metric.
Forward Address
Forwarding address. Data traffic for the advertised destination will be forwarded to this address. If the forwarding address is set to 0.0.0.0, data traffic will be forwarded to the originator of the advertisement.
External Route Tag
External route tag, a 32-bit field attached to each external route. This is not used by the OSPF protocol itself.
The following is sample output from the
show ip ospf databasecommand with the
network keyword:
Router#
show ip ospf database network
OSPF Router with id(192.168.239.66) (Process ID 300)
Displaying Net Link States(Area 0.0.0.0)
LS age: 1367
Options: (No TOS-capability)
LS Type: Network Links
Link State ID: 10.187.1.3 (address of Designated Router)
Advertising Router: 192.168.239.66
LS Seq Number: 800000E7
Checksum: 0x1229
Length: 52
Network Mask: 255.255.255.0
Attached Router: 192.168.239.66
Attached Router: 10.187.241.5
Attached Router: 10.187.1.1
Attached Router: 10.187.54.5
Attached Router: 10.187.1.5
Table 58 describes the significant fields shown in the display.
Table 60 show ip ospf database network Field Descriptions
Field
Description
OSPF Router with id
Router ID number.
Process ID 300
OSPF process ID.
LS age
Link-state age.
Options
Type of service options (Type 0 only).
LS Type
Link-state type.
Link State ID
Link-state ID of designated router.
Advertising Router
Advertising router ID.
LS Seq Number
Link-state sequence (detects old or duplicate LSAs).
Checksum
Checksum (Fletcher checksum of the complete contents of the LSA).
Length
Length in bytes of the link-state advertisement.
Network Mask
Network mask implemented.
AS Boundary Router
Definition of router type.
Attached Router
List of routers attached to the network, by IP address.
The following is sample output, carrying Multiprotocol Label Switching (MPLS) traffic engineering specification information, from the
show ip ospf databasecommand with the
opaque-area keyword:
Router#
show ip ospf database opaque-area adv-router 192.168.1.12
OSPF Router with id(192.168.1.11) (Process ID 1)
Type-10 Opaque Link Area Link States (Area 0)
LS age: 224
Options: (No TOS-capability, DC)
LS Type: Opaque Area Link
Link State ID: 10.0.0.0
Opaque Type: 1
Opaque ID: 0
Advertising Router: 192.168.1.12
LS Seq Number: 80000081
Checksum: 0xF659
Length: 132
Fragment number : 0
MPLS TE router ID : 192.168.1.12
Link connected to Point-to-Point network
Link ID : 192.168.1.11
Interface Address : 172.16.1.12
Neighbor Address : 172.16.1.11
Admin Metric : 10
Maximum bandwidth : 193000
Maximum reservable bandwidth : 125000
Number of Priority : 8
Priority 0 : 125000 Priority 1 : 125000
Priority 2 : 125000 Priority 3 : 125000
Priority 4 : 125000 Priority 5 : 125000
Priority 6 : 125000 Priority 7 : 100000
Affinity Bit : 0x0
Number of Links : 1
Table 59 describes the significant fields shown in the display.
Table 61 show ip ospf database opaque-area Field Descriptions
Field
Description
OSPF Router with id
Router ID number.
Process ID
OSPF process ID.
LS age
Link-state age.
Options
Type of service options (Type 0 only).
LS Type
Link-state type.
Link State ID
Link-state ID.
Opaque Type
Opaque link-state type.
Opaque ID
Opaque ID number.
Advertising Router
Advertising router ID.
LS Seq Number
Link-state sequence (detects old or duplicate LSAs).
Checksum
Checksum (Fletcher checksum of the complete contents of the LSA).
Length
Length in bytes of the LSA.
Fragment number
Arbitrary value used to maintain multiple traffic engineering LSAs.
Link ID
Link ID number.
Interface Address
ID address of the interface.
Neighbor Address
IP address of the neighbor.
Admin Metric
Administrative distance metric value used by Multiprotocol Label Switching traffic engineering (MPLS-TE).
Maximum bandwidth
Specifies maximum bandwidth.
Maximum reservable bandwidth
Specifies maximum reservable bandwidth.
Number of Priority
Priority number.
Affinity Bit
Used by MPLS-TE.
The following is sample output from the
show ip ospf databasecommand with the
router keyword:
Router#
show ip ospf database router
OSPF Router with id(192.168.239.66) (Process ID 300)
Displaying Router Link States(Area 0.0.0.0)
LS age: 1176
Options: (No TOS-capability)
LS Type: Router Links
Link State ID: 10.187.21.6
Advertising Router: 10.187.21.6
LS Seq Number: 80002CF6
Checksum: 0x73B7
Length: 120
AS Boundary Router
155 Number of Links: 8
Link connected to: another Router (point-to-point)
(link ID) Neighboring Router ID: 10.187.21.5
(Link Data) Router Interface address: 10.187.21.6
Number of TOS metrics: 0
TOS 0 Metrics: 2
Table 60 describes the significant fields shown in the display.
Table 62 show ip ospf database router Field Descriptions
Field
Description
OSPF Router with id
Router ID number.
Process ID
OSPF process ID.
LS age
Link-state age.
Options
Type of service options (Type 0 only).
LS Type
Link-state type.
Link State ID
Link-state ID.
Advertising Router
Advertising router ID.
LS Seq Number
Link-state sequence (detects old or duplicate LSAs).
Checksum
Checksum (Fletcher checksum of the complete contents of the LSA).
Length
Length in bytes of the LSA.
AS Boundary Router
Definition of router type.
Number of Links
Number of active links.
link ID
Link type.
Link Data
Router interface address.
TOS
Type of service metric (Type 0 only).
The following is sample output from
show ip ospf databasecommand with the
summary keyword:
Router#
show ip ospf database summary
OSPF Router with id(192.168.239.66) (Process ID 300)
Displaying Summary Net Link States(Area 0.0.0.0)
LS age: 1401
Options: (No TOS-capability)
LS Type: Summary Links(Network)
Link State ID: 10.187.240.0 (summary Network Number)
Advertising Router: 10.187.241.5
LS Seq Number: 80000072
Checksum: 0x84FF
Length: 28
Network Mask: 255.255.255.0 TOS: 0 Metric: 1
Table 61 describes the significant fields shown in the display.
Table 63 show ip ospf database summary Field Descriptions
Field
Description
OSPF Router with id
Router ID number.
Process ID
OSPF process ID.
LS age
Link-state age.
Options
Type of service options (Type 0 only).
LS Type
Link-state type.
Link State ID
Link-state ID (summary network number).
Advertising Router
The ID of the advertising router.
LS Seq Number
Link-state sequence (detects old or duplicate LSAs).
Checksum
Checksum (Fletcher checksum of the complete contents of the LSA).
Length
Length in bytes of the link-state advertisement.
Network Mask
Network mask implemented.
TOS
Type of service.
Metric
Link-state metric.
The following is sample output from
show ip ospf databasecommand with the
database-summary keyword:
Router#
show ip ospf database database-summary
OSPF Router with ID (172.19.65.21) (Process ID 1)
Area ID Router & ;nbs p;Network Sum-Net &a mp;n bsp;Sum-ASBR Subtotal & ;nbs p; Delete Maxage
202 1&a mp;n bsp; 0 & amp; nbsp; 0 0 ; ; ; ;1 & ;nbs p; 0 &am p;nb sp;0
AS External & ;nbs p; & ;nbs p; & ;nbs p; & ;nbs p; 0 &am p;nb sp; 0 &a mp;n bsp; 0
Total 1 0 ; ; 0 & ;nbs p; 0 &am p;nb sp; 1
Table 62 describes the significant fields shown in the display.
Table 64 show ip ospf database database-summary Field Descriptions
Field
Description
Area ID
Area number.
Router
Number of router LSAs in that area.
Network
Number of network LSAs in that area.
Sum-Net
Number of summary LSAs in that area.
Sum-ASBR
Number of summary ASBR LSAs in that area.
Subtotal
Sum of Router, Network, Sum-Net, and Sum-ASBR for that area.
Delete
Number of LSAs that are marked "Deleted" in that area.
Maxage
Number of LSAs that are marked "Maxaged" in that area.
AS External
Number of external LSAs.