Specifications
show ip ospf interface
16-32 IPv4 Routing Protocol Configuration
show ip ospf interface
UsethiscommandtodisplayOSPFinterfacerelatedinformation,includingnetworktype,priority,
cost,hellointerval,anddeadinterval.
Syntax
show ip ospf interface [vlan vlan-id]
Parameters
Defaults
Ifvlan‐idisnotspecified,OSPFstatisticswillbedisplayedforallVLANs.
Mode
Anyroutermode.
Example
ThisexampleshowshowtodisplayallOSPFrelatedinformationfortheVLAN6interface:
C3(su)->router#show ip ospf interface vlan 6
Vlan 6
Internet Address 192.168.6.2 Mask 255.255.255.0 , Area 0.0.0.0
Router ID 3.3.3.3 , Cost: 10 (computed)
Transmit Delay is 1 sec , State designated-router , Priority 1
Designated Router id 3.3.3.3 , Interface Addr 192.168.6.2
Backup Designated Router id 2.2.2.2 ,
Timer intervals configured , Hello 10 , Dead 40 , Retransmit 5
Table 16‐4providesanexplanationofthecommandoutput.
vlanvlan‐id (Optional)DisplaysOSPFinformationforaspecificVLAN.ThisVLAN
mustbeconfiguredforIProutingasdescribedin“Pre‐Routing
ConfigurationTasks”onpage14‐1.
Table 16-4 show ip ospf interface Output Details
Output What It Displays...
Vlan VLAN ID
Internet Address IP address and mask assigned to this interface.
Area Area ID
Router ID Router ID configured on this router.
Cost OSPF interface cost, which is either default, or assigned with the ip ospf cost
command. For details, refer to “ip ospf cost” on page 16-17.
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
Backup Designated Router, Designated Router, and Err for error.
Priority The interface priority value, which is either default, or assigned with the ip ospf
priority command. For details, refer to “ip ospf priority” on page 16-17.
Designated Router
id
The router ID of the designated router on this subnet, if one exists, in which case Err
will be displayed.