cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
578
Views
0
Helpful
3
Replies

cef and routing table

sarahr202
Level 5
Level 5

hi every body!

I read that routing table is copied into fib in CEF.

let say routing table has following entry

s 10.10.10.0 via 11.11.11.0

D 11.11.11.0 via 199.199.199.0 s0.

My question is if this entry is also present in fib, would switch cef- switch a packet destined to 10.10.10.1 or packet would be forwarded to layer 3 engine(essentiaaly router)?

thanks alot!

1 Accepted Solution

Accepted Solutions

Edison Ortiz
Hall of Fame
Hall of Fame

It will be CEF-Switched as well but it's a recursive route.

Rack1R4#sh run | i ip route

ip route 10.10.10.1 255.255.255.255 31.3.0.1

Rack1R4#sh ip route | i 31.3.0.0

R 31.3.0.0 [120/5] via 148.1.0.3, 00:00:00, Serial0/0.401

Rack1R4#sh ip cef 10.10.10.1

10.10.10.1/32, version 97, epoch 0, cached adjacency to Serial0/0.401

0 packets, 0 bytes

via 31.3.0.1, 0 dependencies, recursive

next hop 148.1.0.3, Serial0/0.401 via 31.3.0.0/16

Rack1R4#sh ip cef 31.3.0.1

31.3.0.0/16, version 31, epoch 0, cached adjacency to Serial0/0.401

0 packets, 0 bytes

via 148.1.0.3, Serial0/0.401, 0 dependencies

next hop 148.1.0.3, Serial0/0.401

valid cached adjacency

Excellent question, Sarah !

__

Edison.

View solution in original post

3 Replies 3

royalblues
Level 10
Level 10

The CEF FIB table is built with the help of routing table. It holds the next-hop information.

In addition CEF also builts a adjacency table which holds the necessary layer 2 information (encap, mac-address etc) which would be required for sending the packet using that route.

Hence when a packet arrives, the FIB is used to check the next-hop information and then using the adjacency table the L2 packet rewrite is performed and the packet is forwarded.

HTH

Narayan

Narayan

Edison Ortiz
Hall of Fame
Hall of Fame

It will be CEF-Switched as well but it's a recursive route.

Rack1R4#sh run | i ip route

ip route 10.10.10.1 255.255.255.255 31.3.0.1

Rack1R4#sh ip route | i 31.3.0.0

R 31.3.0.0 [120/5] via 148.1.0.3, 00:00:00, Serial0/0.401

Rack1R4#sh ip cef 10.10.10.1

10.10.10.1/32, version 97, epoch 0, cached adjacency to Serial0/0.401

0 packets, 0 bytes

via 31.3.0.1, 0 dependencies, recursive

next hop 148.1.0.3, Serial0/0.401 via 31.3.0.0/16

Rack1R4#sh ip cef 31.3.0.1

31.3.0.0/16, version 31, epoch 0, cached adjacency to Serial0/0.401

0 packets, 0 bytes

via 148.1.0.3, Serial0/0.401, 0 dependencies

next hop 148.1.0.3, Serial0/0.401

valid cached adjacency

Excellent question, Sarah !

__

Edison.

Thanks alot Edison for your reply and kind remarks!

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card