32-69
Cisco ME 3400 EthernetAccess Switch SoftwareConfiguration Guide
78-17058-01
Chapter32 Configuring IP Unicast Routing Configuring Protocol-Independent Features
Configuring Protocol-Independent Features
This section describes how to configure IP routing protocol-independent features. For a complete
description of the IP routing protocol-independent commands in t his c hapt er, see the “I P Ro uti ng
Protocol-Independent Commands” chapter of the Cisco IOS IP Command Re ference, Volume 2 of 3:
Routing Protocols, Release 12.2.
These sections contain this configuration information:
Configuring Cisco Express Forwarding, page 32-69
Configuring the Number of Equal-Cost Routing Paths, page 32-70
Configuring Static Unicast Routes, page 32-71
Specifying Default Routes and Networks, page 32-72
Using Route Maps to Redistribute Routing Information, page 32-73
Configuring Policy-Based Routing, page 32-76
Filtering Routing Information, page 32-79
Managing Authentication Keys, page 32-82

Configuring Cisco Express Forwarding

Cisco Express Forwarding (CEF) is a Layer 3 IP switching technology us ed t o optim ize net work
performance. CEF implements an advanced IP look-up and forwarding algorithm to deliver maximum
Layer 3 switching performance. CEF is less CPU-intensive than fast switching route caching, allowing
more CPU processing power to be dedicated to packet forwarding. In dyna mic networks, fast switching
cache entries are frequently invalidated beca use of ro uting chang es, which can cause tr aff ic to b e process
switched using the routing table, instead of fast switched using the route cache. CEF use the Forwarding
Information Base (FIB) lookup table to perform destination-based swi tching o f I P p ackets.
The two main components in CEF are the distributed FIB and the distributed adjacency tables.
The FIB is similar to a routing table or information base and maintains a mirror image of the
forwarding information in the IP routing table. When ro uti ng or to po logy ch ange s oc cur i n th e
network, the IP routing table is updated, and those changes are reflected in the FIB. The FIB
maintains next-hop address information based on the information in the IP routing table. Because
the FIB contains all known routes that exist in the routing table, CEF eliminates route cache
maintenance, is more efficient for switching traffic, and is not affected by traffic patterns.
Nodes in the network are said to be adjacent if they can reach each other wit h a single hop across a
link layer. CEF uses adjacency tables to prepend Layer 2 addressing information. The adjacency
table maintains Layer 2 next-hop addresses for all FIB entries.
Because the switch uses Application Specific Integrated Circuits (A SICs) to ac hieve Gigabit-speed line
rate IP traffic, CEF forwarding applies only to the software-forwarding path, that is, traffic that is
forwarded by the CPU.
CEF is enabled globally by default. If for some reason it is disabled, you can re-enable it by using the ip
cef global configuration command.
The default configuration is CEF enabled on all Layer 3 interfaces. Ent e ring the no ip route-cache cef
interface configuration command disables CEF for traffic that is being forwarded by software. This
command does not affect the hardware forwarding path. Disablin g C EF and using the debug ip packet