Viewing OSPFv3 Information

View information about OSPF to view the current configuration.

Procedure

  1. Enter Privileged EXEC mode:

    enable

  2. View OSPF global information:

    show ipv6 ospf [vrf WORD <1-16>] [vrfids WORD <0-512>]

  3. View OSPF areas:

    show ipv6 ospf area [vrf WORD <1-16>] [vrfids WORD <0-512>]

  4. View OSPF interface information

    show ipv6 ospf interface [gigabitEthernet {slot/port[sub-port]}|vlan <1-4059>] [vrf WORD <1-16>] [vrfids WORD <0-512>]

  5. View OSPF interface timers:

    show ipv6 ospf int-timers [vrf WORD <1-16>] [vrfids WORD <0-512>]

  6. View the link-state database (LSDB) table:

    show ipv6 ospf lsdb [adv-rtr <A.B.C.D>] [area <A.B.C.D>] [interface gigabitEthernet {slot/port[sub-port]}|vlan <1-4059> ] [lsa-type <1-11>] [lsid <0-4294967295>] [scope <1-3>] [tunnel <1-2000>] [detail] [vrf WORD <1-16>] [vrfids WORD <0-512>]

  7. View OSPF neighbors to see routers with interfaces to a common network, including neighbors on the virtual link to the OSPF backbone:

    show ipv6 ospf neighbor [vrf WORD <1-16>] [vrfids WORD <0-512>]

Example

Switch:1#show ipv6 ospf

=================================================================================
                       OSPFv3 Global Information - GlobalRouter 

=================================================================================
        router-id                      : 170.76.84.0
        admin-state                    : DISABLE
        version                        : 3
        area-bdr-rtr-state             : FALSE
        as-bdr-rtr-state               : FALSE
        helper-mode                    : ENABLED
        as-scope-lsa-count             : 0
        lsa-checksum                   : 0
        originate-new-lsas             : 0
        rx-new-lsas                    : 0
        ext-lsa-count                  : 0

              default-metric :
                         ethernet - 100
                    fast-ethernet - 10
                     gig-ethernet - 1
                 ten-gig-ethernet - 1
               forty-gig-ethernet - 1

                             vlan - 10
Switch:1>show ipv6 ospf area

================================================================================
                              OSPF Area - GlobalRouter
================================================================================
AREA_ID         STUB_AREA  NSSA  IMPORT_SUM TRANS_ROLE TRANS_STATE
--------------------------------------------------------------------------------
0.0.0.0         false      false true       always     disabled
STUB_METRIC STUB_METRIC_TYPE SPF_RUNS BDR_RTR_CNT ASBDR_RTR_CNT LSA_CNT LSACK_SUM
--------------------------------------------------------------------------------
10          ospfV3Metric     0        0           0             0       0

Switch:1#show ipv6 ospf interface 
Total ospf areas: 1
Total ospf interfaces: 2
===============================================================================
                                 OSPF Interface - GlobalRouter
===============================================================================
IFINDX(VID/BRT) AREAID          ADM IFSTATE  METRIC PRI DR/BDR          IFTYPE   
--------------------------------------------------------------------------------
331   (5/12   ) 0.0.0.0         ena DOWN     1      1   0.0.0.0         PT-PT    
                                                       0.0.0.0         lnklsaSup       
2078  (30     ) 0.0.0.0         ena DR       1      1   197.146.128.0   BROADCAST
                                                       0.0.0.0                         
	
2 out of 2 Total Num of ospf interfaces displayed

Total ospf virtual interfaces: 0

================================================================================
                       OSPF Virtual Interface - GlobalRouter

================================================================================
AREAID          NBRIPADDR       STATE
---------------------------------------------------------------------------------

0 out of 0 Total Num of ospf virtual interfaces displayed

Switch:1#show ipv6 ospf int-timers
 
================================================================================
                       OSPF Interface Timers - GlobalRouter
 
================================================================================
                                TRANSIT  RETRANS  HELLO    DEAD     POLL   
IFINDX(VID/BRT) AREAID          DELAY    INTERVAL INTERVAL INTERVAL INTERVAL
--------------------------------------------------------------------------------
2059  (11     ) 0.0.0.0         1        5        10       40       120    
2060  (12     ) 0.0.0.0         1        5        10       40       120    
 
================================================================================
                       OSPF Virtual Interface Timers - GlobalRouter
 
================================================================================
                                TRANSIT  RETRANS  HELLO    DEAD   
AREAID          NBRIPADDR       DELAY    INTERVAL INTERVAL INTERVAL
--------------------------------------------------------------------------------
Switch:1#show ipv6 ospf neighbor
================================================================================
                             OSPF Neighbor - GlobalRouter
================================================================================
IFINDX(VID/BRT) NBRROUTERID     NBRIPADDR				STATE		TTL
--------------------------------------------------------------------------------
331    (10/19) 97.146.128.0   fe80:0:0:0:2ef4:c5ff:fe92:8a00	Restart	120 

1 out of 1 Total Num of Neighbor Entries displayed.

================================================================================
                         OSPF Virtual Neighbor - GlobalRouter
================================================================================
NBRAREAID       NBRROUTERID     VIRTINTFID NBRIPV6ADDR                             STATE   
--------------------------------------------------------------------------------

0 out of 0 Total Num of Virtual Neighbor Entries displayed.

================================================================================
                          OSPF NBMA Neighbor - GlobalRouter
================================================================================
INTERFACE NBRROUTERID     NBRIPADDR                                STATE     
--------------------------------------------------------------------------------

                    
0 out of 0 Total Num of NBMA Neighbor Entries displayed.
================================================================================

                           

Variable Definitions

Use the data in the following table to use the show ipv6 ospf commands.

Variable

Value

adv-rtr <A.B.C.D>

Shows information for the specified advertising router.

area <A.B.C.D>

Shows information for the specified area.

detail

Shows information beyond the basic information.

{slot/port[/sub-port]}

Identifies a single slot and port. If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.

lsa-type <1-11>

Shows information for the specified LSA type.

lsid <0-4294967295>

Shows information for the specified link-state ID.

scope <1-3>

Shows information for the specified scope:

  1. link-scope LSAs-View the link-scope LSDB to view the LSAs that are not flooded beyond the local link.

  2. area-scope LSAs-View the area-scope LSDB to see the LSAs that are flooded in a single OSPF area. Area scope is used in router LSAs, network LSAs, Inter-Area-Prefix-LSAs, Inter-Area-Router LSAs, and Intra-Area-Prefix-LSAs.

  3. AS-scope LSAs-View the AS-scope LSDB to see the LSAs that are flooded through the routing domain. The AS scope is used for ASexternal- LSAs.

tunnel <1-2000>

Specifies the ID number of the tunnel.

vlan <1-4059>

Specifies the VLAN ID in the range of 1 to 4059. By default, VLAN IDs 1 to 4059 are configurable and the system reserves VLAN IDs 4060 to 4094 for internal use. On switches that support the vrf-scaling and spbm-config-mode boot configuration flags, if you enable these flags, the system also reserves VLAN IDs 3500 to 3998. VLAN ID 1 is the default VLAN and you cannot create or delete VLAN ID 1.

vrf WORD<1-16>

Specifies the VRF name.

vrfids WORD<0-512>

Specifies VRF IDs.