Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

Bronze

cef and routing table

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
Hall of Fame Super Bronze

Re: cef and routing table

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.

3 REPLIES

Re: cef and routing table

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

Hall of Fame Super Bronze

Re: cef and routing table

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.

Bronze

Re: cef and routing table

Thanks alot Edison for your reply and kind remarks!

275
Views
0
Helpful
3
Replies