Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

show ospf3 database

Syntax

show ospf3 database<brief | detail | extensive | summary><advertising-router (address | self)><area area-id><external><instance instance-name><inter-area-prefix><inter-area-router><intra-area-prefix><link><link-local><logical-system (all | logical-system-name)><lsa-id lsa-id> <network><nssa><realm (ipv4-multicast | ipv4-unicast | ipv6-multicast)><router>

Syntax (EX Series Switches and QFX Series)

show ospf3 database<brief | detail | extensive | summary><advertising-router (address | self)><area area-id><external><instance instance-name><inter-area-prefix><inter-area-router><intra-area-prefix><link><link-local><lsa-id lsa-id> <network><nssa><router>

Release Information

Command introduced before Junos OS Release 7.4.

Command introduced in Junos OS Release 9.0 for EX Series switches.

realm option introduced in Junos OS Release 9.2.

advertising-router (address | self) option introduced in Junos Relase 9.5.

advertising-router (address | self) option introduced in Junos OS Release 9.5 for EX Series switches.

Command introduced in Junos OS Release 11.3 for the QFX Series.

Description

Display the entries in the OSPF version 3 (OSPFv3) link-state database, which contains data about link-state advertisement (LSA) packets.

Options

none

Display standard information about all entries in the OSPFv3 link-state database.

brief | detail | extensive | summary

(Optional) Display the specified level of output.

advertising-router (address | self)

(Optional) Display the LSAs advertised either by a particular routing device or by this routing device.

area area-id

(Optional) Display the LSAs in a particular area.

external

(Optional) Display external LSAs.

instance instance-name

(Optional) Display all OSPF database information under the named routing instance.

inter-area-prefix

(Optional) Display information about interarea-prefix LSAs.

inter-area-router

(Optional) Display information about interarea-router LSAs.

intra-area-prefix

(Optional) Display information about intra-area-prefix LSAs.

link

(Optional) Display information about link LSAs.

link-local

(Optional) Display information about link-local LSAs.

logical-system (all | logical-system-name)

(Optional) Perform this operation on all logical systems or on a particular logical system.

lsa-id lsa-id

(Optional) Display the LSA with the specified LSA identifier.

network

(Optional) Display information about network LSAs.

nssa

(Optional) Display information about not-so-stubby area (NSSA) LSAs.

realm (ipv4-multicast | ipv4-unicast | ipv6-multicast)

(Optional) Display information about the specified OSPFv3 realm, or address family. Use the realm option to specify an address family other than IPv6 unicast, which is the default.

router

(Optional) Display information about router LSAs.

Required Privilege Level

view

List of Sample Output

show ospf3 database brief
show ospf3 database extensive
show ospf3 database summary

Output Fields

Table 1 lists the output fields for the show ospf3 database command. Output fields are listed in the approximate order in which they appear.

Table 1: show ospf3 database Output Fields

Field Name

Field Description

Level of Output

OSPF link state database, area area-number

Entries in the link-state database for this area.

brief detail extensive

OSPF AS SCOPE link state database

Entries in the AS scope link-state database.

brief detail extensive

OSPF Link-Local link state database, interface interface-name

Entries in the link-local link-state database for this interface.

brief detail extensive

area

Area number. Area 0.0.0.0 is the backbone area.

All levels

Type

Type of link advertisement: Extern, InterArPfx, InterArRtr, IntraArPrx , Link, Network, NSSA, or Router.

brief detail extensive

ID

Link identifier included in the advertisement. An asterisk (*) preceding the identifier marks database entries that originated from the local routing device.

brief detail extensive

Adv Rtr

Address of the routing device that sent the advertisement.

brief detail extensive

Seq

Link sequence number of the advertisement.

brief detail extensive

Age

Time elapsed since the LSA was originated, in seconds.

brief detail extensive

Cksum

Checksum value of the LSA.

brief detail extensive

Len

Length of the advertisement, in bytes.

brief detail extensive

Router (Router Link-State Advertisements)

bits

Flags describing the routing device that generated the LSP.

detail extensive

Options

Option bits carried in the router LSA.

detail extensive

For Each Router Link

Type

Type of interface. The value of all other output fields describing a routing device interface depends on the interface’s type:

  • PointToPoint (1)—Point-to-point connection to another routing device.
  • Transit (2)—Connection to a transit network.
  • Virtual (4)—Virtual link.

detail extensive

Loc-if-id

Local interface ID assigned to the interface that uniquely identifies the interface with the routing device.

detail extensive

Nbr-if-id

Interface ID of the neighbor's interface for this routing device link.

detail extensive

Nbr-rtr-id

Router ID of the neighbor routing device (for type 2 interfaces, the attached link’s designated router).

detail extensive

Metric

Cost of the router link.

detail extensive

Gen timer

How long until the LSA is regenerated, in the format hours:minutes:seconds.

extensive

Aging timer

How long until the LSA expires, in the format hours:minutes:seconds.

extensive

Installed nn:nn:nn ago

How long ago the route was installed, in the format hours:minutes:seconds.

extensive

expires in nn:nn:nn

How long until the route expires, in the format hours:minutes:seconds.

extensive

sent nn:nn:nn ago

Time elapsed since the LSA was last transmitted or flooded to an adjacency or an interface, respectively, in the format hours:minutes:seconds.

extensive

Ours

Indicates that this is a local advertisement.

extensive

Network (Network Link-State Advertisements)

Options

Option bits carried in the network LSA.

detail extensive

Attached Router

Router IDs of each of the routing devices attached to the link. Only routing devices that are fully adjacent to the designated router are listed. The designated router includes itself in this list.

detail extensive

InterArPfx (Interarea-Prefix Link-State Advertisements)

Prefix

IPv6 address prefix.

detail extensive

Prefix-options

Option bit associated with the prefix.

detail extensive

Metric

Cost of this route. Expressed in the same units as the interface costs in the router LSAs. When the interarea-prefix LSA is describing a route to a range of addresses, the cost is set to the maximum cost to any reachable component of the address range.

detail extensive

Gen timer

How long until the LSA is regenerated, in the format hours:minutes:seconds.

extensive

Aging timer

How long until the LSA expires, in the format hours:minutes:seconds.

extensive

Installed nn:nn:nn ago

How long ago the route was installed, in the format hours:minutes:seconds.

extensive

expires in nn:nn:nn

How long until the route expires, in the format hours:minutes:seconds.

extensive

sent nn:nn:nn ago

Time elapsed since the LSA was last transmitted or flooded to an adjacency or an interface, respectively, in the format hours:minutes:seconds.

extensive

Ours

Indicates that this is a local advertisement.

extensive

InterArRtr (Interarea-Router Link-State Advertisements)

Dest-router-id

Router ID of the routing device described by the LSA.

detail extensive

options

Optional capabilities supported by the routing device.

detail extensive

Metric

Cost of this route. Expressed in the same units as the interface costs in the router LSAs. When the interarea-prefix LSA is describing a route to a range of addresses, the cost is set to the maximum cost to any reachable component of the address range.

detail extensive

Prefix

IPv6 address prefix.

extensive

Prefix-options

Option bit associated with the prefix.

extensive

Extern (External Link-State Advertisements)

Prefix

IPv6 address prefix.

detail extensive

Prefix-options

Option bit associated with the prefix.

detail extensive

Metric

Cost of the route, which depends on the value of Type.

detail extensive

Type n

Type of external metric: Type 1 or Type 2.

detail extensive

Aging timer

How long until the LSA expires, in the format hours:minutes:seconds.

extensive

Installed nn:nn:nn ago

How long ago the route was installed, in the format hours:minutes:seconds.

extensive

expires in nn:nn:nn

How long until the route expires, in the format hours:minutes:seconds.

extensive

sent nn:nn:nn ago

Time elapsed since the LSA was last transmitted or flooded to an adjacency or an interface, respectively, in the format hours:minutes:seconds.

extensive

Link (Link-State Advertisements)

IPv6-Address

IPv6 link-local address on the link for which this link LSA originated.

detail extensive

Options

Option bits carried in the link LSA.

detail extensive

priority

Router priority of the interface attaching the originating routing device to the link.

detail extensive

Prefix-count

Number of IPv6 address prefixes contained in the LSA. The rest of the link LSA contains a list of IPv6 prefixes to be associated with the link.

detail extensive

Prefix

IPv6 address prefix.

detail extensive

Prefix-options

Option bit associated with the prefix.

detail extensive

Gen timer

How long until the LSA is regenerated, in the format hours:minutes:seconds.

extensive

Aging timer

How long until the LSA expires, in the format hours:minutes:seconds.

extensive

Installed nn:nn:nn ago

How long ago the route was installed, in the format hours:minutes:seconds.

extensive

expires in nn:nn:nn

How long until the route expires, in the format hours:minutes:seconds.

extensive

sent nn:nn:nn ago

Time elapsed since the LSA was last transmitted or flooded to an adjacency or an interface, respectively, in the format hours:minutes:seconds.

extensive

Ours

Indicates that this is a local advertisement.

extensive

IntraArPfx (Intra-Area-Prefix Link-State Advertisements)

Ref-lsa-type

LSA type of the referenced LSA.

  • Router—Address prefixes are associated with a router LSA.
  • Network—Address prefixes are associated with a network LSA.

detail extensive

Ref-lsa-id

Link-state ID of the referenced LSA.

detail extensive

Ref-router-id

Advertising router ID of the referenced LSA.

detail extensive

Prefix-count

Number of IPv6 address prefixes contained in the LSA. The rest of the link LSA contains a list of IPv6 prefixes to be associated with the link.

detail extensive

Prefix

IPv6 address prefix.

detail extensive

Prefix-options

Option bit associated with the prefix.

detail extensive

Metric

Cost of this prefix. Expressed in the same units as the interface costs in the router LSAs.

detail extensive

Gen timer

How long until the LSA is regenerated, in the format hours:minutes:seconds.

extensive

Aging timer

How long until the LSA expires, in the format hours:minutes:seconds.

extensive

Installed hh:mm:ss ago

How long ago the route was installed, in the format hours:minutes:seconds.

extensive

expires in hh:mm:ss

How long until the route expires, in the format hours:minutes:seconds.

extensive

sent hh:mm:ss ago

Time elapsed since the LSA was last transmitted or flooded to an adjacency or an interface, respectively, in the format hours:minutes:seconds.

extensive

n Router LSAs

Number of router LSAs in the link-state database.

summary

n Network LSAs

Number of network LSAs in the link-state database.

summary

n InterArPfx LSAs

Number of interarea-prefix LSAs in the link-state database.

summary

n InterArRtr LSAs

Number of interarea-router LSAs in the link-state database.

summary

n IntraArPfx LSAs

Number of intra-area-prefix LSAs in the link-state database.

summary

Externals

Display of the external LSA database.

summary

n Extern LSAs

Number of external LSAs in the link-state database.

summary

Interface interface-name

Name of the interface for which link-local LSA information is displayed.

summary

n Link LSAs

Number of link LSAs in the link-state database.

summary

Sample Output

show ospf3 database brief

user@host> show ospf3 database brief
    OSPF3 link state database, area 0.0.0.0
 Type       ID               Adv Rtr           Seq         Age  Cksum  Len 
Router      0.0.0.1          10.255.4.85      0x80000003   885  0xa697  40
Router     *0.0.0.1          10.255.4.93      0x80000002   953  0xc677  40
InterArPfx *0.0.0.2          10.255.4.93      0x80000001   910  0xb96f  44
InterArRtr *0.0.0.1          10.255.4.93      0x80000001   910  0xe159  32
IntraArPfx *0.0.0.1          10.255.4.93      0x80000002   432  0x788f  72

    OSPF3 link state database, area 0.0.0.1
 Type       ID               Adv Rtr           Seq         Age  Cksum  Len 
Router     *0.0.0.1          10.255.4.93      0x80000003   916  0xea40  40
Router      0.0.0.1          10.255.4.97      0x80000006   851  0xc95b  40
Network     0.0.0.2          10.255.4.97      0x80000002   916  0x4598  32
InterArPfx *0.0.0.1          10.255.4.93      0x80000002   117  0xa980  44
InterArPfx *0.0.0.2          10.255.4.93      0x80000002    62  0xd47e  44
NSSA        0.0.0.1          10.255.4.97      0x80000002   362  0x45ee  44
IntraArPfx  0.0.0.1          10.255.4.97      0x80000006   851  0x2f77  52

    OSPF3 AS SCOPE link state database
 Type       ID               Adv Rtr           Seq         Age  Cksum  Len 
Extern      0.0.0.1          10.255.4.85      0x80000002    63  0x9b86  44
Extern     *0.0.0.1          10.255.4.93      0x80000001   910  0x59c9  44

    OSPF3 Link-Local link state database, interface ge-1/3/0.0
 Type       ID               Adv Rtr           Seq         Age  Cksum  Len 
Link       *0.0.0.2          10.255.4.93      0x80000003   916  0x4dab  64

show ospf3 database extensive

user@host> show ospf3 database extensive
    OSPF3 link state database, area 0.0.0.0
 Type       ID               Adv Rtr           Seq         Age  Cksum  Len 
Router      0.0.0.1          10.255.4.85      0x80000003  1028  0xa697  40
  bits 0x2, Options 0x13
  Type PointToPoint (1), Metric 10
      Loc-If-Id 2, Nbr-If-Id 3, Nbr-Rtr-Id 10.255.4.93
  Aging timer 00:42:51
  Installed 00:17:05 ago, expires in 00:42:52, sent 02:37:54 ago
Router     *0.0.0.1          10.255.4.93      0x80000002  1096  0xc677  40
  bits 0x3, Options 0x13
  Type PointToPoint (1), Metric 10
      Loc-If-Id 3, Nbr-If-Id 2, Nbr-Rtr-Id 10.255.4.85
  Gen timer 00:00:40
  Aging timer 00:41:44
  Installed 00:18:16 ago, expires in 00:41:44, sent 00:18:14 ago
  Ours
InterArPfx *0.0.0.2          10.255.4.93      0x80000001  1053  0xb96f  44
  Prefix feee::10:10:2:0/126
  Prefix-options 0x0, Metric 10
  Gen timer 00:17:02
  Aging timer 00:42:26
  Installed 00:17:33 ago, expires in 00:42:27, sent 00:17:31 ago
  Ours
InterArPfx *0.0.0.3          10.255.4.93      0x80000001  1053  0x71d3  44
  Prefix feee::10:255:4:97/128
  Prefix-options 0x0, Metric 10
  Gen timer 00:21:07
  Aging timer 00:42:26
  Installed 00:17:33 ago, expires in 00:42:27, sent 00:17:31 ago
  Ours
InterArRtr *0.0.0.1          10.255.4.93      0x80000001  1053  0xe159  32
  Dest-router-id 10.255.4.97, Options 0x19, Metric 10
  Gen timer 00:29:18
  Aging timer 00:42:26
  Installed 00:17:33 ago, expires in 00:42:27, sent 00:17:31 ago
  Ours
IntraArPfx  0.0.0.1          10.255.4.85      0x80000002  1028  0x2403  72
  Ref-lsa-type Router, Ref-lsa-id 0.0.0.0, Ref-router-id 10.255.4.85
  Prefix-count 2
  Prefix feee::10:255:4:85/128
    Prefix-options 0x2, Metric 0
  Prefix feee::10:10:1:0/126
    Prefix-options 0x0, Metric 10
  Aging timer 00:42:51
  Installed 00:17:05 ago, expires in 00:42:52, sent 02:37:54 ago
IntraArPfx *0.0.0.1          10.255.4.93      0x80000002   575  0x788f  72
  Ref-lsa-type Router, Ref-lsa-id 0.0.0.0, Ref-router-id 10.255.4.93
  Prefix-count 2
  Prefix feee::10:255:4:93/128
    Prefix-options 0x2, Metric 0
  Prefix feee::10:10:1:0/126
    Prefix-options 0x0, Metric 10
  Gen timer 00:33:23
  Aging timer 00:50:24
  Installed 00:09:35 ago, expires in 00:50:25, sent 00:09:33 ago
    OSPF3 link state database, area 0.0.0.1
 Type       ID               Adv Rtr           Seq         Age  Cksum  Len 
Router     *0.0.0.1          10.255.4.93      0x80000003  1059  0xea40  40
  bits 0x3, Options 0x19
  Type Transit (2), Metric 10
      Loc-If-Id 2, Nbr-If-Id 2, Nbr-Rtr-Id 10.255.4.97
  Gen timer 00:08:51
  Aging timer 00:42:20
  Installed 00:17:39 ago, expires in 00:42:21, sent 00:17:37 ago
Router      0.0.0.1          10.255.4.97      0x80000006   994  0xc95b  40
  bits 0x2, Options 0x19
  Type Transit (2), Metric 10
      Loc-If-Id 2, Nbr-If-Id 2, Nbr-Rtr-Id 10.255.4.97
  Aging timer 00:43:25
  Installed 00:16:31 ago, expires in 00:43:26, sent 02:37:54 ago
Network     0.0.0.2          10.255.4.97      0x80000002  1059  0x4598  32
  Options 0x11      
  Attached router 10.255.4.97
  Attached router 10.255.4.93
  Aging timer 00:42:20
  Installed 00:17:36 ago, expires in 00:42:21, sent 02:37:54 ago
InterArPfx *0.0.0.1          10.255.4.93      0x80000002   260  0xa980  44
  Prefix feee::10:10:1:0/126
  Prefix-options 0x0, Metric 10
  Gen timer 00:45:39
  Aging timer 00:55:39
  Installed 00:04:20 ago, expires in 00:55:40, sent 00:04:18 ago
  Ours              
InterArPfx *0.0.0.2          10.255.4.93      0x80000002   205  0xd47e  44
  Prefix feee::10:255:4:93/128
  Prefix-options 0x0, Metric 0
  Gen timer 00:46:35
  Aging timer 00:56:35
  Installed 00:03:25 ago, expires in 00:56:35, sent 00:03:23 ago
  Ours              
InterArPfx *0.0.0.3          10.255.4.93      0x80000001  1089  0x9bbb  44
  Prefix feee::10:255:4:85/128
  Prefix-options 0x0, Metric 10
  Gen timer 00:04:46
  Aging timer 00:41:51
  Installed 00:18:09 ago, expires in 00:41:51, sent 00:17:43 ago
  Ours              
NSSA        0.0.0.1          10.255.4.97      0x80000002   505  0x45ee  44
  Prefix feee::200:200:1:0/124
  Prefix-options 0x8, Metric 10, Type 2,
  Aging timer 00:51:35
  Installed 00:08:22 ago, expires in 00:51:35, sent 02:37:54 ago
IntraArPfx  0.0.0.1          10.255.4.97      0x80000006   994  0x2f77  52
  Ref-lsa-type Router, Ref-lsa-id 0.0.0.0, Ref-router-id 10.255.4.97
  Prefix-count 1    
  Prefix feee::10:255:4:97/128
    Prefix-options 0x2, Metric 0
  Aging timer 00:43:25
  Installed 00:16:31 ago, expires in 00:43:26, sent 02:37:54 ago
IntraArPfx  0.0.0.3          10.255.4.97      0x80000002  1059  0x4446  52
  Ref-lsa-type Network, Ref-lsa-id 0.0.0.2, Ref-router-id 10.255.4.97
  Prefix-count 1    
  Prefix feee::10:10:2:0/126
    Prefix-options 0x0, Metric 0
  Aging timer 00:42:20
  Installed 00:17:36 ago, expires in 00:42:21, sent 02:37:54 ago
    OSPF3 AS SCOPE link state database
 Type       ID               Adv Rtr           Seq         Age  Cksum  Len 
Extern      0.0.0.1          10.255.4.85      0x80000002   206  0x9b86  44
  Prefix feee::100:100:1:0/124
  Prefix-options 0x0, Metric 20, Type 2,
  Aging timer 00:56:34
  Installed 00:03:23 ago, expires in 00:56:34, sent 02:37:54 ago
Extern     *0.0.0.1          10.255.4.93      0x80000001  1053  0x59c9  44
  Prefix feee::200:200:1:0/124
  Prefix-options 0x0, Metric 10, Type 2,
  Gen timer 00:25:12
  Aging timer 00:42:26
  Installed 00:17:33 ago, expires in 00:42:27, sent 00:17:31 ago
                    
    OSPF3 Link-Local link state database, interface ge-1/3/0.0
 Type       ID               Adv Rtr           Seq         Age  Cksum  Len 
Link       *0.0.0.2          10.255.4.93      0x80000003  1059  0x4dab  64
  fe80::290:69ff:fe39:1cdb
  Options 0x11, priority 128
  Prefix-count 1    
  Prefix feee::10:10:2:0/126 Prefix-options 0x0
  Gen timer 00:12:56
  Aging timer 00:42:20
  Installed 00:17:39 ago, expires in 00:42:21, sent 00:17:37 ago
Link        0.0.0.2          10.255.4.97      0x80000003   205  0xa87d  64
  fe80::290:69ff:fe38:883e
  Options 0x11, priority 128
  Prefix-count 1    
  Prefix feee::10:10:2:0/126 Prefix-options 0x0
  Aging timer 00:56:35
  Installed 00:03:22 ago, expires in 00:56:35, sent 02:37:54 ago
                    
    OSPF3 Link-Local link state database, interface so-2/2/0.0
 Type       ID               Adv Rtr           Seq         Age  Cksum  Len 
Link        0.0.0.2          10.255.4.85      0x80000002   506  0x42bb  64
  fe80::280:42ff:fe10:f169
  Options 0x13, priority 128
  Prefix-count 1    
  Prefix feee::10:10:1:0/126 Prefix-options 0x0
  Aging timer 00:51:34
  Installed 00:08:23 ago, expires in 00:51:34, sent 02:37:54 ago
Link       *0.0.0.3          10.255.4.93      0x80000002   505  0x6b7a  64
  fe80::280:42ff:fe10:f177
  Options 0x13, priority 128
  Prefix-count 1    
  Prefix feee::10:10:1:0/126 Prefix-options 0x0
  Gen timer 00:37:28
  Aging timer 00:51:35
  Installed 00:08:25 ago, expires in 00:51:35, sent 00:08:23 ago
  Ours 

show ospf3 database summary

user@host> show ospf3 database summary
Area 0.0.0.0:
   2 Router LSAs
   1 InterArPfx LSAs
   1 InterArRtr LSAs
   1 IntraArPfx LSAs
Area 0.0.0.1:
   2 Router LSAs
   1 Network LSAs
   2 InterArPfx LSAs
   1 NSSA LSAs
   1 IntraArPfx LSAs
Externals:
   2 Extern LSAs
Interface ge-1/3/0.0:
   1 Link LSAs
Interface lo0.0:
Interface so-2/2/0.0:
   1 Link LSAs

Published: 2013-04-03