show ip ospf interface

Syntax

show ip ospf [<INSTANCE-TAG>] interface [<interface-name>] [brief] 
[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.

<interface-name>]

Specify the name of an OSPF interface.

brief

Display a brief overview of OSPF configuration information.

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 configuration settings:

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
BFD is enabled
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

Showing OSPF configuration settings for all interfaces:

switch# show ip ospf interface
Interface 1/1/1 is up, line protocol is up
--------------------------------------------

IP address 10.10.10.1/24, Process ID 1 VRF default, area 0.0.0.0
    State Backup-dr, Status up, Network type Broadcast
    Link Speed 1000 Mbps
    Cost Configured 1, Calculated 1
    Transit delay 1 sec, Router priority 1
    Designated Router IP: 10.10.10.2
    Backup Designated Router IP: 10.10.10.1
    Timer Intervals: Hello 10, Dead 40, Retransmit 5
    No authentication
    Number of Link LSAs: 0, checksum sum 0

Interface loopback10 is up, line protocol is up
------------------------------------------------

IP address 20.1.1.1/24, Process ID 1 VRF default, area 0.0.0.0
    State Loopback, Status up, Network type Loopback
    Link Speed NA
    Cost Configured 1, Calculated NA
    Transit delay 1 sec, Router priority 1
    No designated router on this network
    No backup designated router on this network
    Timer Intervals: Hello 10, Dead 40, Retransmit 5
    No authentication
    Number of Link LSAs: 0, checksum sum 0
    BFD is disabled