BuildTheNet

Opening your workspace

Your learning content and tools are loading.

OSPF

show ip protocols

Shows each running routing protocol: router ID, networks it is routing for, passive interfaces and information sources.

Written by a working field network engineer · CCNA, Security+, CySA+

A summary of every routing protocol running on the router: its router ID, which networks it was told to route for, passive interfaces, and the neighbors it is learning from. It is the quickest way to check a routing protocol’s configuration without reading the whole running-config.

Example output

R1#show ip protocols
*** IP Routing is NSF aware ***

Routing Protocol is "ospf 1"
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Router ID 1.1.1.1
  Number of areas in this router is 1. 1 normal 0 stub 0 nssa
  Maximum path: 4
  Routing for Networks:
    10.0.12.0 0.0.0.3 area 0
    192.168.10.0 0.0.0.255 area 0
  Routing Information Sources:
    Gateway         Distance      Last Update
    2.2.2.2              110      00:14:32
  Distance: (default is 110)

Reference output: hand-written in standard Cisco IOS format for this example network, not captured from a device. Shortened: IOS 15 also prints a "Routing Protocol is "application"" block before OSPF, an internal process you can ignore on the CCNA.

Useful variants

What each column or field means

FieldMeaning
Routing Protocol isEach running process, for example "ospf 1" or "eigrp 100".
update filter listWhether a distribute-list filters the routes this process sends or accepts.
Router IDThe router ID the process is using.
Number of areasAreas the router has interfaces in.
Maximum pathHow many equal-cost paths the process installs for one destination (4 by default for OSPF).
Routing for NetworksThe network statements, with their wildcard masks and areas.
Passive Interface(s)Interfaces that advertise their network but send no hellos. The heading only appears when one is configured; none is here.
Routing Information SourcesThe routers routes were learned from (for OSPF, by router ID), their AD and how long ago they last changed.
DistanceThe administrative distance of the process, 110 for OSPF.

When it doesn’t look right

A network is missing from Routing for Networks.

Add the network statement. Remember OSPF uses a wildcard mask (0.0.0.255 for a /24), not a subnet mask.

The LAN interface is advertised but users complain of OSPF hellos on their segment.

Make it passive: passive-interface GigabitEthernet0/0 under router ospf. The network is still advertised.

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