Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

FIB (Forwarding Information Base)

Direct answer

The Forwarding Information Base (FIB) is the forwarding-oriented prefix structure derived from selected routing state. It is optimized for packet lookup rather than protocol decision making.

When to use this

Use FIB evidence after the RIB is correct to verify that the selected route became usable forwarding state.

First 30 seconds

1. show ip cef <addr> — the entry hardware/CEF actually uses.

2. RIB and FIB should match; if not, check CEF errors.

3. On hardware switches also check platform/TCAM programming.

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 · IOS/IOS XE
Scope / prerequisiteUse FIB evidence after the RIB is correct to verify that the selected route became usable forwarding state.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
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 Verification path Verify boundary

Exercise one safe negative or boundary case implied by adjacency/session stuck state, missing candidate, policy filter, attribute/metric surprise, redistribution feedback, unresolved next hop, FIB mismatch or asymmetric return path.

Step 2 Common mistakes Narrow the fault
  • RIB and FIB out of sync after errors, not checked.
  • Ignoring hardware programming limits on switches.
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.

Common failure classes are adjacency/session stuck state, missing candidate, policy filter, attribute/metric surprise, redistribution feedback, unresolved next hop, FIB mismatch or asymmetric return path.

Change only the responsible layer. If the fault is link/optics, fix link/optics; if negotiation or adjacency, fix that prerequisite; if policy, inspect the exact matching rule; if FIB/adjacency, show recursion and neighbor resolution. Avoid broad clears or restarts that destroy useful evidence.

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points
  • FIB and RIB serve different planes/purposes
  • The FIB contains forwarding action/next-hop resolution derived from the selected route
  • A correct RIB does not guarantee a resolved adjacency
  • Hardware forwarding details can be platform-specific even when the CEF model is the same.
Key checks

show ip cef <prefix> detail → next hop and outgoing interface after recursion. show adjacency <interface> detail → the layer-2 rewrite exists. show ip cef <prefix> showing drop, receive or glean instead of a next hop is itself the answer.

ReferenceWhy it matters1 section · depth on demand

Overview

The FIB (Forwarding Information Base) is CEF's forwarding table, built from the RIB with recursive next hops already resolved. Each entry points to an adjacency containing the outgoing interface and the Layer 2 rewrite. Hardware platforms program the FIB into TCAM.

show ip cef summary
show ip cef 10.60.0.10 detail
show ip cef exact-route 10.20.0.15 10.60.0.10
show adjacency Gi0/1 detail

Documented example, not captured output.

FIB entry typeMeaning
attachedDirectly connected
gleanNeeds ARP for the host
drop/nullDiscard
puntSent to CPU
ReferenceImportant terms & boundaries3 sections · depth on demand

Key points

  • FIB and RIB serve different planes/purposes
  • The FIB contains forwarding action/next-hop resolution derived from the selected route
  • A correct RIB does not guarantee a resolved adjacency
  • Hardware forwarding details can be platform-specific even when the CEF model is the same.

Trace this Topic using stable identifiers through interface/link → protocol or neighbor state → RIB/control state → FIB/adjacency → packet/return path.

In depth

FIB: the forwarding information base

The FIB is the table the router actually forwards from. Cisco's Catalyst 9000 hardware resources technote describes it as a simplified table holding prefixes from the RIB and ARP tables, each with a pointer to the adjacency (ADJ) table, which stores the next-hop rewrite information.

FIB entry types

EntryExampleAction
Remote prefix10.60.0.0/16 via 10.0.12.2Forward to that adjacency
Connected subnet10.10.0.0/24 attachedResolve the host via ARP (glean)
Host entry10.10.0.25/32Forward directly to the host's MAC
Receive10.0.12.1/32Deliver to the router's CPU
Drop / Null010.40.0.0/16 Null0Discard
R1# show ip cef summary
IPv4 CEF is enabled for distributed and running
VRF Default
 46 prefixes (46/0 fwd/non-fwd)
R1# show ip cef 10.10.0.0 255.255.255.0 detail
10.10.0.0/24, epoch 2, flags [attached, connected]
  attached to GigabitEthernet0/0/2
R1# show ip cef 10.40.0.0/16
10.40.0.0/16
  attached to Null0
SW1# show platform hardware fed switch active fwd-asic resource utilization

Hardware FIB on Catalyst 9000 (technote)

PointDetail
/32 routes and ARP entriesExact-match hash memory
/31 and shorterLongest-prefix-match memory
UADP 3.0EM and LPM in one optimised memory; TCAM for overflow and exceptions
OverflowEM can overflow into TCAM; TCAM doesn't overflow into EM

When the FIB is full (technote)

Existing prefixes often keep working while new or changed prefixes aren't programmed, with log messages such as "Failed to allocate hardware resource for fib entry"; adjacency exhaustion has its own message. Remedies include summarising routes, reducing directly connected hosts, removing unneeded mask lengths, or choosing a different SDM template.

FIB versus RIB

The RIB says which route is best; the FIB holds the resolved result. A difference between them points to programming issues, so compare show ip route, show ip cef and the hardware tables.

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.

Important negative cases include adjacency/session stuck state, missing candidate, policy filter, attribute/metric surprise, redistribution feedback, unresolved next hop, FIB mismatch or asymmetric return path.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
ReferenceConfiguration & state1 section · depth on demand

Lifecycle

Interface state, neighbor discovery, routing adjacencies, policy distribution, controller synchronization and FIB programming can converge at different times.

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 cef 10.20.0.0/24 detail

Expected state: A next hop and interface — not drop or glean.

10.20.0.0/24, epoch 2
  nexthop 10.0.12.2 GigabitEthernet0/0
! Illustrative output, not captured Evidence.
Packets for this prefix are sent to 10.0.12.2 out of Gi0/0. `glean` would mean the router still has to ARP for the next hop; `drop` or `Null0` that the traffic is discarded.
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 → FIB. 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
forwarding information baseforwarding table
Confirmation

Confirm action

Continue?