I have 2950t switch and it has 1 vlan.
right now i have this under vlan 1
no ip route-cache
my question is should i enable it under vlan1 or not?
what are its advantages?
Nice reply. Please allow me to add a correction, though.
The route cache allows outgoing packets to be load-balanced on a per-destination basis rather than on a per-packet basis.
This is not the main point of using the route cache. The primary function of a route cache is to speed up the routing table lookup by storing the result of the routing and header rewrite lookup for a packet into a cache organized for very fast lookups. For all subsequent packets going to the same destination, the results from the cache are used instead of looking them up again and again in the routing table and in the Layer3-to-Layer2 mapping tables, such as ARP or IP/DLCI maps. The load balancing may or may not be involved, and the per-destination load balancing is only a side effect of using the route cache.
The ip route-cache command is used on devices that perform routing to activate a so-called route cache (or Fast Switching) that speeds up the routing process by storing the result of routing table lookup in a cache, thereby improving the lookup time for subsequent packets going the same way. To deactivate the route cache on an interface, the no ip route-cache command is used.
Obviously, the Catalyst 2950T does not have routing capabilities. The command no ip route-cache on the Vlan interface is there actually because the IOS is not performing any routing operations nor it has the support for that. I don't think that the command can be even removed from the Vlan interface. Simply put, it is a fixed command that results from the way the IOS for the 2950 series is built.
You might want to read more about the Fast Switching and other switching methods here: