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 ]
|
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.
|
None
Any command mode
|
Release
|
Modification
|
|---|---|
|
5.0(3)N1(1)
|
This command was introduced.
|
Use the show ip ospf interface command to display the OSPF status for the interface.
This command requires the LAN Base Services license.
This example shows how to display OSPF information for Ethernet interface 1/5:
The table below describes the significant fields shown in the display.
|
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:
This example shows how to display OSPF information in a brief format:
|
Command
|
Description
|
|---|---|
|
show running-config ospf
|
Displays the OSPF running configuration.
|