API Guide

show ip ospf interface
Displays the configured OSPF interfaces. You must enable OSPF to display output.
Syntax show ip ospf interface [process-id] [vrf vrf-name] interface or show ip ospf
[process-id] [vrf vrf-name] interface [interface]
Parameters
process-id (Optional) Displays information for an OSPF process ID. If you do not enter a
process ID, this command applies only to the first OSPF process.
vrf vrf-name (Optional) Displays information for an OSPF instance corresponding to a VRF.
interface (Optional) Enter the interface information:
ethernet Enter the Ethernet interface information, from 1 to 48.
port channel Enter the port-channel interface number, from 1 to 128.
vlan Enter the VLAN interface number, from 1 to 4093.
Default Not configured
Command Mode EXEC
Example
OS10# show ip ospf 10 interface
ethernet1/1/1 is up, line protocol is up
Internet Address 110.1.1.1/24, Area 0.0.0.0
Process ID 10, Router ID 1.1.1.1, Network Type broadcast, Cost: 10
Transmit Delay is 1 sec, State WAIT, Priority 1
BFD enabled(Interface level) Interval 300 Min_rx 300 Multiplier 3 Role
Active
Designated Router (ID) , Interface address 0.0.0.0
Backup Designated router (ID) , Interface address 0.0.0.0
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Neighbor Count is 0, Adjacent neighbor count is 0
Supported
Releases
10.2.0E or later
show ip ospf routes
Displays OSPF routes received from neighbors along with parameters such as cost, next-hop, area, interface, and type of route.
Syntax
show ip ospf [process-id] [vrf vrf-name] routes [prefix IP-prefix]
Parameters
process-id (Optional) Enter OSPFv2 process ID to view information specific to the ID.
vrf vrf-name (Optional) Enter the keyword vrf followed by the name of the VRF to display the
routes calculated by OSPF in the configured VRF.
IP-prefix (Optional) Specify an IP address to view information specific to the IP address.
Default None
Command Mode EXEC
Usage
Information
Displays the cost metric for each neighbor and interfaces.
Example
OS10# show ip ospf 10 routes
Prefix Cost Nexthop Interface Area Type
110.1.1.0 1 0.0.0.0 vlan3050 0.0.0.0 intra-area
111.1.1.0 1 0.0.0.0 vlan3051 0.0.0.0 intra-area
111.2.1.0 1 0.0.0.0 vlan3053 0.0.0.0 intra-area
Supported
Releases
10.2.0E or later
Layer 3 719