show ip ospf interface

Use this command to display OSPF interface related information, including network type, priority, cost, hello interval, and dead interval.

Syntax

show ip ospf [process-id] interface [ifName]

Parameters

process-id (Optional) Specifies a configured OSPF process by its process ID. If process-id is included, information for the specified routing process only is displayed.
ifName (Optional) Displays OSPF information for an interface, such as a specific VLAN. The interface must be configured for IP routing as described in the S-, K-, and 7100 Series Configuration Guide.

Defaults

If ifName is not specified, OSPF statistics are displayed for all interfaces (including all VLANs).

Mode

All command modes.

Example

This example shows how to display all OSPF related information for VLAN 1:

System(rw)->show ip ospf interface vlan1
Vlan  1 is UP
 Internet Address  182.127.63.2  Mask  255.255.255.0,Area 0.0.0.0
 Router ID 182.127.64.1,Network Type BROADCAST,Cost: 10
 Transmit Delay is 1 sec,State BACKUPDR,Priority 1
 Designated Router id 182.127.62.1, Interface addr 182.127.63.1
 Backup Designated Router id 182.127.63.2,
 Timer intervals configured, Hello 10,Dead 40,Wait 40,Retransmit 5
    Neighbor Count is 1, Adjacent neighbor count is 1
  Adjacent with neighbor 182.127.63.1 (Designated Router)

show ip ospf interface Output Details provides an explanation of the command output.

Click to expand in new window

show ip ospf interface Output Details

Output... What it displays...
Vlan Interface (VLAN) administrative status as up or down.
Internet Address IP address and mask assigned to this interface.
Router ID Router ID, which OSPF selects from IP addresses configured on this router.
Network Type OSPF network type, for instance, broadcast.
Cost OSPF interface cost, which is either default, or assigned with the ip ospf cost command. For details, refer to ip ospf cost.
Transmit Delay The number (in seconds) added to the LSA (Link State Advertisement) age field.
State The interface state (versus the state between neighbors). Valid values include BACKUPDR (Backup Designated Router), and DR (Designated Router) and Drother.
Priority The interface priority value, which is either default, or assigned with the ip ospf priority command. For details, refer to ip ospf priority.
Designated Router IP The router IP of the designated router on this subnet, if one exists.
Backup Designated Router IP IP address of the backup designated router on this interface, if one exists.
Timer intervals configured OSPF timer intervals. These are either default, or configured with the ip ospf retransmit-interval (ip ospf retransmit-interval), the ip ospf hello-interval (ip ospf hello-interval), and the ip ospf dead interval (ip ospf dead-interval) commands. The wait timer represents the amount of time a router waits before initiating a designated router/backup designated router election. The wait timer changes when the dead interval changes. The retransmit timer represents the amount of time between successive transmissions of LSAs (Link State Advertisements) until acknowledgement is received.
Neighbor Count Number of neighbors over this interface.
Adjacent neighbor count Number of adjacent (FULL state) neighbors over this interface.
Adjacent with neighbor IP address of the adjacent neighbor.