show ip ospf interface

To display Open Shortest Path First (OSPF)-related interface information, use the show ip ospf interface command.

show ip ospf interface [ instance-tag ] [{ ethernet slot / port | loopback if_number | port-channel number }] [ brief ] [ vrf vrf-name ]

Syntax Description

instance-tag
(Optional) Name of the OSPF instance. The name can be a maximum of 20 alphanumeric characetrs.
ethernet slot / port
(Optional) Specifies the Ethernet interface. The slot number is from 1 to 255, and the port number is from 1 to 128.
loopback if_number
(Optional) Specifies the loopback interface. The loopback interface number is from 0 to 1023.
port-channel number
(Optional) Specifies the EtherChannel interface and EtherChannel number. The range is from 1 to 4096.
brief
(Optional) Displays brief overview information for OSPF interfaces, states, addresses, masks, and areas on the router.
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 interface command to display the OSPF status for the interface.

This command requires the LAN Base Services license.

Examples

This example shows how to display OSPF information for Ethernet interface 1/5:

switch# show ip ospf interface ethernet 1/5
Ethernet1/5 is up, line protocol is down
IP address 192.0.2.1, Process ID 201 VRF RemoteOfficeVRF, area 0.0.0.10
Enabled by interface configuration
State DOWN, Network type BROADCAST, cost 4
Index 1, Transmit delay 1 sec, Router Priority 1
No designated router on this network
No backup designated router on this network
0 Neighbors, flooding to 0, adjacent with 0
Timer intervals: Hello 10, Dead 40, Wait 40, Retransmit 5
No authentication
Number of opaque link LSAs: 0, checksum sum 0
switch#
 

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

Field Descriptions of the show ip ospf interface Command
Field
Description
Ethernet
Status of physical link and operational status of protocol.
IP Address
Interface IP address, subnet mask, and area address.
VRF
Virtual routing and forwarding (VRF) instance.
Transmit Delay
Transmit delay, interface state, and router priority.
designated router
Designated router ID and interface IP address.
backup designated router
Backup designated router ID and interface IP address.
Timer intervals
Configuration information of timer intervals.
Hello
Number of seconds until next hello packet is sent out this interface.

This example shows how to display OSPF information for all VRFs:

switch# show ip ospf interface vrf all
VL1-0.0.0.10-10.1.2.3 is down, line protocol is down
IP address 0.0.0.0, Process ID 201 VRF default, area 0.0.0.0
State DOWN, Network type P2P, cost 65535
Index 2, Transmit delay 2 sec
0 Neighbors, flooding to 0, adjacent with 0
Timer intervals: Hello 25, Dead 50, Wait 50, Retransmit 50
Message-digest authentication, using key id 21
Number of opaque link LSAs: 0, checksum sum 0
 
switch#
 

This example shows how to display OSPF information in a brief format:

switch# show ip ospf interface brief
OSPF Process ID 201 VRF default
Total number of interface: 1
Interface ID Area Cost State Neighbors Status
VL1 2 0.0.0.0 65535 DOWN 0 down
 
switch#
 

Related Commands

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