BuildTheNet

Opening your workspace

Your learning content and tools are loading.

OSPF

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/0

Reference output: hand-written in standard Cisco IOS format for this example network, not captured from a device.

Useful variants

What each column or field means

FieldMeaning
PIDThe OSPF process ID. It is local to the router and does not have to match the neighbor’s.
AreaThe area the interface is in. It must match the neighbor’s for that link.
CostThe 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.
StateDR, BDR, DROTHER, P2P, or LOOP for a loopback. A LAN with no other routers shows DR.
Nbrs F/CNeighbors 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

Learn it in the CCNA path

Topic

OSPF — Enable single-area OSPFv2, form neighbor adjacencies, read the neighbor and interface tables and confirm learned routes.

All 57 commands