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

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

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member


Which document has a detailed explain of CEF? Does CEF contain each host address like fast switch?

  • Other Network Infrastructure Subjects


But I think the best explanation of CEF available is the one in Inside Cisco IOS Software Architecture, on Cisco Press. That book is being rewritten currently, by the way, to include more information and different platforms. It'll take about a year, I think, for it to hit the market.

Now, to the specific question at hand: The fast cache would build out a /32 entry under numerous circumstances:

1. If there are multiple paths to the same destination installed in the routing table. is reachable via x is reachable via y

2. If the subnet is directly connected, the fast cache will build out /32's for each host which it actually switches traffic to within the subnet. is connected....

3. If you had a /32 contained within a given section of the tree (think block of ip addresses), every adress within that block would be built as a /32. So, for instance, if you had this: is subnetted is reachable via x is reachable via y

Actually, this rule is a little more confusing than the fast cache building out a /32, it would build out to the longest length subnet mask within the block.

CEF still builds out /32's in the case of directly connected hosts, as in the case of is directly connected. CEF also continues to build out to the longest length within any given block, so it would still build /32's for the last case (and even here, the rules are different, resulting in fewer CEF table entries than you would have fast cache entries, and there are some other differences). But CEF doesn't build out to /32's for the first case, load sharing.

Hope that helps...