Use it when the routing table looks right but traffic is dropped or takes another path.
CEF (Cisco Express Forwarding)
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.
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.
routing table updated → CEF entry rebuilt → next hop resolved recursively → adjacency complete → flow hashed to a path → packet rewritten and sent
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
Operational reference
Fast context before you go deeper.
show ip cef <prefix>Show Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
show ip cef <prefix>ReferenceCEF/FIB forwarding resolution for a prefix.
Use when: Inspect CEF/FIB forwarding resolution for a prefix.
Quick note: This output proves only its local evidence boundary; continue to the next layer.
Cisco IOS XE · mixedshow ip cef <prefix> detailReferenceInspect detailed CEF recursion/forwarding state.
Use when: Inspect detailed CEF recursion/forwarding state.
Quick note: This output proves only its local evidence boundary; continue to the next layer.
Cisco IOS / IOS XE · mixedHow 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> detailLook 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 · 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.
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.
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 thanshow 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 as | Meaning | Forwarding result |
|---|---|---|
attached | Directly connected prefix | Uses glean until ARP resolves each host |
receive | Address owned by the router | Punted to the CPU |
drop / Null0 | Discard route (summary, blackhole) | Packets dropped in hardware |
glean | Connected subnet, host not yet resolved | Punt to resolve ARP |
punt | Feature needs the CPU | Software switched |
incomplete adjacency | ARP/ND for the next hop failed | Dropped; counted as encapsulation failure |
Useful health checks
| Command | What to look for |
|---|---|
show ip cef summary | Prefix count roughly equal to show ip route summary |
show cef drop | Increasing Encap_fail → unresolved adjacencies |
show adjacency summary | Count of incomplete adjacencies |
show ip cef 10.20.0.0 255.255.255.0 internal | Path 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.
CEF entry types
| Output | Meaning |
|---|---|
nexthop x.x.x.x Gi0/0/1 | Normal forwarding |
attached | Directly connected subnet |
receive | Address on this router (to the CPU) |
glean | No ARP/ND entry yet |
drop / Null0 | Discard |
punt | Software switching |
show ip cef <prefix> detail and show ip cef exact-route <src> <dst> show which entry and path a packet uses.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
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 → 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%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.