Use it when you need a fast explanation, a state check or a troubleshooting path for CEF & Forwarding Adjacencies.
CEF & Forwarding Adjacencies
Cisco forwarding information base, recursive resolution and adjacency state.
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
- "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-routeshows 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.
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 · mixedshow ip cef [prefix]ShowInspect FIB/CEF forwarding entries.
Use when: Compare RIB and forwarding state.
IOS/IOS XE · mixed · verifiesshow adjacency [detail]ShowInspect CEF adjacency resolution.
Use when: Troubleshoot forwarding resolution.
IOS/IOS XE · mixed · verifiesshow ip cef <prefix> [detail]ReferenceDisplay CEF/FIB resolution.
Cisco IOS XE · mixedshow ip arp [address]ShowDisplay IPv4 ARP adjacency cache.
Cisco 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.
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.
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 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 · 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.
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.
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.
- The FIB (forwarding information base) has an entry for every prefix in the routing table, with the next hop already fully resolved — recursion is done once, when the entry is built, not per packet.
- The adjacency table has an entry for every next hop: the outgoing interface and the complete Layer 2 header, with the MAC address learned through ARP or neighbour discovery.
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:
| Type | Meaning |
|---|---|
| Valid (complete) | Header known; the packet is forwarded |
| Incomplete | The MAC address of the next hop is not known yet; ARP has not been answered |
| Glean | The destination is on a directly connected network; the router must ARP for the host itself |
| Receive | The address belongs to the router; the packet goes to its own CPU |
| Null / drop | The route points to Null0, or the packet cannot be forwarded; it is discarded |
| Punt | The 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:
- FIB: has one entry for each routing table entry and is updated as routing changes.
- Adjacency table: holds each next hop's outgoing interface and Layer 2 rewrite, learned from ARP or routing neighbours.
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
| Command | Answers |
|---|---|
show ip cef <prefix> | Which next hops and interfaces the FIB uses |
show ip cef <prefix> detail | Recursion, labels, load-sharing details |
show ip cef exact-route <src> <dst> | Which path one particular flow takes |
show adjacency <int> detail | The Layer 2 rewrite and its packet counters |
show ip cef summary | FIB size and state |
show cef drop / show ip cef switching statistics | Why CEF dropped or punted packets |
What each FIB result means
| Output | Meaning |
|---|---|
nexthop 10.0.12.2 GigabitEthernet0/0/1 | Normal forwarding |
attached to Vlan110 | A connected network; host adjacencies resolved by ARP |
glean | The host isn't resolved yet; the next packet triggers ARP |
drop / discard | Packets are dropped, as with Null0 or a missing adjacency |
receive | The address belongs to the router itself |
punt | Handled 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.
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
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 & 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%