To display lists of information related to the Open Shortest Path First (OSPF) database for a specific router, use the show ipv6 ospf database command in user EXEC or privileged EXEC mode. The various forms of this command deliver information about different OSPF
link-state advertisements (LSAs).
Syntax
show ipv6 ospf
[process-id [area-id]] database
show ipv6 ospf [process-id [area-id]] database adv-router router-id
show ipv6 ospf [process-id [area-id]] database external
show ipv6 ospf [process-id [area-id]] database inter-area-prefix
show ipv6 ospf [process-id [area-id]] database inter-area router
show ipv6 ospf [process-id [area-id]] database link
show ipv6 ospf [process-id [area-id]] database network
show ipv6 ospf [process-id [area-id]] database nssa-external
show ipv6 ospf [process-id [area-id]] database prefix
show ipv6 ospf [process-id [area-id]] database [router]
Parameters
-
process-id—Displays information only about a specified process.
-
area-id—Displays information only about a specified area. The area-id argument can only be used if the process-id argument is specified.
-
adv-router [router-id]—Displays all the LSAs of the advertising router. This argument must be in the form documented in RFC 2740 where the address
is specified in hexadecimal using 16-bit values between colons.
-
external—Displays information only about the external LSAs.
-
ipv6-prefix—Link-local IPv6 address of the neighbor. This argument must be in the form documented in RFC 2373 where the address is specified
in hexadecimal using 16-bit values between colons.
-
link-state-id—An integer used to differentiate LSAs. In network and link LSAs, the link-state ID matches the interface index.
-
inter-area prefix—Displays information only about LSAs based on inter-area prefix LSAs.
-
inter-area-router—Displays information only about LSAs based on inter-area router LSAs.network—Displays information only about the network LSAs.
-
destination-router-id—The specified destination router ID.
-
link—Displays information only about the router LSAs.
-
interface—Displays information about the LSAs filtered by interface context.
-
interface-name—Specifies the LSA interface.
-
network—Displays information only about the network LSAs.
-
nssa-external—Displays information only about the not so stubby area (NSSA) external LSAs.
-
prefix—Displays information on the intra-area-prefix LSAs.
-
router—Displays information only about the router LSAs.
Command Mode
User EXEC mode
Privileged EXEC mode
Example
Example 1. The following is sample output from the show ipv6 ospf database command when no arguments or keywords are used:
switchxxxxxx# show ipv6 ospf database
OSPFv3 Router with ID (172.16.4.4) (Process ID 1)
Router Link States (Area 0.0.0.0)
ADV Router Age Seq# Fragment ID Link count Bits
172.16.4.4 239 0x80000003 0 1 B
172.16.6.6 239 0x80000003 0 1 B
Inter Area Prefix Link States (Area 0.0.0.0)
ADV Router Age Seq# Prefix
172.16.4.4 249 0x80000001 FEC0:3344::/32
172.16.4.4 219 0x80000001 FEC0:3366::/32
172.16.6.6 247 0x80000001 FEC0:3366::/32
172.16.6.6 193 0x80000001 FEC0:3344::/32
172.16.6.6 82 0x80000001 FEC0::/32
Inter Area Router Link States (Area 0.0.0.0)
ADV Router Age Seq# Link ID Dest RtrID
172.16.4.4 219 0x80000001 50529027 172.16.3.3
172.16.6.6 193 0x80000001 50529027 172.16.3.3
Link (Type-8) Link States (Area 0.0.0.0)
ADV Router Age Seq# Link ID Interface
172.16.4.4 242 0x80000002 14 VLAN 100
172.16.6.6 252 0x80000002 14 VLAN 100
Intra Area Prefix Link States (Area 0.0.0.0)
ADV Router Age Seq# Link ID Ref-lstype Ref-LSID
172.16.4.4 242 0x80000002 0 0x2001 0
172.16.6.6 252 0x80000002 0 0x2001 0
The description of thesignificant fields shown in the display.
ADV Router—Advertising router ID.
Age—Link-state age.
Seq#—Link-state sequence number (detects old or duplicate LSAs).
Link ID—Interface ID number.
Ref-lstype—Referenced link-state type.
Ref-LSID—Referenced link-state ID.
Example 2. The following is sample output from the show ipv6 ospf database command with the router keyword:
switchxxxxxx# show ipv6 ospf database router
OSPFv3 Router with ID (172.16.6.6) (Process ID 1)
Router Link States (Area 0.0.0.0)
LS age: 383
Options: (V6-Bit E-Bit R-bit DC-Bit)
LS Type: Router Links
Link State ID: 0
Advertising Router: 172.16.6.6
LS Seq Number: 80000003
Checksum: 0x7543
Length: 40
Area Border Router
Number of Links: 1
Link connected to: another Router (point-to-point)
Link Metric: 1
Local Interface ID: 14
Neighbor Interface ID: 14
Neighbor Router ID: 172.16.4.4
Example 3. The following is sample output from the show ipv6 ospf database command with the network keyword:
switchxxxxxx# show ipv6 ospf database network
Router Link States (Area 0.0.0.1)
ADV Router Age Seq# Fragment ID Link count Bits
172.16.4.4 239 0x80000003 0 1 B
172.16.6.6 239 0x80000003 0 1 B
Net Link States (Area 0.0.0.1)
ADV Router Age Seq# Attached Router
172.16.6.6 419 0x80000001 172.16.6.3
172.16.6.6 239 0x80000001 172.16.6.6
Example 4. The following is sample output from the show ipv6 ospf database command with the link self-originate keywords:
switchxxxxxx# show ipv6 ospf database link
OSPFv3 Router with ID (172.16.6.6) (Process ID 1)
Link (Type-8) Link States (Area 0.0.0.0)
LS age: 505
Options: (V6-Bit E-Bit R-bit DC-Bit)
LS Type: Link-LSA (Interface: POS4/0)
Link State ID: 14 (Interface ID)
Advertising Router: 172.16.6.6
LS Seq Number: 80000002
Checksum: 0xABF6
Length: 60
Router Priority: 1
Link Local Address: FE80::205:5FFF:FED3:6408
Number of Prefixes: 2
Prefix Address: FEC0:4466::
Prefix Length: 32, Options: None
Prefix Address: FEC0:4466::
Prefix Length: 32, Options: None
Example 5. The following is sample output from the show ipv6 ospf database command with the prefix keyword:
switchxxxxxx# show ipv6 ospf database prefix
OSPFv3 Router with ID (172.16.6.6) (Process ID 1)
Intra Area Prefix Link States (Area 0.0.0.0)
Routing Bit Set on this LSA
LS age: 552
LS Type: Intra-Area-Prefix-LSA
Link State ID: 0
Advertising Router: 172.16.6.6
LS Seq Number: 80000002
Checksum: 0xA910
Length: 48
Referenced LSA Type: 2001
Referenced Link State ID: 0
Referenced Advertising Router: 172.16.6.6
Number of Prefixes: 2
Prefix Address: FEC0:4466::
Prefix Length: 32, Options: None, Metric: 1
Prefix Address: FEC0:4466::
Prefix Length: 32, Options: None, Metric: 1
Example 6. The :following is sample output from the show ipv6 ospf database command with the inter-area-prefix keyword
switchxxxxxx# show ipv6 ospf database inter-area-prefix
OSPF Routing Process 1 with ID 1.1.1.1
Router Link States(Area 0.0.0.1)
ADV Router Age Seq# Fragment ID Link count Bits
1.1.1.1 510 0x80000004 0 1 E
2.2.2.2 506 0x8000000a 0 1 B
Network Link States(Area 0.0.0.1)
ADV Router Age Seq# Attached Router
2.2.2.2 511 0x80000001 1.1.1.1
2.2.2.2 511 0x80000001 2.2.2.2
Type8 Link States(Area 0.0.0.1)
ADV Router Age Seq# Link ID Interface
1.1.1.1 510 0x80000001 gi1/0/1
Type8 Link States(Area 0.0.0.1)
ADV Router Age Seq# Link ID Interface
2.2.2.2 960 0x80000006 gi1/0/1
Example 7. The following is sample output from the show ipv6 ospf database command with the inter-area-router keyword:
switchxxxxxx# show ipv6 ospf database inter-area-router
OSPF Routing Process 1 with ID 1.1.1.1
Router Link States(Area 0.0.0.1)
ADV Router Age Seq# Fragment ID Link count Bits
1.1.1.1 514 0x80000004 0 1 E
2.2.2.2 510 0x8000000a 0 1 B
Network Link States(Area 0.0.0.1)
ADV Router Age Seq# Attached Router
2.2.2.2 515 0x80000001 1.1.1.1
2.2.2.2 515 0x80000001 2.2.2.2
Type8 Link States(Area 0.0.0.1)
ADV Router Age Seq# Link ID Interface
1.1.1.1 514 0x80000001 gi1/0/1
Type8 Link States(Area 0.0.0.1)
ADV Router Age Seq# Link ID Interface
2.2.2.2 964 0x80000006 gi1/0/1
Example 8. The following is sample output from the show ipv6 ospf database command with the external keyword:
switchxxxxxx# show ipv6 ospf database external
OSPFv3 Router with ID (172.16.6.6) (Process ID 1)
Type-5 AS External Link States
Routing Bit Set on this LSA
LS age: 654
LS Type: AS External Link
Link State ID: 0
Advertising Router: 172.16.3.3
LS Seq Number: 80000001
Checksum: 0x218D
Length: 32
Prefix Address: FEC0:3333::
Prefix Length: 32, Options: None
Metric Type: 2 (Larger than any link state path)
Metric: 20