Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

RIB (Routing Information Base)

Direct answer

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.

First 30 seconds

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).

Operational verification

protocols and static routes offer candidates → best per prefix enters the RIB → next hop resolved → FIB (CEF) entry built with adjacency → packets forwarded

Evidence · next step

Inspect show ip cef <prefix> detail.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE · Cisco IOS XE
Key commandshow ip route
Scope / prerequisiteUse it to check which source owns a prefix, and whether the forwarding table agrees with the routing table.
Show · 1Reference · 1
What next?3 suggested next steps
Catalog command links2
Evidence1
On this pageJump to a specific section
Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

How to read the output

show ip route

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.

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.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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

Concrete boundaries: physical/interface → protocol/classification → learned/selected state → RIB/MAC/policy result → FIB/adjacency/hardware state → packet → return/application.

Step 3 Where it fails Narrow the fault

Walk underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path and stop where observed state diverges.

Evidence references

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.

command output · 1
Command lookup Jump straight to Cisco syntax
Key points

Each routing protocol has its own database; only the winner per prefix enters the RIB. The RIB holds next hops that may be recursive; the FIB holds them resolved to an interface and adjacency. A route in the RIB that is missing from CEF points to a resolution problem.

Key checks
  • show ip route <prefix> — the RIB entry and its source.
  • show ip route summary — routes per source and memory.
  • show ip cef <prefix> detail — the FIB entry.
  • show ip cef summary — the FIB as a whole.
  • show ip protocols — what each protocol offers.
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.

TableBuilt byCommand
Protocol databasesOSPF, BGP…show ip ospf database, show bgp
RIBRoute selectionshow ip route
FIBCEF from the RIBshow ip cef
AdjacencyARP/ND + interfacesshow 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

  • show ip route is RIB evidence
  • Protocol-specific topology/database state can contain routes that do not win the RIB
  • A route source code identifies the installed source, not end-to-end reachability
  • ECMP can install multiple equal-cost next hops when the protocol and platform allow it.

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

SourceExample
Connected and localInterface subnets (C) and addresses (L)
Staticip route
Dynamic protocolsOSPF, EIGRP, IS-IS, BGP, RIP
RedistributionRoutes moved between protocols

Selection into the RIB

StepRule
Same prefix and length from different sourcesLowest administrative distance wins
Same source, several pathsProtocol metric; equal paths installed together
Different lengthsAll 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

DatabaseHolds
OSPF LSDBTopology for SPF
EIGRP topology tableSuccessors and feasible successors
BGP tableAll received paths, with the best path marked
RIBOnly 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical examples

Configuration & expected output

Concrete examples are shown only when the stored reference contains an actual configuration or output shape for this Topic.

Expected output

Cisco IOS / IOS XEshow ip route 10.20.0.0 255.255.255.0

Expected 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.
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

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%
Terminology layer

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.

Aliases that resolve here
routing information baserouting table
Confirmation

Confirm action

Continue?