Use it to check which source owns a prefix, and whether the forwarding table agrees with the routing table.
RIB (Routing Information Base)
The RIB (routing information base) is the routing table: the best route per prefix from all sources. The router builds the FIB — the CEF table — from it, and forwards with the FIB.
1. show ip route <prefix> — in the RIB, from the intended source?
2. Not there → the protocol database has it? (show ip ospf database, show bgp ipv4 unicast <prefix>)
3. In the protocol but not the RIB → another source with lower distance, or a longer prefix.
4. show ip cef <prefix> — FIB matches the RIB?
5. Not → next-hop resolution (recursive route or ARP).
Inspect show ip cef <prefix> detail.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show ip routeShow Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
show ip routeShowIPv4 RIB routes and selected next hops.
Use when: Use at the Network Troubleshooting, Ping, Traceroute and Debugging boundary after prerequisite state is verified.
Quick note: Operational guidance. One successful probe does not prove all sources, packet sizes, protocols, directions or times are healthy.
Cisco IOS XE · mixedshow ip route <prefix>ReferenceDisplay the route the router uses for a destination or prefix.
Use when: Inspect the exact installed route and next-hop decision.
Quick note: This output proves only its local evidence boundary; continue to the next layer.
Cisco IOS / IOS XE · mixedHow to read the output
show ip routeLook first: route source/code, prefix, next hop, outgoing interface
Healthy: Expected prefix is installed with intended next hop/source.
Warning: Route absent, unexpected protocol/AD/metric, recursive next hop or wrong exit.
Does not prove: RIB presence does not prove FIB programming or packet delivery.
show ip route <prefix>Look first: route source/code, prefix, next hop, outgoing interface
Healthy: Expected prefix is installed with intended next hop/source.
Warning: Route absent, unexpected protocol/AD/metric, recursive next hop or wrong exit.
Does not prove: RIB presence does not prove FIB programming or packet delivery.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Assuming a route in a protocol table is in the RIB.
- Ignoring RIB-failure markers.
Step 2 Branching troubleshooting Narrow the fault
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
ReferenceWhat it is1 section · depth on demand
What it is
The Routing Information Base (RIB) is the local routing-table decision state. Routing protocols, connected networks and static routes contribute candidates; the router installs the selected route(s) for each prefix.
Trace this Topic using stable identifiers through interface/link → protocol or neighbor state → RIB/control state → FIB/adjacency → packet/return path.
ReferenceWhy it matters1 section · depth on demand
Overview
The RIB (Routing Information Base) is the routing table the control plane builds: it collects routes from connected interfaces, static configuration and routing protocols, and keeps only the best route per prefix based on administrative distance and metric. The FIB (Forwarding Information Base) is a copy optimised for forwarding, built from the RIB and combined with the adjacency table that holds the Layer 2 rewrite information for each next hop. With CEF, packets are forwarded using the FIB, not the RIB.
| Table | Built by | Command |
|---|---|---|
| Protocol databases | OSPF, BGP… | show ip ospf database, show bgp |
| RIB | Route selection | show ip route |
| FIB | CEF from the RIB | show ip cef |
| Adjacency | ARP/ND + interfaces | show adjacency detail |
When traffic does not follow show ip route, compare the FIB entry: an incomplete adjacency (missing ARP entry), a hardware programming problem or a recursive next hop can make forwarding differ from what the RIB suggests.
show ip cef 10.50.1.10 detail
show platform software fed switch active ip route 10.50.1.10 ! Catalyst 9000 hardware view
ReferenceImportant terms & boundaries3 sections · depth on demand
Key points
In depth
RIB: the routing information base
The RIB is the routing table: the best route for each prefix after every source has been compared. Cisco's Catalyst 9000 hardware resources technote describes it simply as the routing table shown by show ip route, from which the FIB takes its prefixes.
What feeds the RIB
| Source | Example |
|---|---|
| Connected and local | Interface subnets (C) and addresses (L) |
| Static | ip route |
| Dynamic protocols | OSPF, EIGRP, IS-IS, BGP, RIP |
| Redistribution | Routes moved between protocols |
Selection into the RIB
| Step | Rule |
|---|---|
| Same prefix and length from different sources | Lowest administrative distance wins |
| Same source, several paths | Protocol metric; equal paths installed together |
| Different lengths | All installed; longest match applies at forwarding |
R1# show ip route summary
IP routing table name is default (0x0)
Route Source Networks Subnets Replicates Overhead Memory (bytes)
connected 0 6 0 576 1824
static 1 3 0 384 1216
ospf 1 0 14 0 1344 4256
bgp 65010 2 5 0 672 2128
Total 3 28 0 2976 9424
R1# show ip route vrf *
R1# show ip route 10.60.0.0 longer-prefixes
Protocol databases versus the RIB
| Database | Holds |
|---|---|
| OSPF LSDB | Topology for SPF |
| EIGRP topology table | Successors and feasible successors |
| BGP table | All received paths, with the best path marked |
| RIB | Only the winning route per prefix |
A route can exist in a protocol database but not in the RIB, because another source has a better distance.
VRFs
Each VRF has its own RIB; show ip route vrf * (one of the commands in the technote) shows them all. Hardware usage on switches must count all VRFs.
Documented example, not captured output.
Mechanics
The responsible chain spans routing control plane, policy, RIB/FIB programming and next-hop resolution.
Keep desired configuration, negotiated/control-plane state, installed RIB/FIB or forwarding state, counters/telemetry and end-to-end packet behavior as separate facts. Follow the path in order: underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Configuration & expected output
Concrete examples are shown only when the stored reference contains an actual configuration or output shape for this Topic.
Expected output
show ip route 10.20.0.0 255.255.255.0Expected state: One installed source with its distance, metric and next hop.
Routing entry for 10.20.0.0/24
Known via "ospf 1", distance 110, metric 20, type intra area
Last update from 10.0.12.2 on GigabitEthernet0/0, 00:12:41 ago
Routing Descriptor Blocks:
* 10.0.12.2, from 2.2.2.2, 00:12:41 ago, via GigabitEthernet0/0
Route metric is 20, traffic share count is 1
! Illustrative output, not captured Evidence.OSPF owns this prefix (distance 110). If a static route for the same prefix were configured it would replace this entry, because distance 1 beats 110 — regardless of metric.Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Routing → RIB / FIB / CEF → RIB. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.