show ip ospf

To display general information about Open Shortest Path First (OSPF) routing instances, use the show ip ospf command.

show ip ospf [ instance-tag ] [ vrf vrf-name ]

Syntax Description

instance-tag
(Optional) Name of the OSPF instance. Use this tag to display OSPF information about a specific OSPF instance. The instance-tag argument can be any alphanumeric string of 20 characters.
vrf vrf-name
(Optional) Specifies the name of the virtual routing and forwarding (VRF) instance. The vrf-name argument can be specified as any case-sensitive, alphanumeric string up to 32 characters. The strings default and all are reserved VRF names.

Command Default

None

Command Modes

Any command mode

Command History

Release
Modification
5.0(3)N1(1)
This command was introduced.

Usage Guidelines

Use the show ip ospf command to display information about one or more OSPF instances.

This command requires the LAN Base Services license.

Examples

This example shows how to display information all about OSPF instances:

switch# show ip ospf
Routing Process 201 with ID 192.0.2.1 VRF default
Stateful High Availability enabled
Graceful-restart is configured
Grace period: 60 state: Inactive
Last graceful restart exit status: None
Supports only single TOS(TOS0) routes
Supports opaque LSA
This router is an autonomous system boundary
Redistributing External Routes from
bgp-1
Maximum limit: 1000 (warning-only)
Threshold: message 750
Current count: 0
Administrative distance 110
Reference Bandwidth is 40000 Mbps
Initial SPF schedule delay 3000.000 msecs,
minimum inter SPF delay of 2000.000 msecs,
maximum inter SPF delay of 4000.000 msecs
Initial LSA generation delay 3000.000 msecs,
minimum inter LSA delay of 6000.000 msecs,
maximum inter LSA delay of 6000.000 msecs
Minimum LSA arrival 2000.000 msec
Maximum paths to destination 3
Originating router LSA with maximum metric
Condition: Always
Number of external LSAs 0, checksum sum 0
Number of opaque AS LSAs 0, checksum sum 0
Number of areas is 3, 3 normal, 0 stub, 0 nssa
Number of active areas is 0, 0 normal, 0 stub, 0 nssa
Area BACKBONE(0.0.0.0) (Inactive)
Area has existed for 00:22:49
Interfaces in this area: 1 Active interfaces: 0
Passive interfaces: 0 Loopback interfaces: 0
No authentication available
SPF calculation has run 3 times
Last SPF ran for 0.000036s
Area ranges are
Number of LSAs: 0, checksum sum 0
Area (0.0.0.10) (Inactive)
Area has existed for 00:41:30
Interfaces in this area: 0 Active interfaces: 0
Passive interfaces: 0 Loopback interfaces: 0
Summarization is disabled
Simple password authentication
SPF calculation has run 8 times
Last SPF ran for 0.000150s
Area ranges are
10.3.0.0/16 Passive (Num nets: 0) Advertise
Area-filter in 'FilterLSAs'
Number of LSAs: 0, checksum sum 0
Area (0.0.0.15) (Inactive)
Area has existed for 00:49:30
Interfaces in this area: 1 Active interfaces: 0
Passive interfaces: 1 Loopback interfaces: 0
No authentication available
SPF calculation has run 8 times
Last SPF ran for 0.000021s
Area ranges are
Number of LSAs: 0, checksum sum 0
switch#
 

This example shows how to display information about one specific OSPF instance:

switch# show ip ospf 201
Routing Process 201 with ID 192.0.2.1 VRF default
Stateful High Availability enabled
Graceful-restart is configured
Grace period: 60 state: Inactive
Last graceful restart exit status: None
Supports only single TOS(TOS0) routes
Supports opaque LSA
Administrative distance 110
Reference Bandwidth is 40000 Mbps
Initial SPF schedule delay 200.000 msecs,
minimum inter SPF delay of 1000.000 msecs,
maximum inter SPF delay of 5000.000 msecs
Initial LSA generation delay 0.000 msecs,
minimum inter LSA delay of 5000.000 msecs,
maximum inter LSA delay of 5000.000 msecs
Minimum LSA arrival 1000.000 msec
Maximum paths to destination 3
Number of external LSAs 0, checksum sum 0
Number of opaque AS LSAs 0, checksum sum 0
Number of areas is 2, 1 normal, 1 stub, 0 nssa
Number of active areas is 0, 0 normal, 0 stub, 0 nssa
Area (0.0.0.10) (Inactive)
Area has existed for 00:12:18
Interfaces in this area: 0 Active interfaces: 0
Passive interfaces: 0 Loopback interfaces: 0
This area is a STUB area
Generates stub default route with cost 25
Simple password authentication
SPF calculation has run 1 times
Last SPF ran for 0.000122s
Area ranges are
Area-filter in 'FilterLSAs'
Number of LSAs: 0, checksum sum 0
Area (0.0.0.15) (Inactive)
Area has existed for 00:20:18
Interfaces in this area: 1 Active interfaces: 0
Passive interfaces: 1 Loopback interfaces: 0
No authentication available
SPF calculation has run 1 times
Last SPF ran for 0.000020s
Area ranges are
Number of LSAs: 0, checksum sum 0
switch#
 

The table below describes the significant fields shown in the display.

Field Descriptions of the show ip ospf Command
Field
Description
Routing Process...
OSPF instance tag and OSPF router ID.
Stateful High Availability
Status of stateful restart capability.
Supports...
Number of types of service supported (Type 0 only).
Administrative distance
Administrative distance for the OSPFv2 instance.
Reference Bandwidth
Bandwidth used for cost calculation.
Initial SPF schedule delay
Delay time of SPF calculations.
Initial LSA generation delay
Delay time of LSA generations.
Minimum LSA arrival
Minimum interval between link-state advertisements.
Maximum paths to destination
Maximum paths to the neighbor.
Number of...
Number and type of link-state advertisements that have been received.
Number of areas is...
Number and type of areas configured for the router.
Number of active areas is
Number and type of active areas configured on the router.

Related Commands

Command
Description
show running-config ospf
Displays the OSPF running configuration.