cisco — How to Configure Cisco Express Forwarding

How to Configure Cisco Express Forwarding CEF or distributed CEF is enabled globally by default. If for some reason it is disabled, you can re-enable it by using the ip cef or ip cef distributed global configuration command. Procedure Protocol-Independent Features How to Configure Cisco Express Forwarding Command or Action Purpose Step 1 configure terminal Example: Device# configure terminal Enters global configuration mode. Step 2 ip cef Example: Device(config)# ip cef Enables CEF operation on a non-stacking switch. Go to Step 4. Step 3 ip cef distributed Example: Device(config)# ip cef distributed Enables CEF operation on a active switch. Step 4 interface interface-id Example:

Device(config)# interface gigabitethernet 1/0/1 Enters interface configuration mode, and specifies the Layer 3 interface to configure. Step 5 ip route-cache cef Example: Device(config-if)# ip route-cache cef Enables CEF on the interface for software-forwarded traffic. Note The ip route-cache cef command is enabled by default and it cannot be disabled. Step 6 end Example: Device(config-if)# end Returns to privileged EXEC mode. Step 7 show ip cef Example: Device# show ip cef Displays the CEF status on all interfaces. Protocol-Independent Features 3