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
sh ip protshow ip protocols | section ospf
What each column or field means
| Field | Meaning |
|---|---|
Routing Protocol is | Each running process, for example "ospf 1" or "eigrp 100". |
update filter list | Whether a distribute-list filters the routes this process sends or accepts. |
Router ID | The router ID the process is using. |
Number of areas | Areas the router has interfaces in. |
Maximum path | How many equal-cost paths the process installs for one destination (4 by default for OSPF). |
Routing for Networks | The 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 Sources | The routers routes were learned from (for OSPF, by router ID), their AD and how long ago they last changed. |
Distance | The 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
- OSPF Single-Area Base (Pro)
- OSPF Passive Interface (Pro)
- Advertising Three Networks Into OSPF (Pro)
- EIGRP Basic Configuration (Pro)
- Or build the example network in the free Sandbox
Learn it in the CCNA path
- OSPF Configuration & Network Command (3. IP Connectivity)
- Separate OSPF adjacency from route advertisement (3. IP Connectivity)
Topic
OSPF — Enable single-area OSPFv2, form neighbor adjacencies, read the neighbor and interface tables and confirm learned routes.