Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

CEF & Forwarding Adjacencies

Direct answer

Cisco forwarding information base, recursive resolution and adjacency state.

When to use this

Use it when you need a fast explanation, a state check or a troubleshooting path for CEF & Forwarding Adjacencies.

First 30 seconds

1. CEF forwards from the FIB and the adjacency table, both built from the RIB and ARP/ND.

2. A route in the RIB without a FIB entry is not forwarded.

3. Incomplete adjacency means missing ARP/ND.

4. Load sharing is per-destination by default.

5. Use exact-route to see which link a flow uses.

Operational verification

RIB route → FIB entry → adjacency (L2 rewrite) → packet forwarded

Evidence · next step

Inspect adjacency/ARP and then send a controlled packet while checking policy and return routing.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common interpretation traps
  • "The route is in the routing table, so packets are forwarded." Only if the CEF entry resolves to a complete adjacency. An incomplete adjacency means the next hop does not answer ARP.
  • "Traffic to this destination uses both equal paths." One conversation uses one path; exact-route shows which.
  • "Traceroute shows the path my application takes." With several equal paths, different flows — and traceroute's own probes — can take different ones.
  • "A drop adjacency is a fault." A route to Null0 is meant to discard.
  • "Glean means something is wrong." It is the normal entry for a connected subnet; individual hosts get their own entries as they are resolved.
  • "Ping from the router tests forwarding." Packets the router originates are handled differently from packets it forwards; test from a host behind it as well.
  • "CEF and the routing table can be checked interchangeably." They normally agree, but when they do not, forwarding follows CEF.
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 · IOS/IOS XE
Key commandshow ip cef <prefix>
Scope / prerequisiteUse it when you need a fast explanation, a state check or a troubleshooting path for CEF & Forwarding Adjacencies.
Show · 3Reference · 3
What next?3 suggested next steps
Catalog command links6
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 cef <prefix>

Look first: prefix adjacency/next hop and egress interface

Healthy: CEF resolves the prefix to the intended adjacency.

Warning: Drop/punt/unresolved adjacency or unexpected egress.

Does not prove: A CEF entry does not prove downstream reachability or return path.

show ip cef <prefix> detail

Look first: prefix adjacency/next hop and egress interface

Healthy: CEF resolves the prefix to the intended adjacency.

Warning: Drop/punt/unresolved adjacency or unexpected egress.

Does not prove: A CEF entry does not prove downstream reachability or return path.

show ip cef [prefix]

Look first: prefix adjacency/next hop and egress interface

Healthy: CEF resolves the prefix to the intended adjacency.

Warning: Drop/punt/unresolved adjacency or unexpected egress.

Does not prove: A CEF entry does not prove downstream reachability or return path.

show ip cef <prefix> [detail]

Look first: prefix adjacency/next hop and egress interface

Healthy: CEF resolves the prefix to the intended adjacency.

Warning: Drop/punt/unresolved adjacency or unexpected egress.

Does not prove: A CEF entry does not prove downstream reachability or return path.

Operational workflow

Verification & Troubleshooting

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

1 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 Operational verification Verify boundary
show ip cef 10.20.0.50
show ip cef 10.20.0.0/24 detail
show ip cef exact-route 10.1.1.10 10.20.0.50
show adjacency GigabitEthernet0/0 detail
show ip cef summary

show ip cef <address> gives the matching prefix, the resolved next hop and the outgoing interface. The detail view adds the recursion and the load-sharing information. exact-route tells which of several equal paths a specific source and destination pair uses. show adjacency … detail shows the next hops on an interface with their Layer 2 headers and whether they are complete. The summary confirms CEF is running and how many prefixes it holds.

Known-good: the destination resolves to the expected next hop and interface, and that next hop's adjacency is complete.

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.

other · 1
Command lookup Jump straight to Cisco syntax
Key points

Cisco forwarding information base, recursive resolution and adjacency state.

Start from observed state and expected behavior. A single healthy value proves only that boundary; continue until the failing boundary is isolated.

Key checks
  • show ip cef <prefix> detail — FIB entry and next hop
  • show adjacency <interface> detail — Layer 2 rewrite
  • show ip cef exact-route <src> <dst> — path chosen for one flow
ReferenceWhat it is1 section · depth on demand

Mental model

Cisco Express Forwarding (CEF) is how a Cisco router actually forwards packets. From the routing table and the ARP table it builds two optimised tables in advance, so that each packet needs only a single lookup to find its outgoing interface and the Layer 2 header to put on it.

ReferenceWhy it matters1 section · depth on demand

Why it matters operationally

The routing table says what the router intends; CEF shows what it does. When a route looks correct and traffic still fails, the CEF entry and its adjacency reveal whether the next hop was fully resolved — and for paths with several equal next hops, CEF is what decides which one a given flow takes.

ReferenceHow it works1 section · depth on demand

How it works

Two tables.

Each FIB entry points to an adjacency. Forwarding a packet means: find the longest matching FIB entry, follow the pointer, prepend the header, send.

Kept current. When the routing table or the ARP table changes, the affected entries are updated at once. No packet has to wait for a lookup to be worked out.

Adjacency types explain what will happen to a packet:

TypeMeaning
Valid (complete)Header known; the packet is forwarded
IncompleteThe MAC address of the next hop is not known yet; ARP has not been answered
GleanThe destination is on a directly connected network; the router must ARP for the host itself
ReceiveThe address belongs to the router; the packet goes to its own CPU
Null / dropThe route points to Null0, or the packet cannot be forwarded; it is discarded
PuntThe packet needs handling that CEF cannot do and is passed to the CPU

Several next hops. When a prefix has equal-cost paths, CEF chooses per flow by hashing source and destination addresses, so that all packets of one conversation take the same path and stay in order. Different conversations spread across the paths.

CEF is on by default. On hardware-forwarding platforms the same tables are programmed into the forwarding chips.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

CEF entries and forwarding adjacencies

CEF forwards using two tables built from the routing table. Cisco's CEF overview describes them:

Special adjacencies handle exceptions:

  • Null: dropped.
  • Glean: a connected host that isn't resolved yet.
  • Punt: sent to the CPU.
  • Discard or drop: dropped.

An unresolved adjacency sends traffic to the route processor until ARP completes.

CEF verification commands

CommandAnswers
show ip cef <prefix>Which next hops and interfaces the FIB uses
show ip cef <prefix> detailRecursion, labels, load-sharing details
show ip cef exact-route <src> <dst>Which path one particular flow takes
show adjacency <int> detailThe Layer 2 rewrite and its packet counters
show ip cef summaryFIB size and state
show cef drop / show ip cef switching statisticsWhy CEF dropped or punted packets

What each FIB result means

OutputMeaning
nexthop 10.0.12.2 GigabitEthernet0/0/1Normal forwarding
attached to Vlan110A connected network; host adjacencies resolved by ARP
gleanThe host isn't resolved yet; the next packet triggers ARP
drop / discardPackets are dropped, as with Null0 or a missing adjacency
receiveThe address belongs to the router itself
puntHandled in software
R1# show ip cef 10.20.0.50 detail
10.20.0.0/24, epoch 2, per-destination sharing
  nexthop 10.0.12.2 GigabitEthernet0/0/1
  nexthop 10.0.13.3 GigabitEthernet0/0/2
R1# show ip cef exact-route 10.1.1.10 10.20.0.50
10.1.1.10 -> 10.20.0.50 =>IP adj out of GigabitEthernet0/0/1, addr 10.0.12.2
R1# show adjacency GigabitEthernet0/0/1 detail | include 10.0.12.2|packets|bytes|epoch
R1# show ip cef 10.255.0.1
10.255.0.1/32
  receive for Loopback0
R1# show ip cef switching statistics | include Drop|Punt|Total

When RIB and FIB disagree

If show ip route and show ip cef give different next hops, suspect a programming or synchronisation issue. That is especially likely on distributed platforms. Collect both outputs and the CEF consistency checker results (show ip cef inconsistency) before clearing anything.

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.

How it works

CEF builds two tables from the routing table: the FIB (one entry per prefix, with recursion already resolved) and the adjacency table (the Layer 2 rewrite — destination MAC — for each next hop). Packets are switched by a FIB lookup plus adjacency rewrite, without involving the route processor. A route in the RIB but a missing or incomplete adjacency (no ARP entry) means traffic is dropped or punted.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
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 & Forwarding → CEF & Forwarding Adjacencies. 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%
Confirmation

Confirm action

Continue?