show ip ospf interface brief
Lists every OSPF-enabled interface with its process, area, address, cost, DR/BDR state and neighbor count.
Written by a working field network engineer · CCNA, Security+, CySA+
Shows which interfaces OSPF is actually running on. A network statement that does not match an interface, or an interface placed in the wrong area, shows up here immediately.
Example output
R1#show ip ospf interface brief
Interface PID Area IP Address/Mask Cost State Nbrs F/C
Gi0/1 1 0 10.0.12.1/30 1 BDR 1/1
Gi0/0 1 0 192.168.10.1/24 1 DR 0/0Reference output: hand-written in standard Cisco IOS format for this example network, not captured from a device.
Useful variants
show ip ospf interface GigabitEthernet0/1show ip ospf interface
What each column or field means
| Field | Meaning |
|---|---|
PID | The OSPF process ID. It is local to the router and does not have to match the neighbor’s. |
Area | The area the interface is in. It must match the neighbor’s for that link. |
Cost | The interface cost: reference bandwidth (100 Mbps by default) divided by interface bandwidth, minimum 1. Every interface at or above 100 Mbps gets 1 unless you raise auto-cost reference-bandwidth. |
State | DR, BDR, DROTHER, P2P, or LOOP for a loopback. A LAN with no other routers shows DR. |
Nbrs F/C | Neighbors in FULL state / total neighbor count on the interface. |
When it doesn’t look right
An interface you expected is missing.
No network statement matches its address (check the wildcard mask), or it has no ip ospf <pid> area <id> command.
All costs are 1 on links of different speeds.
The default reference bandwidth is 100 Mbps. Set auto-cost reference-bandwidth 10000 (or higher) on every router so faster links are preferred.
F/C shows 0/1.
A neighbor exists but is not FULL. Check show ip ospf neighbor for its state.
Related commands
Try it yourself
- OSPF Single-Area Base (Pro)
- OSPF Passive Interface (Pro)
- OSPF Network Statements Across Two Areas (Pro)
- Or build the example network in the free Sandbox
Learn it in the CCNA path
- OSPF Configuration & Network Command (3. IP Connectivity)
- OSPF Cost Calculation & Tuning (3. IP Connectivity)
- Enable OSPF with network statements (3. IP Connectivity)
Topic
OSPF — Enable single-area OSPFv2, form neighbor adjacencies, read the neighbor and interface tables and confirm learned routes.