show ip ospf

Syntax

show ip ospf [<INSTANCE-TAG>] [all-vrfs | vrf <VRF-NAME>] [vsx-peer]

Description

Displays general OSPF, area, state, and configuration information.

Command context

Operator (>) or Manager (#)

Parameters

<INSTANCE-TAG>

Enter an OSPF Process ID to display general OSPF information for a particular OSPF process. Range: 1-63.

all-vrfs

Optionally select to display general OSPF information for all VRFs.

vrf <VRF-NAME>

Optionally select to display general OSPF information for a particular VRF. If the VRF is not specified, information for the default VRF is displayed.

[vsx-peer]

Shows the output from the VSX peer switch. If the switches do not have the VSX configuration or the ISL is down, the output from the VSX peer switch is not displayed.

Authority

Operators or Administrators. Users without administrator authority can execute this command from the operator context (>) only.

Examples

Showing general OSPF configurations:

switch# show ip ospf 1
Routing Process 1 with ID : 10.1.1.1 VRF default
-------------------------------------------------

Graceful-restart is not configured
Restart Interval: 120, State: inactive
Last Graceful Restart Exit Status: none
Maximum Paths to Destination: 8
Number of external LSAs 0, checksum sum 0
Number of areas is 1, 1 normal, 0 stub, 0 NSSA
Number of active areas is 1, 1 normal, 0 stub, 0 NSSA
Area (0.0.0.0) (Active)
  Interfaces in this Area: 1 Active Interfaces: 1
  Passive Interfaces: 0 Loopback Interfaces: 0
  SPF calculation has run 4 times
  Area ranges:
    ip-prefix 2.2.0.0/16, inter-area, not-advertise
  Number of LSAs: 3, checksum sum 119940