cc/td/doc/product/software/ios120/12supdoc/12cmdsum
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

Cisco Express Forwarding Commands

Cisco Express Forwarding Commands

This chapter describes the function and displays the syntax for commands used to configure Cisco Express Forwarding. For more information about defaults and usage guidelines, see the corresponding chapter of the Cisco IOS Switching Services Command Reference.

clear adjacency

To clear the Cisco Express Forwarding (CEF) adjacency table, use the clear adjacency EXEC command.

clear adjacency

clear cef linecard

To clear Cisco Express Forwarding (CEF) information from line cards, use the clear cef linecard EXEC command.

clear cef linecard [slot-number] [adjacency | interface | prefix]

slot-number

(Optional) Line card slot number to clear. When you omit this argument, all line card slots are cleared.

adjacency

(Optional) Clears line card adjacency tables and rebuilds adjacency for the specified line card.

interface

(Optional) Clears line card interface information and re-creates the interface information for the specified line card.

prefix

(Optional) Clears line card prefix tables and starts rebuilding the FIB table.


clear ip cef prefix-statistics

To clear Cisco Express Forwarding (CEF) counters by resetting the packet and byte count to zero (0), use the clear ip cef prefix-statistics EXEC command.

clear ip cef {network [mask] | *} prefix-statistics

network

Clears counters for a FIB entry specified by network.

mask

(Optional) Clears counters for a FIB entry specified by network and mask.

*

Clears counters for all FIB entries.


ip cef

To enable Cisco Express Forwarding (CEF) on the route processor card, use the ip cef global configuration command. To disable CEF, use the no form of this command.

ip cef [distributed]
no ip cef [distributed]

distributed

(Optional) Enables distributed CEF (dCEF) operation. Distributes CEF information to line cards. Line cards perform express forwarding.



ip cef accounting

To enable network accounting of Cisco Express Forwarding (CEF), use the ip cef accounting global configuration command. To disable network accounting of CEF, use the no form of this command.

ip cef accounting [per-prefix] [non-recursive]
no ip cef accounting [per-prefix] [non-recursive]

per-prefix

(Optional) Enables the collection of the number of packets and bytes express forwarded to a destination (or prefix).

non-recursive

(Optional) Enables accounting through non-recursive prefixes. For prefixes with directly connected next hops, enables the collection of the number of packets and bytes express forwarded through a prefix.


ip cef traffic-statistics

To change the time interval that controls when NHRP will set up or tear down an SVC, use the ip  cef traffic-statistics global configuration command. To restore the default values, use the no form of this command.

ip cef traffic-statistics [load-interval seconds] [update-rate seconds]
no ip cef traffic-statistics

load-interval seconds

(Optional) Length of time (in 30-second increments) during which the average trigger-threshold and teardown-threshold are calculated before an SVC setup or teardown action is taken. (These thresholds are configured in the ip nhrp trigger-svc command.) The load-interval range is 30  seconds to 300 seconds, in 30-second increments. The default value is 30 seconds.

update-rate seconds

(Optional) Frequency that the port adapter sends the accounting statistics to the RP. When using NHRP in distributed CEF switching mode, this value must be set to 5 seconds. The default value is 10  seconds.


ip load-sharing

To enable load balancing for Cisco Express Forwarding (CEF), use the ip load-sharing interface configuration command. To disable load balancing for CEF, use the no form of this command.

ip load-sharing [per-packet] [per-destination]
no ip cef [per-packet]

per-packet

(Optional) Enables per-packet load balancing on the interface.

per-destination

(Optional) Enables per-destination load balancing on the interface.


ip route-cache cef

To enable Cisco Express Forwarding (CEF) operation on an interface after CEF operation has been disabled, use the ip route-cache cef interface configuration command. To disable CEF operation on an interface, use the no form of this command.

ip route-cache cef
no ip route-cache cef

show adjacency

To display Cisco Express Forwarding (CEF) adjacency table information, use the show adjacency EXEC command.

show adjacency [detail]

detail

(Optional) Displays detailed adjacency information, including Layer 2 information.



show cef

To display which packets the line cards dropped or to display which packets were not express forwarded, use the show cef EXEC command.

show cef [drop | not-cef-switched]

drop

(Optional) Displays which packets were dropped by each line card.

not-cef-switched

(Optional) Displays which packets were sent to a different switching path.


show cef interface

To display Cisco Express Forwarding (CEF) related interface information, use the show cef interface EXEC command.

show cef interface type number [detail]

type number

Interface type and number about which to display CEF-related information.

detail

(Optional) Displays detailed CEF information for the specified interface type and number.


show cef linecard

To display Cisco Express Forwarding (CEF) related interface information by line card, use the show cef linecard EXEC command.

show cef linecard [slot-number] [detail]

slot-number

(Optional) Slot number containing the line card about which to display CEF-related information. When you omit this argument, information about all line cards is displayed.

detail

(Optional) Displays detailed CEF information for the specified line card.


show ip cef

To display entries in the FIB that are unresolved or to display a summary of the FIB, use this form of the show ip cef EXEC command:

show ip cef [unresolved | summary]
show ip cef [network [mask [longer-prefix]]] [detail]
show ip cef [type number] [detail]

unresolved

(Optional) Displays unresolved FIB entries.

summary

(Optional) Displays a summary of the FIB.

network

(Optional) Displays the FIB entry for the specified destination network.

mask

(Optional) Displays the FIB entry for the specified destination network and mask.

longer-prefix

(Optional) Displays FIB entries for all more specific destinations.

detail

(Optional) Displays detailed FIB entry information.

type number

(Optional) Interface type and number for which to display FIB entries.



hometocprevnextglossaryfeedbacksearchhelp
Posted: Mon Feb 8 13:40:35 PST 1999
Copyright 1989-1999©Cisco Systems Inc.