The show ip ospf interface command provides a detailed list for every OSPFv2-enabled interface. Specify an interface to display the settings of just that interface, as shown in the following output for Gigabit Ethernet 0/0/0. This command shows the process ID, the local router ID, the type of network, OSPF cost, DR and BDR information on multiaccess links (not shown), and adjacent neighbors.
R1# show ip ospf interface GigabitEthernet 0/0/0
Process ID 10, Router ID 1.1.1.1, Network Type POINT_TO_POINT, Cost: 10
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 2.2.2.2
To get a quick summary of OSPFv2-enabled interfaces, use the show ip ospf interface brief command, as shown in the following command output. This command is useful for seeing important information including the following:
Interfaces are participating in OSPF
Networks that are being advertised (IP Address/Mask)
Cost of each link
Network state
Number of neighbors on each lin