CEF Show And Troubleshooting Commands
Here are a couple of commands for viewing and troubleshooting CEF.
Cisco Express Forwarding Commands
By default, Cisco Express Forwarding and Fast Switching are enabled.
(config-if)#no ip route-cache | This command disables both Fast Switching and CEF. |
(config-if)#ip route-cache | This command enables Fast Switching only. Cisco Express Forwarding is still disabled if we don’t activate it. |

(config-if)# ip route-cache cef | activates Cisco Express Forwarding under the interface |

# show platform tcam utilization | displays TCAM limits and actual utilization |

# debug ip cef table | This command monitors changes on the Cisco Express Forwarding adjacency table. |
Let’s run the debug command on a multilayer switch:

We list ARP entries:

If we remove one entry from ARP table with clear ip arp {IP address}:

We can see that there’s a change in the Cisco Express Forwarding adjacency table. Indeed, there’s one ARP entry that’s missing:

Now, if we issue a ping from the host whose IP address is 20.1.1.2 to its gateway (SVI on the switch), we ‘ll see another Cisco Express Forwarding debug message appearing on the console interface:

And a new ARP entry is written in the ARP cache:

You’ll find theory details on CEF in this link.
Comments
Post a Comment