FIB (Forwarding Information Base)
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.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
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 Verification path Verify boundary
Step 2 Common mistakes Narrow the fault
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 · 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.
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 type | Meaning |
|---|---|
| attached | Directly connected |
| glean | Needs ARP for the host |
| drop/null | Discard |
| punt | Sent 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
| Entry | Example | Action |
|---|---|---|
| Remote prefix | 10.60.0.0/16 via 10.0.12.2 | Forward to that adjacency |
| Connected subnet | 10.10.0.0/24 attached | Resolve the host via ARP (glean) |
| Host entry | 10.10.0.25/32 | Forward directly to the host's MAC |
| Receive | 10.0.12.1/32 | Deliver to the router's CPU |
| Drop / Null0 | 10.40.0.0/16 Null0 | Discard |
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)
| Point | Detail |
|---|---|
| /32 routes and ARP entries | Exact-match hash memory |
| /31 and shorter | Longest-prefix-match memory |
| UADP 3.0 | EM and LPM in one optimised memory; TCAM for overflow and exceptions |
| Overflow | EM 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.
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.
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
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 cef 10.20.0.0/24 detailExpected 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.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 → 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%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.