Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

CEF (Cisco Express Forwarding)

Direct answer

CEF (Cisco Express Forwarding) is the forwarding table built from the routing table: one entry per prefix with the resolved next hop and a prepared layer-2 rewrite (adjacency). Packets are forwarded from CEF, not from the routing table.

When to use this

Use it when the routing table looks right but traffic is dropped or takes another path.

First 30 seconds

1. show ip route <dst> and show ip cef <dst> — same next hop?

2. Different → normal for a moment after a change; if it persists, clear ip route <dst prefix> rebuilds that entry.

3. Several paths → exact-route for the failing flow.

4. Adjacency incomplete or glean → ARP to the next hop.

5. CEF drop entry → there is no usable route.

Operational verification

routing table updated → CEF entry rebuilt → next hop resolved recursively → adjacency complete → flow hashed to a path → packet rewritten and sent

Evidence · next step

Inspect the route to the recursive next hop, adjacency and ARP/ND.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common problems
  • Routes in the RIB but missing from CEF (show ip cef shows nothing) — check for platform resource exhaustion.
  • CEF disabled on an interface, forcing process switching.
  • Load sharing per-destination causing uneven link use.
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 cef <prefix>
Scope / prerequisiteUse it when the routing table looks right but traffic is dropped or takes another path.
Reference · 2
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 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.

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

Check that CEF agrees with the routing table. With several equal paths, CEF picks per flow by a hash — exact-route tells which. An incomplete or glean adjacency means the next hop's MAC address is not yet known.

Key checks
  • show ip cef <dst> — the entry and next hop used.
  • show ip cef <dst> detail — recursion and all paths.
  • show ip cef exact-route <src> <dst> — the path for one flow.
  • show adjacency <interface> detail — layer-2 rewrite per next hop.
  • show ip cef summary — overall state.
ReferenceWhat it is1 section · depth on demand

How it works

CEF (Cisco Express Forwarding) builds the FIB from the RIB and an adjacency table from ARP/ND, and forwards packets with one lookup — in software on routers, or programmed into hardware on switches. Packets CEF cannot handle are punted to the CPU.

ReferenceImportant terms & boundaries3 sections · depth on demand

Key points

  • show ip cef <prefix> is closer to data-plane evidence than show ip route
  • CEF can expose resolved next hops, attached/receive/drop/punt-style outcomes and recursive dependencies depending on platform/output
  • CEF state is still local evidence, but it does not show the downstream or return path works.

In depth

Reading CEF instead of the routing table

R1# show ip cef 10.20.0.0/24 detail
10.20.0.0/24, epoch 2
  nexthop 10.1.12.2 GigabitEthernet0/0/1
  nexthop 10.1.13.2 GigabitEthernet0/0/2

Two next hops mean load sharing. Which path a given flow uses is decided per source/destination pair, and can be predicted:

R1# show ip cef exact-route 10.1.1.10 10.20.0.25
10.1.1.10 -> 10.20.0.25 =>IP adj out of GigabitEthernet0/0/2, addr 10.1.13.2

That is the command to use when one user complains and another on the same subnet does not.

Entry and adjacency types worth recognising

Shown asMeaningForwarding result
attachedDirectly connected prefixUses glean until ARP resolves each host
receiveAddress owned by the routerPunted to the CPU
drop / Null0Discard route (summary, blackhole)Packets dropped in hardware
gleanConnected subnet, host not yet resolvedPunt to resolve ARP
puntFeature needs the CPUSoftware switched
incomplete adjacencyARP/ND for the next hop failedDropped; counted as encapsulation failure

Useful health checks

CommandWhat to look for
show ip cef summaryPrefix count roughly equal to show ip route summary
show cef dropIncreasing Encap_fail → unresolved adjacencies
show adjacency summaryCount of incomplete adjacencies
show ip cef 10.20.0.0 255.255.255.0 internalPath list and output chain (platform detail)

On hardware switches the software FIB is programmed into TCAM; a prefix can be correct in show ip cef and still missing in hardware when resources are exhausted, so platform-specific FIB commands are the final proof.

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.

CEF entry types

OutputMeaning
nexthop x.x.x.x Gi0/0/1Normal forwarding
attachedDirectly connected subnet
receiveAddress on this router (to the CPU)
gleanNo ARP/ND entry yet
drop / Null0Discard
puntSoftware switching

show ip cef <prefix> detail and show ip cef exact-route <src> <dst> show which entry and path a packet uses.

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 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 → CEF. 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
Cisco Express Forwardingshow ip cef
Confirmation

Confirm action

Continue?