OcNOS-SP : Layer 3 Guide : Open Shortest Path First Command Reference : OSPFv3 Commands : show ipv6 ospf database
show ipv6 ospf database
Use this command to display information in the OSPFv3 Link State database.
Command Syntax
show ipv6 ospf database
show ipv6 ospf database (self-originate|max-age|adv-router A.B.C.D|)
show ipv6 ospf database (router|network|inter-prefix|inter-router|external|nssa-external|link|intra-prefix|te|grace)
show ipv6 ospf database (router|network|inter-prefix|inter-router|external|nssa-external|link|intra-prefix|te|grace) (self-originate|adv-router A.B.C.D|)
show ipv6 ospf database (router|network|inter-prefix|inter-router|external|nssa-external|link|intra-prefix|te|grace) A.B.C.D (self-originate|adv-router A.B.C.D|)
show ipv6 ospf WORD database
show ipv6 ospf WORD database (router|network|inter-prefix|inter-router|external|nssa-external|link|intra-prefix|te|grace)
show ipv6 ospf WORD database (router|network|inter-prefix|inter-router|external|nssa-external|link|intra-prefix|te|grace) adv-router A.B.C.D
Parameters
self-originate
Self-originated link states
max-age
LSAs in MaxAge list
adv-router
Advertising router for Type 8 Link LSAs (Link State Advertisements):
A.B.C.D
Router ID of the advertising router.
router
Router LSAs.
network
Network LSAs.
inter-prefix
Inter-Area-Prefix LSAs.
inter-router
Inter-Area-Router LSAs.
external
AS external LSAs.
nssa-external
NSSA LSAs.
link
Link LSAs.
intra-prefix
Intra-Area-Prefix LSAs (Type 9) with prefixes for stub and transit networks
te
Intra-area TE LSAs.
grace
Grace LSAs.
A.B.C.D
Link state ID as an IP address.
WORD
Tag value to use as a “match” value for controlling redistribution via route maps.
Command Mode
Privileged Exec mode and Exec Mode
Applicability
This command was introduced before OcNOS version 1.3.
Example: adv-router Parameter
This example shows using the adv-router parameter:
#show ipv6 ospf database link adv-router 10.70.0.58
OSPFv3 Router with ID (10.70.0.58) (Process 100)
Link-LSA (Interface eth1)
LS age: 492
LS Type: Link-LSA
Link State ID: 0.0.0.3
Advertising Router: 10.70.0.58
LS Seq Number: 0x80000001
Checksum: 0xC2D6
Length: 68
Priority: 1
Options: 0x000013 (-|R|-|-|E|V6)
Link-Local Address: fe80::204:75ff:feaa:fedb
Number of Prefixes: 2
Prefix: 5f00:1:2:10::/64
Prefix Options: 0 (-|-|-|-)
Header
OSPFv3 Router with ID (10.70.0.58) (Process 100)
Link-LSA (Interface eth1)
The router ID and OSPFv3 process tag of the local router.
Interface name of the router associated with this Link-LSA.
OSPFv3 Database Fields
Table 3-52 explains the fields for each database entry.
 
Table 3-52: OSPFv3 database fields
Field
Description
LS age
The length of time in seconds since the LSA was originated.
LS Type
The type of LSA
Link State ID
Interface identifier of the originating router.
Advertising router
The Router ID of the router advertising this LSA. On a transit network, this is always the Designated Router ID.
LS Seq Number
Sequence number of an LSA.
Checksum
LSA header checksum (excluding the LS age field).
Length
The length in bytes of the LSA (including the 20-byte header).
Priority
The router priority of the interface attaching the originating router of the link.
Options
Bits in network LSAs that originate on the link:
 
DC-bit: Whether the router supports OSPF over Demand Circuits.
R-bit: Whether the router is active. If this bit is clear, routes which transit the advertising node cannot be computed.
N-bit: How the router handles Type 7 LSAs.
MC-bit: Whether IP multicast packets are forwarded.
E-bit: Whether AS-External-LSAs are flooded. This bit is set in all AS External LSAs and in all LSAs. originated in the backbone and non-stub areas.
V6-bit: Whether to include the router/link in routing calculations.
Link-Local Address
The originating router's link-local interface address.
Number of Prefixes
The number of IPv6 prefixes associated to the link:
Prefix: The global IPv6 prefix associated to this link.
Prefix Options: Each prefix is advertised along with an 8-bit capabilities field.They serve as input for routing calculations allowing, for example, some prefixes to be ignored or marked as not re-advertisable.
Referenced LS Type
Identifies the Router-LSA or Network-LSA with which the IPv6 prefixes are associated:
Type 0x2001: prefixes associated with Router-LSA
Type 0x2002: prefixes associated with Network-LSA
Referenced Link State ID
Referenced LS Type 0x2001: this field is 0
Referenced LS Type 0x2002: the interface ID of the link's Designated Router.
Referenced Advertising Router
Referenced LS Type 0x2001: ID of the originating router.
Referenced LS Type 0x2002: ID of the Designated Router
 
Prefix:
Referenced LS Type 0x2001: global IPv6 prefix associated with the router
Referenced LS Type 0x2002: global IPv6 prefix associated with the transit link
 
Prefix Options: Bits in network LSAs that originate on the link:
DC: How the router handles demand circuits
R: Whether the router is active. If this bit is clear, routes which transit the advertising node cannot be computed.
N: How the router handles Type 7 LSAs
MC: Whether IP multicast packets are forwarded
E: Whether AS-External-LSAs are flooded
V6: Whether to include the router/link in routing calculations
 
Metric: The cost of this prefix.
Example: intra-prefix and adv-router Parameters
This example shows using the adv-router and intra-prefix parameters.
Note: The same information for OSPFv2 can be viewed in type 1 router LSAs and type 2 network LSAs. However, in OSPFv3 all addressing information has been removed from router LSAs and network LSAs, leading to the introduction of the Intra-Area-Prefix LSA. In a transit network, the Intra-Area-Prefix-LSA serves the same purpose as a network LSA and on a point-to-point or point-to-multipoint network serves the same purpose as a router LSA.
#show ipv6 ospf database intra-prefix adv-router 10.70.0.58
OSPFv3 Router with ID (10.70.0.58) (Process 100)
Intra-Area-Prefix-LSA (Area 0.0.0.0)
LS age: 1435
LS Type: Intra-Area-Prefix-LSA
Link State ID: 0.0.0.2
Advertising Router: 10.70.0.58
LS Seq Number: 0x80000001
Checksum: 0x1B4E
Length: 56
Number of Prefixes: 2
Referenced LS Type: 0x2002
Referenced Link State ID: 0.0.0.3
Referenced Advertising Router: 10.70.0.58
Prefix: 5f00:1:2:10::/64
Prefix Options: 0 (-|-|-|-)
Metric: 0
Prefix: 6f00:1:2:10::/64
Prefix Options: 0 (-|-|-|-)
Metric: 0
Header
OSPFv3 Router with ID (10.70.0.58) (Process 100)
Intra-Area-Prefix-LSA (Area 0.0.0.0)
The router ID and OSPFv3 process tag for the router.
Intra-Area-Prefix-LSA has area flooding scope. This LSA belongs to Area 0.0.0.0.
Last modified date: 10/16/2023