Pcornel
Networking · Routing › RIB / FIB / CEF

Adjacency

Cheat sheet · https://pcornel.dk/topic.php?topic=2608

Back to the Topic

Answer

A CEF adjacency represents the local next-hop rewrite/egress information used once the FIB lookup resolves to a directly connected forwarding action.

Remember

  • ARP/ND commonly supplies neighbor resolution for ordinary directly connected IP next hops
  • Incomplete/unresolved neighbor state can stop ordinary forwarding even when the route is installed
  • Special CEF adjacency types can intentionally punt, receive or drop traffic; interpret them in platform context
  • A resolved local adjacency does not prove the far end returns traffic.

First checks

  • show adjacency <interface> detail — encapsulation string
  • show ip arp <next-hop> — ARP for next hop
  • show ip cef <prefix> detail — adjacency used

Commands

show ip arp
IPv4 ARP cache mappings.
show adjacency
Inspect CEF adjacency state.
show adjacency detail
Inspect adjacency rewrite and detailed resolution state.
clear ip arp
clear adjacency
show ip route 10.20.0.0
show ip arp 10.1.12.2
show ip cef adjacency GigabitEthernet0/0/1 10.1.12.2 detail
show cef drop
debug arp

Verify in this order

next hop → ARP/ND → adjacency → L2 rewrite

Where it usually breaks

underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2608

Confirmation

Confirm action

Continue?