To display lists of
information related to the Open Shortest Path First Version 3 (OSPFv3) database
for a specific router, use the
show ospfv3
database
command in
EXEC mode.
show ospfv3 [process-name [area-id] ] database
show ospfv3 [process-name [area-id]] database [adv-router [router-id]]
show ospfv3 [process-name [area-id] ] database [database-summary]
show ospfv3 [process-name [area-id] ] database [external] [link-state-id]
show ospfv3 [process-name [area-id] ] database [external] [link-state-id] [internal] [adv-router [router-id] ]
show ospfv3 [process-name [area-id] ] database [external] [link-state-id] [internal] [self-originate]
show ospfv3 [process-name [area-id] ] database [grace] [link-state-id] [adv-router [router-id] ] [internal] [self-originate]
show ospfv3 [process-name [area-id] ] database [inter-area prefix] [link-state-id]
show ospfv3 [process-name [area-id] ] database [link-state-id] [internal] [adv-router [router-id] ]
show ospfv3 [process-name [area-id] ] database [inter-area prefix] [link-state-id] [internal] [self-originate]
show ospfv3 [process-name [area-id] ] database [inter-area router] [link-state-id]
show ospfv3 [process-name [area-id] ] database [inter-area router] [link-state-id] [internal] [adv-router [router-id] ]
show ospfv3 [process-name [area-id] ] database [inter-area router] [link-state-id] [internal] [self-originate]
show ospfv3 [process-name [area-id] ] database [link] [link-state-id]
show ospfv3 [process-name [area-id] ] database [link] [link-state-id] [internal] [adv-router [router-id] ]
show ospfv3 [process-name [area-id] ] database [link] [link-state-id] [internal] [self-originate]
show ospfv3 [process-name [area-id] ] database [network] [link-state-id]
show ospfv3 [process-name [area-id] ] database [network] [link-state-id] [internal] [adv-router [router-id] ]
show ospfv3 [process-name [area-id] ] database [network] [link-state-id] [internal] [self-originate]
show ospfv3 [process-name [area-id] ] database [nssa-external] [link-state-id]
show ospfv3 [process-name [area-id] ] database [nssa-external] [link-state-id] [internal] [adv-router [router-id] ]
show ospfv3 [process-name [area-id] ] database [nssa-external] [link-state-id] [internal] [self-originate]
show ospfv3 [process-name [area-id] ] database [prefix] [ref-lsa] [router | network] [link-state-id] [internal] [adv-router [router-id] ]
show ospfv3 [process-name [area-id] ] database [prefix] [ref-lsa] [router | network] [link-state-id] [internal] [self-originate]
show ospfv3 [process-name [area-id] ] database [prefix] [link-state-id]
show ospfv3 [process-name [area-id] ] database [prefix] [link-state-id] [internal] [adv-router [router-id] ]
show ospfv3 [process-name [area-id] ] database [prefix] [link-state-id] [internal] [self-originate]
show ospfv3 [process-name [area-id] ] database [router] [link-state-id]
show ospfv3 [process-name area-id] database [router] [adv-router
[router-id]]
show ospfv3 [process-name [area-id] ] database [router] [link-state-id] [internal] [self-originate]
show ospfv3 [process-name [area-id] ] database [self-originate]
show ospfv3 [process-name [area-id] ] database [unknown [area | as | link]] [link-state-id] [internal] [adv-router [router-id] ] [self-originate]
Syntax Description
process-name
|
(Optional)
Name that uniquely identifies an OSPFv3 routing process. The process name is
defined by the
router ospfv3
command. If this argument is included, only
information for the specified routing process is displayed.
|
area-id
|
(Optional)
Area number used to define the particular area.
|
adv-router
[
router-id
]
|
(Optional)
Displays all link-state advertisements (LSAs) of the specified router.
|
asbr-summary
|
(Optional)
Displays information only about the Autonomous System Boundary Router (ASBR)
summary LSAs.
|
database-summary
|
(Optional)
Displays how many of each type of LSA are in the database for each area and the
total.
|
external
|
(Optional)
Displays information only about external LSAs.
|
grace
|
(Optional)
Displays information about the state for the graceful restart link.
|
internal
|
(Optional)
Displays information only about internal LSAs.
|
self-originate
|
(Optional)
Displays only self-originated LSAs (from the local router).
|
link-state-id
|
(Optional)
LSA ID that uniquely identifies the LSA. For network LSAs and link LSAs, this
ID is the interface ID of the link of the router originating the LSA.
|
inter-area prefix
|
(Optional)
Displays information only about the interarea prefix LSAs.
|
inter-area router
|
(Optional)
Displays information only about the interarea router LSAs.
|
link
|
(Optional)
Displays information only about the link LSAs.
|
network
|
(Optional)
Displays information only about the network LSAs.
|
nssa-external
|
(Optional)
Displays information only about the not-so-stubby area (NSSA) external LSAs.
|
prefix
|
(Optional)
Displays information only about the prefix LSAs.
|
ref-lsa
|
(Optional)
Displays referenced LSA information.
|
router
|
(Optional)
Displays information only about the router LSAs.
|
unknown
|
(Optional)
Displays information only about unknown LSAs.
|
area
|
(Optional)
Displays information only about the area LSAs.
|
as
|
(Optional)
Displays information only about the autonomous system LSAs.
|
Command Default
No default
behavior or values
Command History
Release
|
Modification
|
Release 3.7.2
|
This
command was introduced.
|
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user
group assignment is preventing you from using a command, contact your AAA administrator for assistance.
The various forms
of this command deliver information about different OSPFv3 link-state
advertisements.
Task ID
Task ID
|
Operations
|
ospf
|
read
|
Examples
The following is
sample output from the
show ospfv3
database
command with no arguments or keywords:
RP/0/RSP0/CPU0:router# show ospfv3 database
OSPFv3 Router with ID (10.0.0.207) (Process ID 1)
Router Link States (Area 0)
ADV Router Age Seq# Fragment ID Link count Bits
0.0.0.1 163 0x80000039 0 2 None
10.0.0.206 145 0x80000005 0 1 EB
10.0.0.207 151 0x80000004 0 1 EB
192.168.0.0 163 0x80000039 0 1 None
Net Link States (Area 0)
ADV Router Age Seq# Link ID Rtr count
10.0.0.207 152 0x80000002 1 3
192.168.0.0 163 0x80000039 1 2
Inter Area Prefix Link States (Area 0)
ADV Router Age Seq# Prefix
10.0.0.206 195 0x80000001 3002::/56
10.0.0.207 197 0x80000001 3002::/56
10.0.0.206 195 0x80000001 3002::206/128
10.0.0.207 182 0x80000001 3002::206/128
Inter Area Router Link States (Area 0)
ADV Router Age Seq# Link ID Dest RtrID
10.0.0.207 182 0x80000001 167772366 10.0.0.206
10.0.0.206 182 0x80000001 167772367 10.0.0.207
Link (Type-8) Link States (Area 0)
ADV Router Age Seq# Link ID Interface
0.0.0.1 163 0x80000039 1 Et0/0/0/0
10.0.0.207 202 0x80000001 1 Et0/0/0/0
10.0.0.206 200 0x80000001 2 Et0/0/0/0
Intra Area Prefix Link States (Area 0)
ADV Router Age Seq# Link ID Ref-lstype Ref-LSID
192.168.0.0 163 0x80000039 0 0x2002 1
192.168.0.0 163 0x80000039 1 0x2001 0
10.0.0.207 157 0x80000001 1001 0x2002 1
This table
describes the significant fields shown in the display.
Table 3. show ospfv3
database Field Descriptions
Field
|
Description
|
ADV Router
|
ID of
advertising router.
|
Age
|
Link-state
age.
|
Seq#
|
Link-state
sequence number (detects old or duplicate LSAs).
|
Fragment
ID
|
Router LSA
fragment ID.
|
Link count
|
Number of
links described.
|
Bits
|
B
indicates that the router is an area border router. E indicates that the router
is an autonomous system boundary router. V indicates that the router is a
virtual link endpoint. W indicates that the
router is a wildcard multicast receiver.
|
Link ID
|
Unique LSA
ID.
|
Rtr count
|
Number of
routers attached to the link.
|
Prefix
|
Prefix of
the route being described.
|
Dest RtrID
|
Router ID
of the router being described.
|
Interface
|
Link
described by the LSA.
|
Ref-lstype
|
LSA type
of the LSA being referenced.
|
Ref-LSID
|
LSA ID of
the LSA being referenced.
|
The following is
sample output from the
show ospfv3
database
command with the
external
keyword:
RP/0/RSP0/CPU0:router# show ospfv3 database external
OSPFv3 Router with ID (10.0.0.206) (Process ID 1)
Type-5 AS External Link States
LS age: 189
LS Type: AS External Link
Link State ID: 0
Advertising Router: 10.0.0.206
LS Seq Number: 80000002
Checksum: 0xa303
Length: 36
Prefix Address: 2222::
Prefix Length: 56, Options: None
Metric Type: 2 (Larger than any link state path)
Metric: 20
External Route Tag: 0
This table
describes the significant fields shown in the display.
Table 4. show ospfv3
database external Field Descriptions
Field
|
Description
|
OSPFv3
Router with ID
|
Router ID
number.
|
Process ID
|
OSPFv3
process name.
|
LS age
|
Link-state
age.
|
LS Type
|
Link-state
type.
|
Link State
ID
|
Link-state
ID.
|
Advertising Router
|
ID of
Advertising router.
|
LS Seq
Number
|
Link-state
sequence number (detects old or duplicate LSAs).
|
Checksum
|
LS
checksum (Fletcher checksum of the complete contents of the LSA).
|
Length
|
Length (in
bytes) of the LSA.
|
Prefix
Address
|
IPv6
address prefix of the route being described.
|
Prefix
Length
|
Length of
the IPv6 address prefix.
|
Metric
Type
|
External
type.
|
Metric
|
Link-state
metric.
|
External
Route Tag
|
External
route tag, a 32-bit field attached to each external route. This tag is not used
by the OSPFv3 protocol itself.
|
The following is
sample output from the
show ospfv3
database
command with the
inter-area
prefix
keyword:
RP/0/RSP0/CPU0:router# show ospfv3 database inter-area prefix
OSPFv3 Router with ID (10.0.0.206) (Process ID 1)
Inter Area Prefix Link States (Area 0)
LS age: 715
LS Type: Inter Area Prefix Links
Link State ID: 0
Advertising Router: 10.0.0.206
LS Seq Number: 80000002
Checksum: 0x3cb5
Length: 36
Metric: 1
Prefix Address: 3002::
Prefix Length: 56, Options: None
This table
describes the significant fields shown in the display.
Table 5. show ospfv3
database inter-area prefix Field Descriptions
Field
|
Description
|
OSPFv3
Router with ID
|
Router ID
number.
|
Process ID
|
OSPFv3
process name.
|
LS age
|
Link-state
age.
|
LS Type
|
Link-state
type.
|
Link State
ID
|
Link-state
ID.
|
Advertising Router
|
ID of
advertising router.
|
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.
|
Metric
|
Link-state
metric.
|
Prefix
Address
|
IPv6
prefix of the route being described.
|
Prefix
Length
|
IPv6
prefix length of the route being described.
|
Options
|
LA
indicates that the prefix is a local address.
MC indicates the prefix is
multicast capable.
NU indicates that the prefix is not unicast capable. P
indicates that the prefix should be propagated at a not-so-stubby area (NSSA)
area border.
|
The following is
sample output from the
show ospfv3
database
command with the
inter-area
router
keyword:
RP/0/RSP0/CPU0:router# show ospfv3 database inter-area router
OSPFv3 Router with ID (10.0.0.206) (Process ID 1)
Inter Area Router Link States (Area 0)
LS age: 1522
Options: (V6-Bit E-Bit R-bit DC-Bit)
LS Type: Inter Area Router Links
Link State ID: 167772366
Advertising Router: 10.0.0.207
LS Seq Number: 80000002
Checksum: 0xcaae
Length: 32
Metric: 1
Destination Router ID: 10.0.0.206
This table
describes the significant fields shown in the display.
Table 6. show ospfv3
database inter-area routerField Descriptions
Field
|
Description
|
OSPFv3
Router with ID
|
Router ID
number.
|
Process ID
|
OSPFv3
process name.
|
LS age
|
Link-state
age.
|
Options
|
Type of
service options (Type 0 only):
DC—Supports demand circuits.E—Capable of processing external
LSAs.
MC—Forwards IP
multicast. N—Supports Type 7 LSAs. R—Router is active. V6—Include in IPv6
routing calculations.
|
LS Type
|
Link-state
type.
|
Link State
ID
|
Link-state
ID.
|
Advertising Router
|
ID of the
advertising router.
|
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 LSAs.
|
Metric
|
Link-state
metric.
|
Destination Router ID
|
Router ID
of the router being described.
|
The following is
sample output from the
show ospfv3
database
command with the
link
keyword:
RP/0/RSP0/CPU0:router# show ospfv3 database link
OSPFv3 Router with ID (10.0.0.206) (Process ID 1)
Link (Type-8) Link States (Area 0)
LS age: 620
Options: (V6-Bit E-Bit R-bit DC-Bit)
LS Type: Link-LSA (Interface: Ethernet0/0/0/0)
Link State ID: 1 (Interface ID)
Advertising Router: 10.0.0.207
LS Seq Number: 80000003
Checksum: 0x7235
Length: 56
Router Priority: 1
Link Local Address: fe80::204:c0ff:fe22:73fe
Number of Prefixes: 1
Prefix Address: 7002::
Prefix Length: 56, Options: None
This table
describes the significant fields shown in the display.
Table 7. show ospfv3
database link Field Descriptions
Field
|
Description
|
OSPFv3
Router with ID
|
Router ID
number.
|
Process ID
|
OSPFv3
process name.
|
LS age
|
Link-state
age.
|
Options
|
Type of
service options (Type 0 only):
DC—Supports demand circuits.E—Capable of processing external
LSAs.MC—Forwards
IP multicast.N—Supports type-7 LSAs.R—Router is active.V6—Include in IPv6
routing calculations.
|
LS Type
|
Link-state
type.
|
Link State
ID
|
Link-state
ID (Interface ID).
|
Advertising Router
|
ID of the
advertising router.
|
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 LSAs.
|
Router
Priority
|
Interface
priority of originating router.
|
Link Local
Address
|
Link local
address of the interface.
|
Number of
Prefixes
|
Number of
prefixes associated with the link.
|
Prefix
Address and Length
|
List of
prefixes associated with the link.
|
Options
|
LA
indicates that the prefix is a local address.
MC indicates that the
prefix is multicast capable.
NU indicates that the prefix is not unicast capable. P
indicates that the prefix should be propagated at an NSSA area border.
|
The following is
sample output from the
show ospfv3
database
command with the
network
keyword:
RP/0/RSP0/CPU0:router# show ospfv3 database network
OSPFv3 Router with ID (10.0.0.206) (Process ID 1)
Net Link States (Area 0)
LS age: 1915
Options: (V6-Bit E-Bit R-bit DC-Bit)
LS Type: Network Links
Link State ID: 1 (Interface ID of Designated Router)
Advertising Router: 10.0.0.207
LS Seq Number: 80000004
Checksum: 0x4330
Length: 36
Attached Router: 10.0.0.207
Attached Router: 0.0.0.1
Attached Router: 10.0.0.206
This table
describes the significant fields shown in the display.
Table 8. show ospfv3
database network Field Descriptions
Field
|
Description
|
OSPFv3
Router with ID
|
Router ID
number.
|
Process ID
1
|
OSPFv3
process name.
|
LS age
|
Link-state
age.
|
Options
|
Type of
service options (Type 0 only):
DC—Supports demand circuits.E—Capable of processing external
LSAs.MC—Forwards
IP multicast.N—Supports Type 7 LSAs.R—Router is active.V6—Include in IPv6
routing calculations.
|
LS Type
|
Link-state
type.
|
Link State
ID
|
Link-state
ID of the designated router.
|
Advertising Router
|
ID of the
advertising router.
|
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.
|
Attached
Router
|
List of
routers attached to the network, by router ID.
|
The following is
sample output from the
show ospfv3
database
command with the
prefix
keyword:
RP/0/RSP0/CPU0:router# show ospfv3 database prefix
OSPFv3 Router with ID (10.0.0.206) (Process ID 1)
Intra Area Prefix Link States (Area 1)
Routing Bit Set on this LSA
LS age: 356
LS Type: Intra-Area-Prefix-LSA
Link State ID: 0
Advertising Router: 10.0.0.206
LS Seq Number: 8000001e
Checksum: 0xcdaa
Length: 44
Referenced LSA Type: 2001
Referenced Link State ID: 0
Referenced Advertising Router: 10.0.0.206
Number of Prefixes: 1
Prefix Address: 8006::
Prefix Length: 56, Options: None, Metric: 1
This table
describes the significant fields shown in the display.
Table 9. show ospfv3
database prefix Field Descriptions
Field
|
Description
|
OSPFv3
Router with ID
|
Router ID
number.
|
Process ID
1
|
OSPFv3
process name.
|
LS age
|
Link-state
age.
|
LS Type
|
Link-state
type.
|
Link State
ID
|
Link-state
ID of the designated router.
|
Advertising Router
|
ID of the
advertising router.
|
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.
|
Referenced
LSA Type
|
Router LSA
or network LSA of the prefixes referenced.
|
Referenced
Link State ID
|
Link-state
ID of the router or network LSA.
|
Referenced
Advertising Router
|
Advertising router of the referenced LSA.
|
Number of
Prefixes
|
Number of
prefixes listed in the LSA.
|
Prefix
Address
|
Prefix
associated with the router or network.
|
Prefix
Length
|
Length of
the prefix.
|
Options
|
LA
indicates that the prefix is a local address.
MC indicates that the
prefix is multicast capable.
NU indicates that the prefix is not unicast capable. P
indicates the prefix should be propagated at an NSSA area border.
|
Metric
|
Cost of
the prefix.
|
The following is
sample output from the
show ospfv3
database
command with the
router
keyword:
RP/0/RSP0/CPU0:router# show ospfv3 database router
OSPFv3 Router with ID (10.0.0.206) (Process ID 1)
Router Link States (Area 0)
LS age: 814
Options: (V6-Bit E-Bit R-bit)
LS Type: Router Links
Link State ID: 0
Advertising Router: 0.0.0.1
LS Seq Number: 8000003c
Checksum: 0x51ca
Length: 56
Number of Links: 2
Link connected to: a Transit Network
Link Metric: 10
Local Interface ID: 1
Neighbor (DR) Interface ID: 1
Neighbor (DR) Router ID: 10.0.0.207
Link connected to: a Transit Network
Link Metric: 10
Local Interface ID: 2
Neighbor (DR) Interface ID: 1
Neighbor (DR) Router ID: 10.0.0.0
This table
describes the significant fields shown in the display.
Table 10. show ospfv3
database router Field Descriptions
Field
|
Description
|
OSPFv3
Router with ID
|
Router ID
number.
|
Process ID
1
|
OSPFv3
process name.
|
LS age
|
Link-state
age.
|
Options
|
Type of
service options (Type 0 only):
DC—Supports demand circuits.E—Capable of processing external
LSAs.MC—Forwards
IP multicast. N—Supports Type 7 LSAs.R—Router is active.V6—Include in IPv6
routing calculations.
|
LS Type
|
Link-state
type.
|
Link State
ID
|
Link-state
ID of the designated router.
|
Advertising Router
|
ID of the
advertising router.
|
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.
|
Link
connected to
|
The type
of network to which this interface is connected. Values are:
- Another Router
(point-to-point).
- A Transit Network.
- A Virtual Link.
|
Link
Metric
|
OSPF cost
of using this link.
|
Local
Interface ID
|
Number
that uniquely identifies an interface on a router.
|