IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T
2M&T
Cisco Systems, Inc. 170 West Tasman Drive San Jose, CA 95134-1706 USA http://www.cisco.com Tel: 408 526-4000 800 553-NETS (6387) Fax: 408 527-0883
Americas Headquarters
THE SPECIFICATIONS AND INFORMATION REGARDING THE PRODUCTS IN THIS MANUAL ARE SUBJECT TO CHANGE WITHOUT NOTICE. ALL STATEMENTS, INFORMATION, AND RECOMMENDATIONS IN THIS MANUAL ARE BELIEVED TO BE ACCURATE BUT ARE PRESENTED WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. USERS MUST TAKE FULL RESPONSIBILITY FOR THEIR APPLICATION OF ANY PRODUCTS. THE SOFTWARE LICENSE AND LIMITED WARRANTY FOR THE ACCOMPANYING PRODUCT ARE SET FORTH IN THE INFORMATION PACKET THAT SHIPPED WITH THE PRODUCT AND ARE INCORPORATED HEREIN BY THIS REFERENCE. IF YOU ARE UNABLE TO LOCATE THE SOFTWARE LICENSE OR LIMITED WARRANTY, CONTACT YOUR CISCO REPRESENTATIVE FOR A COPY. The Cisco implementation of TCP header compression is an adaptation of a program developed by the University of California, Berkeley (UCB) as part of UCBs public domain version of the UNIX operating system. All rights reserved. Copyright 1981, Regents of the University of California. NOTWITHSTANDING ANY OTHER WARRANTY HEREIN, ALL DOCUMENT FILES AND SOFTWARE OF THESE SUPPLIERS ARE PROVIDED AS IS WITH ALL FAULTS. CISCO AND THE ABOVE-NAMED SUPPLIERS DISCLAIM ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, THOSE OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OR ARISING FROM A COURSE OF DEALING, USAGE, OR TRADE PRACTICE. IN NO EVENT SHALL CISCO OR ITS SUPPLIERS BE LIABLE FOR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, OR INCIDENTAL DAMAGES, INCLUDING, WITHOUT LIMITATION, LOST PROFITS OR LOSS OR DAMAGE TO DATA ARISING OUT OF THE USE OR INABILITY TO USE THIS MANUAL, EVEN IF CISCO OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1110R) Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental. 2012 Cisco Systems, Inc. All rights reserved.
CONTENTS
CEF Overview 1 Finding Feature Information 1 Information About CEF 1 Cisco Platform Support for Central CEF and dCEF 2 Cisco Express Forwarding Benefits 2 Media Supported by CEF 3 Main Components of CEF 3 FIB Overview 4 CEF FIB and Load Balancing 4 CEF Adjacency Tables Overview 4 Adjacency Discovery 4 Adjacency Types That Require Special Handling 5 Unresolved Adjacency 5 Central CEF Mode Operation 5 Distributed CEF Mode Operation 6 CEF Features Enabled by Default 7 CEF Distributed Tunnel Switching 8 CEF-Switched Multipoint GRE Tunnels 8 Links for the CEF Features 8 How to Configure CEF 9 Configuration Examples for CEF 9 Where to Go Next 9 Additional References 9 Feature Information for CEF 11 Glossary 12 Configuring Basic Cisco Express Forwarding 15 Finding Feature Information 15 Prerequisites for Cisco Express Forwarding 15 Restrictions for Cisco Express Forwarding 16
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T iii
Contents
Information About Cisco Express Forwarding 16 Cisco Platform Support for CEF and dCEF 16 Cisco Express Forwarding Benefits 17 Main Components for CEF Operation 17 CEF Operation Modes Central and Distributed 17 Central Cisco Express Forwarding Mode Operation 18 Distributed Cisco Express Forwarding Mode Operation 18 How to Configure Basic Cisco Express Forwarding 19 How to Verify Basic Cisco Express Forwarding 20 Determining How the Router Is Configured 20 What to Do Next 21 Verifying Cisco Express Forwarding Operation 21 Verifying That Cisco Express Forwarding Switching Is Enabled 21 Locating the Prefix in a Forwarding Table on the RP 23 Finding the Cisco Express Forwarding Output Information 24 Verifying the Adjacency or Next-Hop Information 26 Verifying Distributed Cisco Express Forwarding Operation 28 Cisco Express Forwarding Command Syntax on Line Cards 28 Verifying That dCEF Switching Is Enabled 28 Locating the Prefix in a Forwarding Table on a Line Card 29 Finding the Distributed Cisco Express Forwarding Output Information 31 Verifying the Adjacency or Next-Hop Information on a Line Card 33 Interpreting Cisco Express Forwarding Command Output 35 Verifying That CEF Information Looks As Expected 35 Interpreting MPLS Information in CEF Output 38 Configuration Examples for Basic CEF 40 Where to Go Next 40 Additional References 40 Feature Information for Basic CEF 42 Glossary 42 Enabling or Disabling CEF or dCEF 45 Finding Feature Information 45 Prerequisites for Enabling or Disabling CEF or dCEF 45 Restrictions for Enabling or Disabling CEF or dCEF 45 Information About Enabling or Disabling CEF or dCEF 46
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T iv
Contents
Cisco Platform Support for Central CEF and dCEF 46 When to Enable or Disable Central CEF on a Router 47 When to Enable dCEF on a Line Card 47 When to Enable or Disable CEF on an Interface 47 How to Enable or Disable Central CEF or dCEF 48 Enabling or Disabling CEF or dCEF on a Router 48 Enabling or Disabling CEF or dCEF on an Interface 50 Configuration Examples for Central CEF or dCEF 52 Example Enabling or Disabling CEF or dCEF on a Router 53 Example Enabling or Disabling Central CEF or dCEF on an Interface 53 Additional References 54 Feature Information for Enabling or Disabling CEF or dCEF 56 Glossary 57 Configuring a Load-Balancing Scheme 59 Finding Feature Information 59 Prerequisites for a Load-Balancing Scheme 59 Restrictions for a Load-Balancing Scheme 60 Information About a Load-Balancing Scheme 60 Cisco Platform Support for Central CEF and dCEF 60 CEF Load-Balancing Overview 60 Per-Destination Load Balancing 61 Per-Packet Load Balancing 61 Load-Balancing Algorithms 61 How to Configure a Load-Balancing Scheme 62 Enabling or Disabling Per-Destination Load Balancing 62 Configuring Per-Packet Load Balancing 64 Selecting a Tunnel Load-Balancing Algorithm 65 Selecting an Include-Ports Layer 4 Load-Balancing Algorithm 66 Configuration Examples for a Load-Balancing Scheme 68 Example Enabling or Disabling Per-Destination Load Balancing 68 Example Configuring Per-Packet Load Balancing 68 Example Selecting a Tunnel Load-Balancing Algorithm 69 Example Selecting an Include-Ports Layer 4 Load-Balancing Algorithm 69 Additional References 69 Feature Information for a Load-Balancing Scheme 71
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T v
Contents
Glossary 72 Configuring Epochs 73 Finding Feature Information 73 Prerequisites for Epochs for CEF Tables 73 Information About About Epochs for CEF Tables 73 Cisco Platform Support for Central CEF and dCEF 74 Nonstop Forwarding Enhanced FIB Refresh 74 Epoch Numbering for CEF FIB and Adjacency Tables 75 Epoch Synchronization Between the RP and Line Cards 75 Epoch Numbering for Routers That Support HA 75 When to Refresh the CEF or Adjacency Tables 76 How to Configure Epochs 76 Incrementing the Epoch Number of the Adjacency Table 76 Incrementing the Epoch Number of One or All CEF Tables 77 Verifying Epoch Information 78 Configuration Examples for Epochs 80 Example Incrementing the Epoch Number of the Adjacency Table 80 Example Incrementing the Epoch Number of One or All CEF Tables 81 Additional References 81 Feature Information for Configuring Epochs 83 Glossary 83 Configuring CEF Consistency Checkers 85 Finding Feature Information 85 Prerequisites for CEF Consistency Checkers 85 Restrictions for CEF Consistency Checkers 86 Information About CEF Consistency Checkers 86 Cisco Platform Support for CEF and dCEF 86 CEF Consistency Checker Types 86 How to Configure CEF Consistency Checkers 88 Enabling CEF Consistency Checkers 88 Displaying and Clearing Table Inconsistencies 90 Configuration Examples for CEF Consistency Checkers 92 Example Enabling CEF Consistency Checkers 92 Additional References 92 Feature Information for CEF Consistency Checkers 94
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T vi
Contents
Glossary 94 Configuring CEF Network Accounting 97 Finding Feature Information 97 Prerequisites for CEF Network Accounting 97 Information About CEF Network Accounting 98 Cisco Platform Support for Central CEF and dCEF 98 Traffic Matrix Statistics 99 TMS and CEF Nonrecursive Accounting 99 How Backbone Routers Collect TMS 100 TMS Viewing Options 102 TMS Displayed with the NDA Display Module 102 Nonrecursive Accounting Information Displayed 104 Statistics in the timestats File 104 Statistics in the tmsasinfo File 107 How to Configure CEF Network Accounting 108 Configuring CEF Network Accounting 108 Enabling a Backbone Router to Collect TMS 109 Using the CLI to Enable a Backbone Router to Collect TMS 110 Enabling the NDA to Collect TMS on a Backbone Router 112 Interpreting the tmstats File 114 Viewing Information in the tmsasinfo File 115 Verifying CEF Network Accounting Information 116 Configuration Examples for CEF Network Accounting 117 Example Configuring CEF Network Accounting 117 Example Enabling a Backbone Router to Collect TMS Data 118 Example IP CEF Nonrecursive Accounting 118 Example Interpreting the tmstats_ascii File 119 Additional References 119 Feature Information for CEF Network Accounting 121 Glossary 121 Customizing the Display of Recorded CEF Events 123 Finding Feature Information 123 Prerequisites for the Display of Recorded CEF Events 124 Restrictions for the Display of Recorded CEF Events 124 Information About the Display of Recorded CEF Events 124
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T vii
Contents
Cisco Platform Support for Central CEF and dCEF 124 CEF Event Log Overview 124 How to Customize the Display of Recorded CEF Events 125 Customizing CEF Event Logging 125 Displaying CEF Event-Log Information 126 Configuration Examples for the Display of Recorded CEF Events 128 Example Customizing CEF Event Logging 128 Additional References 128 Feature Information for the Display of Recorded CEF Events 130 Glossary 130 Customizing the Display of CEF Event Trace Messages 133 Finding Feature Information 133 Prerequisites for the Display of CEF Event Trace Messages 134 Restrictions for the Display of CEF Event Trace Messages 134 Information About the Display of CEF Event Trace Messages 134 Cisco Platform Support for Central CEF and dCEF 134 Overview of CEF Event Trace Function 135 CEF Event Tracing Defaults and Options 135 CEF Event Tracing for IPv4 Events 135 CEF Event Tracing for IPv6 Events 136 How to Customize the Display of CEF Event Trace Messages 136 Customizing CEF Event Tracing 136 Customizing CEF Event Tracing for IPv4 Events 139 Customizing CEF Event Tracing for IPv6 Events 142 Displaying CEF Event Trace Information 145 Configuration Examples for the Display of CEF Event Trace Messages 149 Example Customizing CEF Event Tracing 149 Example Customizing CEF Event Tracing for IPv4 Events 150 Example Customizing CEF Event Tracing for IPv6 Events 150 Additional References 151 Feature Information for the Display of CEF Event Trace Messages 152 Glossary 153 SNMP CEF-MIB Support 155 Finding Feature Information 155 Prerequisites for SNMP CEF-MIB Support 155
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T viii
Contents
Information About SNMP CEF-MIB Support 156 CEF Functional Overview 156 Benefits of CISCO-CEF-MIB 156 Information Managed by the CISCO-CEF-MIB 157 CISCO-CEF-MIB Object Groups 157 CISCO-CEF-MIB Tables 158 Operations Available Through the CISCO-CEF-MIB 160 CISCO-CEF-MIB Notifications 168 How to Configure SNMP CEF-MIB Support 169 Configuring the Router to Use SNMP 169 Configuring a Host to Receive Notifications 172 Configuring SNMP Notifications with the CLI 175 Configuring SNMP Notifications with SNMP Commands 177 Configuring the Throttling Interval with the CLI 179 Configuring the Throttling Interval using SNMP Commands 180 Configuration Examples for SNMP CEF-MIB Support 181 Example Configuring a Host to Receive Notifications 181 Example Configuring SNMP Notifications 182 Example Configuring the Throttling Interval 182 Additional References 183 Feature Information for SNMP CEF-MIB Support 184 Glossary 185 Cisco Express Forwarding Command Changes 187 Finding Feature Information 187 Information About Command Changes 187 Deleted Commands 187 Replaced Commands 188 Additional References 189 Feature Information for Cisco Express Forwarding Command Changes 190 CEF Enhancements 193 Finding Feature Information 193 Information About CEF 193 Introduction of CEF Enhancements 194 CEF Enhancements Described 195 Removal of Support for IPv4 Fast Switching 195
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T ix
Contents
CEF Command Changes 196 CEF show Command Output Changes 197 show ip cef summary 198 show ipv6 cef summary 199 show ip cef internal 200 show ipv6 cef internal 201 show ip cef detail 202 show ipv6 cef detail 203 show ip cef internal 204 show ipv6 cef internal 204 show ip cef 205 show ip cef exact-route detail 205 show ip cef exact-route 206 show ip cef adjacency 206 show adjacency summary 207 show adjacency detail 207 show adjacency internal 208 show cef state 209 show cef timers 210 show ip cef epoch 211 show ipv6 cef epoch 211 show ip cef unresolved detail 212 show ipv6 cef unresolved detail 212 show ipv6 cef non-recursive 213 New Commands for the CEF Feature 213 show adjacency link 214 show adjacency 214 show adjacency detail 214 show cef tree 215 test cef table consistency detail 215 Unchanged CEF show Commands 216 Additional References 216 Feature Information for CEF Enhancements 217 Glossary 219 IPv6 CEF-Switched Tunnels 221
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T x
Contents
Finding Feature Information 221 Information About IPv6 CEF-Switched Tunnels 221 IPv6 Manually Configured Tunnels 221 Additional References 221 Feature Information for IPv6 CEF-Switched Tunnels 222
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T xi
Contents
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T xii
CEF Overview
This module contains an overview of the Cisco Express Forwarding feature. Cisco Express Forwarding is an advanced Layer 3 IP switching technology. It optimizes network performance and scalability for all kinds of networks: those that carry small amounts of traffic and those that carry large amounts of traffic in complex patterns, such as the Internet and networks characterized by intensive web-based applications or interactive sessions. Finding Feature Information, page 1 Information About CEF, page 1 How to Configure CEF, page 9 Configuration Examples for CEF, page 9 Where to Go Next, page 9 Additional References, page 9 Feature Information for CEF, page 11 Glossary, page 12
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 1
Cisco Platform Support for Central CEF and dCEF Information About CEF
If Cisco Express Forwarding is not enabled on your platform, the output for the show ip cefcommand looks like this:
Router# show ip cef %CEF not running
Distributed Cisco Express Forwarding is enabled by default on the Catalyst 6500 series switch, the Cisco 7500 series router, and the Cisco 12000 Series Internet Router. When distributed Cisco Express Forwarding is enabled on your platform, the line cards perform the express forwarding. If Cisco Express Forwarding is not enabled on your platform, use the ip cefcommand to enable (central) Cisco Express Forwarding or the ip cef distributed command to enable distributed Cisco Express Forwarding.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 2
You can use Cisco Express Forwarding in any part of a network. For example, the figure below shows Cisco Express Forwarding being run on routers at aggregation points at the core of a network where traffic levels are high and performance is critical.
Figure 1 Cisco Express Forwarding Example
CEF
CEF
CEF
CEF
Cisco Express Forwarding in platforms at the network core provides the performance and scalability that networks need to respond to continued growth and steadily increasing network traffic. Cisco Express Forwarding is a distributed switching mechanism that scales linearly with the number of interface cards and the bandwidth installed in the router.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 3
127956
Adjacency tables maintain Layer 2 next-hop addresses for all FIB entries. For more information, see the CEF Adjacency Tables Overview, page 4. This separation of the reachability information (in the Cisco Express Forwarding table) and the forwarding information (in the adjacency table), provides a number of benefits: The adjacency table can be built separately from the Cisco Express Forwarding table, allowing both to be built without any packets being process switched. The MAC header rewrite used to forward a packet is not stored in cache entries, so changes in a MAC header rewrite string do not require invalidation of cache entries.
FIB Overview
Cisco Express Forwarding uses a FIB to make IP destination prefix-based switching decisions. The FIB contains the prefixes from the IP routing table structured in a way that is optimized for forwarding. When routing or topology changes occur in the 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 there is a one-to-one correlation between FIB entries and routing table entries, the FIB contains all known routes and eliminates the need for the route cache maintenance that is associated with switching paths such as those used in fast switching and optimum switching. CEF FIB and Load Balancing, page 4
Adjacency Discovery
Each adjacency table is populated as adjacencies are discovered. Adjacencies are added to the table either through indirect manual configuration or dynamically--discovered through a mechanism like Address Resolution Protocol (ARP) or added through the use of a routing protocol, such as Border Gateway Protocol (BGP) or Open Shortest Path First (OSPF), which forms neighbor relationships. Each time an adjacency entry is created, a link-layer header for that adjacent node is computed and stored in the adjacency table.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 4
Central CEF Mode Operation Adjacency Types That Require Special Handling
The adjacency information is subsequently used for encapsulation during Cisco Express Forwarding switching of packets.
Receive This Processing Packets destined for a Null0 interface are dropped. Null adjacency can be used as an effective form of access filtering. When a router is connected to a multiaccess medium, the FIB table on the router maintains a prefix for the subnet rather than for the individual host prefixes. The subnet prefix points to a glean adjacency. A glean adjacency entry indicates that a particular next hop should be directly connected, but there is no MAC header rewrite information available. When the router needs to forward packets to a specific host on a subnet, Cisco Express Forwarding requests an ARP entry for the specific prefix, ARP sends the MAC address, and the adjacency entry for the host is built. The router forwards packets that require special handling or packets sent by features that are not yet supported in conjunction with Cisco Express Forwarding switching paths to the next higher switching level for handling. The router discards the packets. The router drops the packets.
Glean adjacency
Punt adjacency
Unresolved Adjacency
When a link-layer header is prepended to a packet, the FIB requires the prepended header to point to an adjacency corresponding to the next hop. If an adjacency was created by the FIB and not discovered through a mechanism such as ARP, the Layer 2 addressing information is not known and the adjacency is considered incomplete or unresolved. Once the Layer 2 information is known, the packet is forwarded to the RP, and the adjacency is determined through ARP. Thus, the adjacency is resolved.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 5
Forwarding switching, or when you are running on a nondistributed platform. When central Cisco Express Forwarding mode is enabled, the Cisco Express Forwarding FIB and adjacency tables reside on the RP, and the RP performs the express forwarding. The figure below shows the relationship between the routing table, the FIB, and the adjacency table during central Cisco Express Forwarding mode operation. The Catalyst switches forward traffic from workgroup LANs to a Cisco 7500 series router on the enterprise backbone running central Cisco Express Forwarding. The RP performs the express forwarding.
Figure 2
Cisco 7500 series router running CEF Routing table
Interface card E1 E2
Interface card E1 E2
S6783
Workgroup LAN
Workgroup LAN
Workgroup LAN
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 6
The figure below shows the relationship between the RP and line cards when distributed Cisco Express Forwarding mode is active.
Figure 3 Distributed Cisco Express Forwarding Mode Operation
Cisco 12000 Series Internet Router running distributed CEF Route Processor Routing table FIB table Adjacency table
IPC
FE
T3
FDDI
In the Cisco 12000 Series Internet Router, shown in the figure above, the line cards perform the switching. In other routers where you can mix various types of cards in the same router, all cards might not support distributed Cisco Express Forwarding. When a line card that does not support distributed Cisco Express Forwarding receives a packet on one of these other routers, the line card forwards the packet to the next higher switching layer (the RP). This structure allows legacy interface processors to exist in the router with newer interface processors.
Note
The Cisco 12000 Series Internet routers operate only in distributed Cisco Express Forwarding mode.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 7
For Information on This Feature... Configuring and verifying basic Cisco Express Forwarding operation Enabling or disabling Cisco Express Forwarding or distributed Cisco Express Forwarding switching and forwarding Changing your load-balancing scheme Refreshing or rebuilding adjacency or Cisco Express Forwarding tables
See the Following Document... Configuring Basic Cisco Express Forwarding for Improved Performance, Scalability, and Resiliency in Dynamic Networks Enabling or Disabling Cisco Express Forwarding or Distributed Cisco Express Forwarding to Customize Switching and Forwarding for Dynamic Networks Configuring a Load-Balancing Scheme for Cisco Express Forwarding Traffic Configuring Epochs to Clear and Rebuild Cisco Express Forwarding and Adjacency Tables
Configuring Cisco Express Forwarding consistency Configuring Cisco Express Forwarding Consistency checkers Checkers for Route Processors and Line Cards Configuring network accounting for Cisco Express Forwarding Customizing the display of recorded Cisco Express Forwarding events Configuring Cisco Express Forwarding Network Accounting Customizing the Display of Recorded Cisco Express Forwarding Events
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 8
Where to Go Next
See the "Related Documents" section for links to configuration information for Cisco Express Forwarding features and services.
Additional References
Related Documents Related Topic Cisco IOS commands IP switching commands: complete command syntax, command modes, command history, defaults, usage guidelines, and examples. Tasks for verifying Cisco Express Forwarding information on your router Tasks for enabling or disabling Cisco Express Forwarding or distributed Cisco Express Forwarding Tasks for configuring a load-balancing scheme for Cisco Express Forwarding Tasks for configuring Cisco Express Forwarding consistency checkers Tasks for configuring epochs for Cisco Express Forwarding tables Document Title Cisco IOS Master Commands List, All Releases Cisco IOS IP Switching Command Reference
Configuring Basic Cisco Express Forwarding for Improved Performance, Scalability, and Resiliency in Dynamic Networks Enabling or Disabling Cisco Express Forwarding or Distributed Cisco Express Forwarding to Customize Switching and Forwarding for Dynamic Networks Configuring a Load-Balancing Scheme for Cisco Express Forwarding Traffic Configuring Cisco Express Forwarding Consistency Checkers for Route Processors and Line Cards Configuring Epochs to Clear and Rebuild Cisco Express Forwarding and Adjacency Tables
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 9
Related Topic Tasks for configuring and verifying Cisco Express Forwarding network accounting
Tasks for customizing the display of recorded Cisco Customizing the Display of Recorded Cisco Express Forwarding events Express Forwarding Events Verification steps for Cisco Express Forwarding switching http://www.cisco.com/en/US/products/sw/iosswrel/ ps1828/products_tech_ note09186a00801e1e46.shtml How to Verify Cisco Express Forwarding Switching http://www.cisco.com/en/US/tech/tk827/tk831/ technologies_tech_note09186a0080094303.shtml Troubleshooting Incomplete Adjacencies with CEF Troubleshooting Prefix Inconsistencies with Cisco Express Forwarding Troubleshooting Cisco Express Forwarding Routing Loops Troubleshooting Cisco Express Forwarding-Related Error Messages
Description and use of the Cisco Express Forwarding consistency checkers available for the Cisco 7500 and 12000 series routers Information about troubleshooting Cisco Express Forwarding routing loops and suboptimal routing Causes of common Cisco Express Forwardingrelated error messages on platforms running distributed Cisco Express Forwarding switching (Cisco 7500 series routers and Cisco 12000 Series Internet routers) and how to troubleshoot them Explanation of and troubleshooting information for the Cisco IOS software implementation of Layer 3 load balancing across multiple parallel links when Cisco Express Forwarding is used Troubleshooting guide for unicast IP routing on Catalyst 6500/6000 switches with Supervisor Engine 2, Policy Feature Card 2 (PFC2), or Multilayer Switch Feature Card 2 (MSFC2)
Troubleshooting Load Balancing Over Parallel Links Using Cisco Express Forwarding
Troubleshoot Unicast IP Routing Involving CEF on Catalyst 6500/6000 Series Switches with a Supervisor Engine 2 and Running CatOS System Software
QoS features that require Cisco Express Forwarding When Is CEF Required for Quality of Service Standards Standard Title
No new or modified standards are supported by this -feature, and support for existing standards has not been modified by this feature.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 10
MIBs MIB No new or modified MIBs are supported by this feature, and support for existing MIBs has not been modified by this feature. MIBs Link To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL: http://www.cisco.com/go/mibs RFCs RFC RFC 1701 RFC 2784 RFC 2890 Technical Assistance Description The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password. Link http://www.cisco.com/cisco/web/support/ index.html Title Generic Route Encapsulation (GRE) Generic Routing Encapsulation (GRE) Key and Sequence Number Extensions to GRE
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 11
Table 3
Releases 12.2(8)T
Feature Configuration Information This feature enables Cisco Express Forwarding switching of IP traffic to and from multipoint GRE tunnels. Prior to the introduction of this feature, only process switching was available for multipoint GRE tunnels. This feature was introduced on Cisco ASR 1000 Series Routers. This feature was integrated into Cisco IOS Release 15.0(1)S.
Glossary
adjacency --A relationship formed between selected neighboring routers and end nodes for the purpose of exchanging routing information. Adjacency is based upon the use of a common media segment by the routers and nodes involved. Cisco Express Forwarding --A Layer 3 switching technology. Cisco Express Forwarding can also refer to central Cisco Express Forwarding mode, one of two modes of Cisco Express Forwarding operation. Cisco Express Forwarding enables a Route Processor to perform express forwarding. Distributed Cisco Express Forwarding is the other mode of Cisco Express Forwarding operation. distributed Cisco Express Forwarding --A mode of Cisco Express Forwarding operation in which line cards (such as Versatile Interface Processor (VIP) line cards) maintain identical copies of the forwarding information base (FIB) and adjacency tables. The line cards perform the express forwarding between port adapters; this relieves the Route Switch Processor of involvement in the switching operation. FIB --forwarding information base. A component of Cisco Express Forwarding that is conceptually similar to a routing table or information base. The router uses the FIB lookup table to make destination-based switching decisions during Cisco Express Forwarding operation. The router maintains a mirror image of the forwarding information in an IP routing table. GRE --generic routing encapsulation. A tunneling protocol developed by Cisco that enables encapsulation of a wide variety of protocol packet types inside IP tunnels, creating a virtual point-to-point link to Cisco routers at remote points over an IP internetwork. By connecting multiprotocol subnetworks in a singleprotocol backbone environment, IP tunneling using GRE allows the expansion of a network across a singleprotocol backbone environment. IPC --interprocess communication. The mechanism that enables the distribution of Cisco Express Forwarding tables from the Route Switch Processor (RSP) to the line card when the router is operating in distributed Cisco Express Forwarding mode. label disposition --The removal of Multiprotocol Label Switching (MPLS) headers at the edge of a network. In MPLS label disposition, packets arrive on a router as MPLS packets and, with the headers removed, are transmitted as IP packets. label imposition --The action of putting a label on a packet. LER --label edge router. A router that performs label imposition.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 12
CEF Overview
LFIB --label forwarding information base. The data structure used by switching functions to switch labeled packets. LIB --label information base. A database used by a label switch router (LSR) to store labels learned from other LSRs, as well as labels assigned by the local LSR. line card --A general term for an interface processor that can be used in various Cisco products. For example, a Versatile Interface Processor (VIP) is a line card for the Cisco 7500 series router. LSP --label switched path. A sequence of hops (Router 0...Router n). A packet travels from R0 to Rn by means of label switching mechanisms. An LSP can be chosen dynamically, based on normal routing mechanisms, or it can be configured manually. LSR --label switch router. A Layer 3 router that forwards a packet based on the value of a label encapsulated in the packet. MPLS --Multiprotocol Label Switching. An emerging industry standard for the forwarding of packets along the normal routing paths (sometimes called MPLS hop-by-hop forwarding). prefix --The network address portion of an IP address. A prefix is specified by a network and mask and is generally represented in the format network/mask. The mask indicates which bits are the network bits. For example, 1.0.0.0/16 means that the first 16 bits of the IP address are masked, making them the network bits. The remaining bits are the host bits. In this example, the network number is 10.0. RIB --Routing Information Base. A central repository of routes that contains Layer 3 reachability information and destination IP addresses or prefixes. The RIB is also known as the routing table. RP --Route Processor. The processor module in the Cisco 7000 series routers that contains the CPU, system software, and most of the memory components that are used in the router. It is sometimes called a supervisory processor. RSP --Route Switch Processor. The processor module used in the Cisco 7500 series routers that integrates the functions of the Route Processor (RP) and the Switch Processor (SP). SP --Switch Processor. The Cisco 7000-series processor module that acts as the administrator for all CxBus activities. It is sometimes called a CiscoBus controller. VIP --Versatile Interface Processor. An interface card used in Cisco 7000 and Cisco 7500 series routers. The VIP provides multilayer switching and runs Cisco IOS. VPN --Virtual Private Network. A router configuration that enables IP traffic to use tunneling to travel securely over a public TCP/IP network. VRF --A Virtual Private Network (VPN) routing/forwarding instance. A VRF consists of an IP routing table, a derived forwarding table, a set of interfaces that use the forwarding table, and a set of rules and routing protocols that determine what goes into the forwarding table. In general, a VRF includes the routing information that defines a customer VPN site that is attached to a PE router.
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1110R) Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams,
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 13
CEF Overview
and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 14
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 15
Cisco Platform Support for CEF and dCEF Restrictions for Cisco Express Forwarding
Note
Cisco Express Forwarding is supported on interfaces on which IEEE 802.1Q encapsulation has been enabled at the subinterface level. You no longer need to disable CEF operation on interfaces that are using IEEE 802.1Q encapsulation on VLAN subinterfaces. Cisco Platform Support for CEF and dCEF, page 16 Cisco Express Forwarding Benefits, page 17 Main Components for CEF Operation, page 17 CEF Operation Modes Central and Distributed, page 17
If Cisco Express Forwarding is not enabled on your platform, the output for the show ip cefcommand looks like this:
Router# show ip cef %CEF not running
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 16
Distributed Cisco Express Forwarding is enabled by default on the Catalyst 6500 series switch, the Cisco 7500 series router, and the Cisco 12000 Series Internet Router. When distributed Cisco Express Forwarding is enabled on your platform, the line cards perform the express forwarding. If Cisco Express Forwarding is not enabled on your platform, use the ip cefcommand to enable Cisco Express Forwarding or the ip cef distributed command to enable distributed Cisco Express Forwarding.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 17
Configuring Basic Cisco Express Forwarding Central Cisco Express Forwarding Mode Operation
Interface card E1 E2
Interface card E1 E2
S6783
Workgroup LAN
Workgroup LAN
Workgroup LAN
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 18
Configuring Basic Cisco Express Forwarding How to Configure Basic Cisco Express Forwarding
The figure below shows the relationship between the RP and line cards when distributed Cisco Express Forwarding mode is active.
Figure 5 Distributed Cisco Express Forwarding Mode Operation
Cisco 12000 Series Internet Router running distributed CEF Route Processor Routing table FIB table Adjacency table
IPC
FE
T3
FDDI
In the Cisco 12000 Series Internet Router, shown in the figure above, the line cards perform the switching. In other routers, where you can mix various types of cards in the same router, all cards might not support distributed Cisco Express Forwarding. When a line card that does not support distributed Cisco Express Forwarding receives a packet on one of these other routers, the line card forwards the packet to the next higher switching layer (the RP). This structure allows legacy interface processors to exist in the router with newer interface processors.
Note
The Cisco 12000 Series Internet routers operate only in distributed Cisco Express Forwarding mode.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 19
Determining How the Router Is Configured How to Verify Basic Cisco Express Forwarding
SUMMARY STEPS
1. enable 2. show ip interface [type number] [brief] 3. exit
DETAILED STEPS
Command or Action Step 1 enable Purpose Enables privileged EXEC mode.
Example:
Router> enable
Displays the usability status of interfaces configured for IP. The type argument is the interface type. The number argument is the interface number. The brief keyword displays a summary of the usability status information.
Example:
Router# show ip interface
Look for the entry "IP CEF switching enabled" or "IP Distributed CEF switching enabled."
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 20
Example:
Router# exit
What to Do Next
SUMMARY STEPS
1. enable 2. show ip cef 3. show cef interface type number detail 4. show ip interface type number 5. exit
DETAILED STEPS
Step 1
enable Use this command to enable privileged EXEC mode. You can also enter this command in user EXEC mode. Enter your password if prompted. For example:
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 21
Configuring Basic Cisco Express Forwarding Verifying That Cisco Express Forwarding Switching Is Enabled
Example:
Router> enable Router#
Step 2
show ip cef Use this command to verify that Cisco Express Forwarding is enabled globally. For example:
Example:
Router# show ip cef %CEF not running
If Cisco Express Forwarding is not running, use the ip cefcommand to enable Cisco Express Forwarding or the ip cef distributed command to enable distributed Cisco Express Forwarding. When Cisco Express Forwarding or distributed Cisco Express Forwarding is enabled, the show ip cefcommand shows a brief display of all FIB entries. show cef interface type number detail Use this command to verify that Cisco Express Forwarding is enabled on a particular ingress interface. Look for the entry "IP CEF switching enabled." For example:
Step 3
Example:
Router# show cef interface fastethernet 1/0/0 detail FastEthernet1/0/0 is up (if_number 9) Corresponding hwidb fast_if_number 9 Corresponding hwidb firstsw->if_number 9 Internet address is 10.2.61.8/24 ICMP redirects are always sent Per packet load-sharing is disabled IP unicast RPF check is disabled Inbound access list is not set Outbound access list is not set IP policy routing is disabled Hardware idb is FastEthernet1/0/0 Fast switching type 1, interface type 5 IP CEF switching enabled IP Feature Fast switching turbo vector IP Feature CEF switching turbo vector Input fast flags 0x0, Output fast flags 0x0 ifindex 7(7) Slot 1 Slot unit 0 VC -1 Transmit limit accumulator 0x48001A82 (0x48001A82) IP MTU 1500
Step 4
show ip interface type number Use this command to display the Cisco IOS switching methods enabled on an interface. For example:
Example:
router# show ip interface fastethernet 1/0/0 FastEthernet1/0/0 is up, line protocol is up IP IP IP IP IP IP IP fast switching is enabled fast switching on the same interface is enabled Flow switching is disabled CEF switching is enabled Distributed switching is enabled Fast switching turbo vector Normal CEF switching turbo vector
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 22
Configuring Basic Cisco Express Forwarding Locating the Prefix in a Forwarding Table on the RP
IP multicast fast switching is enabled IP multicast distributed fast switching is disabled IP route-cache flags are Fast, Distributed, No CEF
In the above output, the "IP CEF switching is enabled" entry indicates that Cisco Express Forwarding is enabled by default. The "No CEF" IP route-cache flag indicates that Cisco Express Forwarding is disabled because an administrator entered the no ip route-cache cefcommand on this interface. To enable Cisco Express Forwarding on this interface, enter the ip route-cache cef command. Once you do that, the "CEF" flag indicates that Cisco Express Forwarding is running. Step 5 exit Use this command to exit privileged EXEC mode. For example:
Example:
Router# exit Router>
SUMMARY STEPS
1. enable 2. show ip cef 3. show ip cef vrf vrf-name 4. Repeat Step 2 as many times as required to locate the prefix. 5. exit
DETAILED STEPS
Step 1
enable Use this command to enable privileged EXEC mode. You can also enter this command in user EXEC mode. Enter your password if prompted. For example:
Example:
Router> enable Router#
Step 2
show ip cef Use this command to show entries in the FIB and confirm that prefixes are listed in the FIB. For example:
Example:
Router# show ip cef Prefix Next Hop Interface
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 23
Configuring Basic Cisco Express Forwarding Finding the Cisco Express Forwarding Output Information
192.168.100.1 192.168.101.1
FastEthernet1/0/0 FastEthernet6/1
Step 3
show ip cef vrf vrf-name Use this command to locate prefixes in forwarding tables associated with Virtual Private Network (VPN) routing/ forwarding table instances (VRFs). For example, this command shows prefixes in the left-hand column for a VRF named vpn1:
Example:
Router# show ip cef Prefix 0.0.0.0/32 10.1.0.0/8 10.2.0.0/8 10.0.0.0/8 10.0.0.0/32 10.0.0.1/32 10.0.0.2/32 10.255.255.255/32 10.3.0.0/8 10.50.0.0/24 255.255.255.255/32 vrf vpn1 Next Hop receive 10.0.0.1 10.0.0.2 attached receive 10.0.0.1 receive receive 10.0.0.2 receive receive Interface Ethernet1/3 POS6/0 Ethernet1/3 Ethernet1/3 POS6/0
Step 4 Step 5
Repeat Step 2 as many times as required to locate the prefix. If Cisco Express Forwarding is in a VPN, you might need to look at multiple VRFs. exit Use this command to exit privileged EXEC mode. For example:
Example:
Router# exit Router>
SUMMARY STEPS
1. 2. 3. 4. 5. enable show ip cef show ip cef prefix show ip cef prefix detail exit
DETAILED STEPS
Step 1
enable
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 24
Configuring Basic Cisco Express Forwarding Finding the Cisco Express Forwarding Output Information
Use this command to enable privileged EXEC mode. You can also enter this command in user EXEC mode. Enter your password if prompted. For example:
Example:
Router> enable Router#
Step 2
show ip cef Use this command to confirm that the prefix is listed in the FIB. For example:
Example:
router# show ip cef Prefix Next Hop 0.0.0.0/32 receive 192.168.0.0/30 attached 192.168.0.0/32 receive 10.2.61.8/24 192.168.100.1 Interface Serial2/0/0:1 FastEthernet1/0/0
Step 3
show ip cef prefix Use this command to display the prefix entry in the FIB for centralized Cisco Express Forwarding. For example:
Example:
Router# show ip cef 10.2.61.8 255.255.255.0 10.0.0.0/8, version 72, per-destination sharing 0 packets, 0 bytes via 192.168.100.1, 0 dependencies, recursive traffic share 1 next hop 192.168.100.1, FastEthernet1/0/0 via 192.168.100.1/32 valid adjacency via 192.168.101.1, 0 dependencies, recursive traffic share 1 next hop 192.168.101.1, FastEthernet6/1 via 192.168.101.1/32 valid adjacency 0 packets, 0 bytes switched through the prefix
Step 4
show ip cef prefix detail Use this command to show more detail for each of the active paths associated with a destination prefix. For example:
Example:
Router# show ip cef 10.0.0.0 detail 10.0.0.0/8, version 72, per-destination sharing 0 packets, 0 bytes via 192.168.100.1, 0 dependencies, recursive traffic share 1 next hop 192.168.100.1, FastEthernet1/0/0 via 192.168.100.1/32 valid adjacency via 192.168.101.1, 0 dependencies, recursive traffic share 1 next hop 192.168.101.1, FastEthernet6/1 via 192.168.101.1/32 valid adjacency 0 packets, 0 bytes switched through the prefix
Step 5
exit Use this command to exit privileged EXEC mode. For example:
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 25
Configuring Basic Cisco Express Forwarding Verifying the Adjacency or Next-Hop Information
Example:
Router# exit Router>
For more information on adjacencies, see the "Cisco Express Forwarding Overview" module.
SUMMARY STEPS
1. enable 2. show ip cef 3. show adjacency detail 4. show adjacency summary 5. show adjacency type number 6. show ip cef exact-route source-address destination-address 7. exit
DETAILED STEPS
Step 1
enable Use this command to enable privileged EXEC mode. You can also enter this command in user EXEC mode. Enter your password if prompted. For example:
Example:
Router> enable Router#
Step 2
show ip cef Use this command to find the output interface. For example:
Example:
router# show ip cef Prefix Next Hop 0.0.0.0/32 receive 192.168.0.0/30 attached Interface Serial2/0/0:1
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 26
Configuring Basic Cisco Express Forwarding Verifying the Adjacency or Next-Hop Information
192.168.0.0/32 10.2.61.8/24
receive 192.168.100.1
FastEthernet1/0/0
In this example, the output interface for the prefix 10.2.61.8/24 is FastEthernet 1/0/0, and the next hop address is 192.168.100.1. Step 3 show adjacency detail Use this command to display adjacency information, including Layer 2 information. For example:
Example:
Router# show adjacency detail Protocol Interface IP Ethernet1/0/0 Address 10.2.61.8(7) 0 packets, 0 bytes 00107BC30D5C 00500B32D8200800 ARP 02:01:49
The encapsulation string 00107BC30D5C00500B32D8200800 is that of an adjacency used for traffic switched out of a router on an Ethernet link by means of Ethernet II encapsulation. Step 4 show adjacency summary Use this command to display Cisco Express Forwarding adjacency table summary information. For example:
Example:
Router# show adjacency summary Adjacency Table has 1 adjacency Interface Adjacency Count Ethernet1/0/0 1
Step 5
show adjacency type number Use this command to display adjacency information for a particular interface. For example:
Example:
Router# show adjacency fastethernet 2/3 Protocol Interface Address IP FastEthernet2/3 172.20.52.1(3045) IP FastEthernet2/3 172.20.52.22(11)
Step 6
show ip cef exact-route source-address destination-address Use this command to display the exact route for a source-destination IP address pair and verify the next-hop address. For example:
Example:
Router# show ip cef exact-route 10.1.1.1 10.2.61.8 10.1.1.1 -> 10.2.61.8 :FastEthernet1/0/0 (next hop 192.168.100.1)
In this example, the exact route from source address 10.1.1.1 to destination address 10.2.61.8 is through interface Ethernet1/0/0 to next hop address 192.168.100.1. Step 7 exit Use this command to exit privileged EXEC mode. For example:
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 27
Verifying Distributed Cisco Express Forwarding Operation Cisco Express Forwarding Command Syntax on Line Cards
Example:
Router# exit Router>
To perform tasks on a Catalyst 6500 series switch, you use the following syntax: remote command module mod command. For example:
Router# remote command module 2 show ip cef
The tasks in this document apply to the Cisco 7500 series and Cisco 12000 Series Internet routers.
SUMMARY STEPS
1. enable 2. show ip cef 3. execute-on slot slot-number show ip cef prefix 4. exit
DETAILED STEPS
Step 1
enable
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 28
Configuring Basic Cisco Express Forwarding Locating the Prefix in a Forwarding Table on a Line Card
Use this command to enable privileged EXEC mode. You can also enter this command in user EXEC mode. Enter your password if prompted. For example:
Example:
Router> enable Router#
Step 2
show ip cef Use this command to verify that Cisco Express Forwarding is enabled globally. For example:
Example:
Router# show ip cef %CEF not running
If Cisco Express Forwarding is not running, use the ip cefcommand to enable (central) Cisco Express Forwarding or the ip cef distributed command to enable distributed Cisco Express Forwarding. When Cisco Express Forwarding or distributed Cisco Express Forwarding is enabled, the show ip cefcommand shows a brief display of all FIB entries. Step 3 execute-on slot slot-number show ip cef prefix Use this command to verify information about interfaces on a line card. For example:
Example:
Router# execute-on slot 0 show ip cef 192.68.0.0 255.255.255.0 show ip cef 192.68.0.0 255.255.255.0 from slot 0: 192.68.0.0/24, version 19, epoch 0, attached, connected 0 packets, 0 bytes via Ethernet5/0/0, 0 dependencies valid glean adjacency
Step 4
exit Use this command to exit privileged EXEC mode. For example:
Example:
Router# exit Router>
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 29
Configuring Basic Cisco Express Forwarding Locating the Prefix in a Forwarding Table on a Line Card
SUMMARY STEPS
1. enable 2. execute-on slot slot-number show ip cef 3. execute-on all show ip cef vrf vrf-name 4. Repeat Step 2 as many times as required to locate the prefix. 5. show ip cef 6. exit
DETAILED STEPS
Step 1
enable Use this command to enable privileged EXEC mode. You can also enter this command in user EXEC mode. Enter your password if prompted. For example:
Example:
Router> enable Router#
Step 2
execute-on slot slot-number show ip cef Use this command to show entries in the FIB on the line card and confirm that prefixes are listed in the FIB. For example:
Example:
Router# execute-on slot 0 show ip cef show ip cef from slot 0: Prefix Next Hop 0.0.0.0/0 192.168.0.1 0.0.0.0/32 receive 192.168.0.0/24 attached 192.168.0.0/32 receive 192.168.0.1/32 192.168.0.1 192.168.0.141/32 receive 192.168.0.255/32 receive 239.224.0.0/4 drop 239.224.0.0/24 receive 255.255.255.255/32 receive
Step 3
execute-on all show ip cef vrf vrf-name Use this command to locate prefixes in forwarding tables associated with Virtual Private Network (VPN) routing/ forwarding instances (VRFs). For example, this command shows prefixes in the left-hand column for a VRF named vpn1:
Example:
Router# execute-on all show ip cef vrf vpn1 Prefix Next Hop Interface 0.0.0.0/32 receive 10.1.0.0/8 10.0.0.1 Ethernet1/3 10.2.0.0/8 10.0.0.2 POS6/0 10.0.0.0/8 attached Ethernet1/3 10.0.0.0/32 receive
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 30
Configuring Basic Cisco Express Forwarding Finding the Distributed Cisco Express Forwarding Output Information
Ethernet1/3 POS6/0
Step 4 Step 5
Repeat Step 2 as many times as required to locate the prefix. If distributed Cisco Express Forwarding is in a VPN, you might need to look at multiple VRFs. show ip cef Use this command to show entries in the FIB on the RP and to verify that the FIB on the line card is synchronized with the FIB maintained by the router. For example:
Example:
Router# show ip cef Prefix Next Hop [...] 10.2.61.8/24 192.168.100.1 192.168.101.1 [...] Interface FastEthernet1/0/0 FastEthernet6/1
Step 6
Compare the prefixes, next hops, and interfaces in this output with those in the output from Step 1 to verify that FIB on the line card is synchronized with the FIB maintained by the router. exit Use this command to exit privileged EXEC mode. For example:
Example:
Router# exit Router>
SUMMARY STEPS
1. 2. 3. 4. 5. enable execute-on slot slot-number show ip cef execute-on slot slot-number show ip cef prefix execute-on slot slot-number show ip cef prefix detail exit
DETAILED STEPS
Step 1
enable Use this command to enable privileged EXEC mode. You can also enter this command in user EXEC mode. Enter your password if prompted. For example:
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 31
Configuring Basic Cisco Express Forwarding Finding the Distributed Cisco Express Forwarding Output Information
Example:
Router> enable Router#
Step 2
execute-on slot slot-number show ip cef Use this command to confirm that the prefix is listed in the FIB. For example:
Example:
Router# execute-on slot 0 show ip cef show ip cef from slot 0: Prefix Next Hop 0.0.0.0/0 192.168.0.1 0.0.0.0/32 receive 192.168.0.0/24 attached 192.168.0.0/32 receive 192.168.0.1/32 192.168.0.1 192.168.0.141/32 receive 192.168.0.255/32 receive 239.224.0.0/4 drop 239.224.0.0/24 receive 255.255.255.255/32 receive
Step 3
execute-on slot slot-number show ip cef prefix Use this command to display the prefix entry in the FIB on a line card. For example:
Example:
Router# execute -on slot 3 show ip cef 192.68.0.0 255.255.255.0 show ip cef 192.168.0.0 255.255.255.0 from slot 0: 192.168.0.0/24, version 19, epoch 0, attached, connected 0 packets, 0 bytes via Ethernet5/0/0, 0 dependencies valid glean adjacency
Step 4
execute-on slot slot-number show ip cef prefix detail Use this command to show more detail for each of the active paths associated with a destination prefix on a line card. For example:
Example:
Router# execute-on slot 0 show ip cef 10.24.48.32 detail show ip cef 192.168.0.0 255.255.255.0 from slot 0: 192.168.0.0/24, version 19, epoch 0, attached, connected 0 packets, 0 bytes via Ethernet5/0/0, 0 dependencies valid glean adjacency
Step 5
exit Use this command to exit privileged EXEC mode. For example:
Example:
Router# exit Router>
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 32
Configuring Basic Cisco Express Forwarding Verifying the Adjacency or Next-Hop Information on a Line Card
For more information on adjacencies, see the Cisco Express Forwarding Overview module.
SUMMARY STEPS
1. enable 2. show ip cef 3. show adjacency detail 4. show adjacency summary 5. show adjacency type number 6. show ip cef exact-route source-address destination-address 7. execute-on all show ip cef destination 8. exit
DETAILED STEPS
Step 1
enable Use this command to enable privileged EXEC mode. You can also enter this command in user EXEC mode. Enter your password if prompted. For example:
Example:
Router> enable Router#
Step 2
show ip cef Use this command to determine the output interface. For example:
Example:
router# show ip cef Prefix Next Hop 0.0.0.0/32 receive 192.168.0.0/30 attached 192.168.0.0/32 receive 10.2.61.8/24 192.168.100.1 Interface Serial2/0/0:1 FastEthernet1/0/0
In this example, the output interface for the prefix 10.2.61.8/24 is FastEthernet 1/0/0, and the next hop address is 192.168.100.1. Step 3 show adjacency detail
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 33
Configuring Basic Cisco Express Forwarding Verifying the Adjacency or Next-Hop Information on a Line Card
Use this command to display adjacency information, including Layer 2 information. For example:
Example:
Router# show adjacency detail Protocol Interface IP Ethernet1/0/0 Address 10.2.61.8(7) 0 packets, 0 bytes 00107BC30D5C 00500B32D8200800 ARP 02:01:49
Step 4
The encapsulation string 00107BC30D5C00500B32D8200800 is that of an adjacency used for traffic switched out of a router on an Ethernet link by means of Ethernet II encapsulation. (The first 12 characters are the MAC address of the destination next-hop interface. The next 12 characters represent the MAC address of the source interface of the packet. The last 4 characters [0x0800] represent the Ethernet II encapsulation value for IP.) show adjacency summary Use this command to display Cisco Express Forwarding adjacency table summary information. For example:
Example:
Router# show adjacency summary Adjacency Table has 1 adjacency Interface Adjacency Count Ethernet1/0/0 1
Step 5
show adjacency type number Use this command to display adjacency information for a particular interface. For example:
Example:
Router# show adjacency fastethernet 2/3 Protocol Interface Address IP FastEthernet2/3 172.20.52.1(3045) IP FastEthernet2/3 172.20.52.22(11)
Step 6
show ip cef exact-route source-address destination-address Use this command to display the exact route for a source-destination IP address pair and verify the next-hop address. For example:
Example:
Router# show ip cef exact-route 10.1.1.1 10.2.61.8 10.1.1.1 -> 10.2.61.8 :FastEthernet1/0/0 (next hop 192.168.100.1)
Step 7
In this example, the exact route from source address 10.1.1.1 to destination address 10.2.61.8 is through interface Ethernet1/0/0 to next hop address 192.168.100.1. execute-on all show ip cef destination Use this command to display output interfaces and next hops for all line cards. For example:
Example:
Router# execute-on all show ip cef 10.20.84.32 ========= Line Card (Slot 1) ======= 10.16.0.0/13, version 408935, cached adjacency 0.0.0.0
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 34
Interpreting Cisco Express Forwarding Command Output Verifying That CEF Information Looks As Expected
0 packets, 0 bytes Flow: AS 6172, mask 13 via 172.16.213.1, 0 dependencies, recursive next hop 172.16.213.1, POS1/0.500 via 172.16.213.0/30 valid cached adjacency ========= Line Card (Slot 2) ======= 10.16.0.0/13, version 13719, cached adjacency 0.0.0.0 0 packets, 0 bytes Flow: AS 6172, mask 13 via 172.16.213.1, 0 dependencies, recursive next hop 172.16.213.1, POS1/0.500 via 172.16.213.0/30 valid cached adjacency
Step 8
exit Use this command to exit privileged EXEC mode. For example:
Example:
Router# exit Router>
SUMMARY STEPS
1. enable 2. show ip route 3. show ip cef 4. Compare the command output in Steps 2 and 3. 5. (For distributed Cisco Express Forwarding operation only) execute-on slot slot-number show ip cef 6. (For distributed Cisco Express Forwarding operation only) Compare the command output in Steps 3 and 5. 7. exit
DETAILED STEPS
Step 1
enable Use this command to enable privileged EXEC mode. You can also enter this command in user EXEC mode. Enter your password if prompted. For example:
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 35
Configuring Basic Cisco Express Forwarding Verifying That CEF Information Looks As Expected
Example:
Router> enable Router#
Step 2
show ip route Use this command to look at the forwarding information contained in the IP routing table. For example:
Example:
Router# show ip route ... 10.1.0.0/32 is subnetted, 1 subnets O 10.1.2.3 [110/3] via 10.5.5.5, 00:00:03, POS2/0/0 10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C 10.5.5.5/32 is directly connected, POS2/0/0 C 10.5.5.0/24 is directly connected, POS2/0/0 10.7.0.0/24 is subnetted, 1 subnets O 10.7.8.0 [110/3] via 10.5.5.5, 00:00:04, POS2/0/0 10.0.0.0/24 is subnetted, 2 subnets O 10.23.64.0 [110/12] via 10.5.5.5, 00:00:04, POS2/0/0 O 10.23.66.0 [110/12] via 10.5.5.5, 00:00:04, POS2/0/0 10.47.0.0/32 is subnetted, 1 subnets O 10.47.0.10 [110/3] via 10.5.5.5, 00:00:04, POS2/0/0 O 172.16.57.0/24 [110/3] via 10.5.5.5, 00:00:04, POS2/0/0 10.150.0.0/24 is subnetted, 1 subnets C 10.150.3.0 is directly connected, Fddi0/0/0 O 192.168.92.0/24 [110/2] via 10.5.5.5, 00:00:04, POS2/0/0
Step 3
In the example, c indicates a directly connected route and o represents a route discovered by means of OSPF. show ip cef Use this command to display entries in the FIB. For example:
Example:
Router# show ip cef Prefix Next Hop 0.0.0.0/0 10.5.5.5 0.0.0.0/32 receive 10.1.2.3/32 10.5.5.5 10.150.3.9 10.5.5.0/24 attached 10.5.5.0/32 receive 10.5.5.5/32 attached 10.5.5.6/32 receive 10.5.5.255/32 receive 10.7.8.0/24 10.5.5.5 10.150.3.9 10.23.64.0/24 10.150.3.9 10.23.66.0/24 10.150.3.9 10.47.0.10/32 10.150.3.9 10.150.3.0/24 attached 10.150.3.0/32 receive 10.150.3.1/32 receive 10.150.3.255/32 receive 192.168.92.0/24 10.5.5.5 10.150.3.9 172.16.57.0/24 10.5.5.5 10.150.3.9 239.224.0.0/4 receive 255.255.255.255/32 receive Interface POS2/0/0 POS2/0/0 Fddi0/0/0 POS2/0/0
POS2/0/0 (glean adjacency) (our interface) (broadcast) POS2/0/0 Fddi0/0/0 Fddi0/0/0 Fddi0/0/0 (normal route) Fddi0/0/0 Fddi0/0/0
Step 4
Compare the command output in Steps 2 and 3. Cisco Express Forwarding maintains the information contained in the IP routing table structured in a way that optimizes forwarding. Check that there is a one-to-one correlation between FIB entries and routing table entries. For
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 36
Configuring Basic Cisco Express Forwarding Verifying That CEF Information Looks As Expected
example, the following lines from the sample output in Step 2 and Step 3 show a one-to-one correlation. The destination prefix 192.92.92.0/24, the next hop IP address 10.5.5.5, and the next-hop interface POS2/0/0 are the same. From the show ip route command output in Step 2:
Example:
192.168.92.0/24 [110/2] via 10.5.5.5, 00:00:04, POS2/0/0
Example:
192.168.92.0/24 10.5.5.5 POS2/0/0
If there is not a one-to-one correlation, you can recreate the central FIB table by clearing the IP routing table and allowing the routing table to be rebuilt, which in turn causes the central FIB table to be repopulated with up-to-date routing information. Step 5 (For distributed Cisco Express Forwarding operation only) execute-on slot slot-number show ip cef Use this command to display FIB entries on all line cards. For example:
Example:
Router# execute-on slot 2 show ip cef show ip cef from slot 2: Prefix Next Hop 0.0.0.0/0 10.5.5.5 0.0.0.0/32 receive 10.1.2.3/32 10.5.5.5 10.150.3.9 105.5.5.0/24 attached 10.5.5.0/32 receive 10.5.5.5/32 attached 10.5.5.6/32 receive 10.5.5.255/32 receive 10.7.8.0/24 10.5.5.5 10.150.3.9 10.7.54.0/24 attached 10,7.54.0/32 receive 10.7.54.3/32 receive 10.7.54.255/32 receive 10.23.64.0/24 10.150.3.9 10.23.66.0/24 10.150.3.9 10.47.0.10/32 10.150.3.9 10.150.3.0/24 attached 10.150.3.0/32 receive 10.150.3.1/32 receive 10.150.3.255/32 receive 192.168.92.0/24 10.5.5.5 10.150.3.9 172.16.57.0/24 10.5.5.5 10.150.3.9 239.224.0.0/4 receive 255.255.255.255/32 receive
Step 6
(For distributed Cisco Express Forwarding operation only) Compare the command output in Steps 3 and 5. The output from the show ip cefcommand in Step 3 should be identical to the output from the execute-on slot 2 show ip cefcommand in Step 5. If the outputs are not identical, see the Configuring Cisco Express Forwarding Consistency
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 37
Configuring Basic Cisco Express Forwarding Interpreting MPLS Information in CEF Output
Checkers for Route Processors and Line Cards module for information on synchronizing FIB entries on the RP and the line card. Step 7 exit Use this command to exit privileged EXEC mode. For example:
Example:
Router# exit Router>
SUMMARY STEPS
1. enable 2. show ip cef vrf vrf-name detail 3. exit
DETAILED STEPS
Step 1
enable Use this command to enable privileged EXEC mode. You can also enter this command in user EXEC mode. Enter your password if prompted. For example:
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 38
Configuring Basic Cisco Express Forwarding Interpreting MPLS Information in CEF Output
Example:
Router> enable Router#
Step 2
show ip cef vrf vrf-name detail Use this command to display detailed information from the Cisco Express Forwarding forwarding table that is associated with a VRF. For example:
Example:
Router# show ip cef vrf vpn1 detail IP CEF with switching (Table Version 10), flags=0x0 8 routes, 0 reresolve, 0 unresolved (0 old, 0 new) 46 leaves, 51 nodes, 54640 bytes, 361 inserts, 315 invalidations 0 load sharing elements, 0 bytes, 0 references universal per-destination load sharing algorithm, id F968AD29 5 CEF resets, 38 revisions of existing leaves refcounts: 1400 leaf, 1392 node Adjacency Table has 2 adjacencies 0.0.0.0/32, version 0, receive 192.168.6.0/24, version 9, cached adjacency to Serial0/1.1 0 packets, 0 bytes
The following section of the Cisco Express Forwarding output provides MPLS information for the first adjacency. The "tag rewrite" is an equivalent of a Cisco Express Forwarding adjacency. Look at the tags imposed field. The first tag {20} is the tag used to reach the next hop, 10.1.1.13. The second tag {30} is the tag advertised to the local provider edge (PE) router by the remote PE router.
Example:
tag information set local tag: VPN-route-head fast tag rewrite with Se0/1.1, point2point, tags imposed: {20 30} via 10.10.10.6, 0 dependencies, recursive next hop 10.1.1.13, Serial0/1.1 via 10.10.10.6 valid cached adjacency tag rewrite with Se0/1.1, point2point, tags imposed: {20 30}
The following section of the output provides information about the second adjacency. For the second adjacency, no tag rewrite occurs as indicated by the entry "tag rewrite with , ," and MPLS tags are not imposed on the packet indicated by the entry "tags imposed : {}." The router also discards this packet indicated by the entry "valid discard adjacency."
Example:
192.168.4.0/24, version 6, attached, connected 0 packets, 0 bytes tag information set local tag: 28 via Loopback102, 0 dependencies valid discard adjacency tag rewrite with , , tags imposed: {} 192.168.4.0/32, version 4, receive 192.168.4.1/32, version 3, receive 192.168.4.255/32, version 5, receive 192.168.0.0/24, version 2, receive 255.255.255.255/32, version 1, receive
Step 3
exit Use this command to exit to user EXEC mode. For example:
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 39
Configuring Basic Cisco Express Forwarding Configuration Examples for Basic CEF
Example:
Router# exit Router>
Where to Go Next
If you want to disable Cisco Express Forwarding or distributed Cisco Express Forwarding operation, refer to Enabling or Disabling Cisco Express Forwarding or distributed Cisco Express Forwarding to Customize Switching/Forwarding for Dynamic Networks.
Additional References
Related Documents Related Topic Cisco IOS commands IP switching commands: complete command syntax, command modes, command history, defaults, usage guidelines, and examples. Overview of the Cisco Express Forwarding feature Tasks for enabling or disabling Cisco Express Forwarding or distributed Cisco Express Forwarding Tasks for configuring a load-balancing scheme for Cisco Express Forwarding Tasks for configuring Cisco Express Forwarding consistency checkers Tasks for configuring epochs for Cisco Express Forwarding tables Tasks for configuring and verifying Cisco Express Forwarding network accounting Document Title Cisco IOS Master Commands List, All Releases Cisco IOS IP Switching Command Reference
Cisco Express Forwarding Overview Enabling or Disabling Cisco Express Forwarding or distributed Cisco Express Forwarding to Customize Switching/Forwarding for Dynamic Networks Configuring a Load-Balancing Scheme for Cisco Express Forwarding Traffic Configuring Cisco Express Forwarding Consistency Checkers for Route Processors and Line Cards Configuring Epochs to Clear and Rebuild Cisco Express Forwarding and Adjacency Tables Configuring Cisco Express Forwarding Network Accounting
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 40
Related Topic
Document Title
Tasks for customizing the display of recorded Cisco Customizing the Display of Recorded Cisco Express Forwarding events Express Forwarding Events Verification steps for Cisco Express Forwarding switching http://www.cisco.com/en/US/products/sw/iosswrel/ ps1828/products_tech_ note09186a00801e1e46.shtml How to Verify Cisco Express Forwarding Switching http://www.cisco.com/en/US/tech/tk827/tk831/ technologies_tech_note09186a0080094303.shtml Troubleshooting Incomplete Adjacencies with CEF Troubleshooting Prefix Inconsistencies with Cisco Express Forwarding Troubleshooting Cisco Express Forwarding Routing Loops Troubleshooting Cisco Express Forwarding-Related Error Messages
Description and use of the Cisco Express Forwarding consistency checkers available for the Cisco 7500 and 12000 series routers Information about troubleshooting Cisco Express Forwarding routing loops and suboptimal routing Causes of common Cisco Express Forwardingrelated error messages on platforms running distributed Cisco Express Forwarding switching (Cisco 7500 series routers and Cisco 12000 Series Internet routers) and how to troubleshoot them Explanation of and troubleshooting information for the Cisco IOS software implementation of Layer 3 load balancing across multiple parallel links when Cisco Express Forwarding is used
Troubleshooting Load Balancing Over Parallel Links Using Cisco Express Forwarding
QoS features that require Cisco Express Forwarding When Is CEF Required for Quality of Service Standards Standard Title
No new or modified standards are supported by this -feature, and support for existing standards has not been modified by this feature. MIBs MIB No new or modified MIBs are supported by this feature, and support for existing MIBs has not been modified by this feature. MIBs Link To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL: http://www.cisco.com/go/mibs
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 41
Configuring Basic Cisco Express Forwarding Feature Information for Basic CEF
RFCs RFC No new or modified RFCs are supported by this feature, and support for existing RFCs has not been modified by this feature. Technical Assistance Description The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password. Link http://www.cisco.com/cisco/web/support/ index.html Title --
Feature Configuration Information This feature was introduced on Cisco ASR 1000 Series Routers. This feature was integrated into Cisco IOS Release 15.0(1)S.
Glossary
adjacency --A relationship formed between selected neighboring routers and end nodes for the purpose of exchanging routing information. Adjacency is based upon the use of a common media segment by the routers and nodes involved. Cisco Express Forwarding --A Layer 3 switching technology. Cisco Express Forwarding can also refer to central Cisco Express Forwarding mode, one of two modes of Cisco Express Forwarding operation. Cisco
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 42
Express Forwarding enables a Route Processor (RP) to perform express forwarding. Distributed Cisco Express Forwarding is the other mode of Cisco Express Forwarding operation. distributed Cisco Express Forwarding --A type of Cisco Express Forwarding switching in which line cards (such as Versatile Interface Processor (VIP) line cards) maintain identical copies of the forwarding information base (FIB) and adjacency tables. The line cards perform the express forwarding between port adapters; this relieves the Route Switch Processor of involvement in the switching operation. FIB --forwarding information base. A component of Cisco Express Forwarding. The router uses the FIB lookup table to make destination-based switching decisions during Cisco Express Forwarding operation. The router maintains a mirror image of the forwarding information in an IP routing table. IPC --interprocess communication. The mechanism that enables the distribution of Cisco Express Forwarding tables from the Route Switch Processor (RSP) to the line card when the router is operating in distributed Cisco Express Forwarding mode. label disposition --The removal of Multiprotocol Label Switching (MPLS) headers at the edge of a network. In MPLS label disposition, packets arrive on a router as MPLS packets and, with the headers removed, are transmitted as IP packets. label imposition --The action of putting a label on a packet. LER --label edge router. A router that performs label imposition. LFIB --label forwarding information base. The data structure used by switching functions to switch labeled packets. LIB --label information base. A database used by a label switch router (LSR) to store labels learned from other LSRs, as well as labels assigned by the local LSR. line card --A general term for an interface processor that can be used in various Cisco products. For example, a Versatile Interface Processor (VIP) is a line card for the Cisco 7500 series router. LSP --label switched path. A sequence of hops (Router 0...Router n). A packet travels from R0 to Rn by means of label switching mechanisms. An LSP can be chosen dynamically, based on normal routing mechanisms, or it can be configured manually. LSR --label switch router. A Layer 3 router that forwards a packet based on the value of a label encapsulated in the packet. MPLS --Multiprotocol Label Switching. An emerging industry standard for the forwarding of packets along the normal routing paths (sometimes called MPLS hop-by-hop forwarding). prefix --The network address portion of an IP address. A prefix is specified by a network and mask and is generally represented in the format network/mask. The mask indicates which bits are the network bits. For example, 1.0.0.0/16 means that the first 16 bits of the IP address are masked, making them the network bits. The remaining bits are the host bits. In this example, the network number is 10.0. RIB --Routing Information Base. A central repository of routes that contains Layer 3 reachability information and destination IP addresses or prefixes. The RIB is also known as the routing table. RP --Route Processor. The processor module in the Cisco 7000 series routers that contains the CPU, system software, and most of the memory components that are used in the router. It is sometimes called a supervisory processor. RSP --Route Switch Processor. The processor module used in the Cisco 7500 series routers that integrates the functions of the Route Processor (RP) and the Switch Processor (SP). SP --Switch Processor. Cisco 7000 series processor module that acts as the administrator for all CxBus activities. It is also sometimes called a CiscoBus controller. VIP --Versatile Interface Processor. An interface card used in Cisco 7000 and Cisco 7500 series routers. The VIP provides multilayer switching and runs Cisco IOS.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 43
VPN --Virtual Private Network. The result of a router configuration that enables IP traffic to use tunneling to travel securely over a public TCP/IP network. VRF --A Virtual Private Network (VPN) routing/forwarding instance. A VRF consists of an IP routing table, a derived forwarding table, a set of interfaces that use the forwarding table, and a set of rules and routing protocols that determine what goes into the forwarding table. In general, a VRF includes the routing information that defines a customer VPN site that is attached to a PE router.
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1110R) Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 44
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 45
Cisco Platform Support for Central CEF and dCEF Information About Enabling or Disabling CEF or dCEF
If you enable Cisco Express Forwarding and then create an access list that uses the logkeyword, the packets that match the access list are not Cisco Express Forwarding switched. They are process switched. Logging disables Cisco Express Forwarding. Distributed Cisco Express Forwarding switching cannot be configured on the same Versatile Interface Processor (VIP) card on which distributed fast switching is configured. Distributed Cisco Express Forwarding is not supported on Cisco 7200 series routers.
Restrictions for Cisco Express Forwarding or Distributed Cisco Express Forwarding Operation on an Interface On the Cisco 12000 Series Internet Router, you must not disable distributed Cisco Express Forwarding on an interface. Not all switching methods are available on all platforms.
If Cisco Express Forwarding is not enabled on your platform, the output for the show ip cefcommand looks like this:
Router# show ip cef %CEF not running
Distributed Cisco Express Forwarding is enabled by default on the Catalyst 6500 series switch, the Cisco 7500 series router, and the Cisco 12000 Series Internet Router. When distributed Cisco Express Forwarding is enabled on your platform, the line cards perform the express forwarding. If Cisco Express Forwarding is not enabled on your platform, use the ip cefcommand to enable central Cisco Express Forwarding or the ip cef distributed command to enable distributed Cisco Express Forwarding.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 46
When to Enable or Disable Central CEF on a Router Information About Enabling or Disabling CEF or dCEF
Note
When you enable distributed Cisco Express Forwarding globally, all interfaces that support distributed Cisco Express Forwarding are enabled by default.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 47
Enabling or Disabling CEF or dCEF on a Router How to Enable or Disable Central CEF or dCEF
When you disable Cisco Express Forwarding or distributed Cisco Express Forwarding, Cisco IOS software switches packets received on the interface using the next fastest switching path. For Cisco Express Forwarding, the next fastest switching path is fast switching on the RP. For distributed Cisco Express Forwarding, the next fastest switching path is Cisco Express Forwarding on the RP. The input interface determines the Cisco IOS switching path that a packet takes. Consider the following rules of thumb when enabling or disabling switching methods on a particular interface: You need Cisco Express Forwarding to be enabled on the incoming interface for packets to be Cisco Express Forwarding switched. Because Cisco Express Forwarding makes the forwarding decision on input, you need to use the no ip route-cache cefcommand on the ingress interface if you want to disable Cisco Express Forwarding. In contrast, because Cisco IOS builds a fast-switching cache entry after switching a packet, a packet coming in on a process-switched interface and going out through a fast-switched interface is fast switched. If you want to disable fast switching, use the no ip route-cache command on the egress interface.
SUMMARY STEPS
1. enable 2. show ip cef [vrf vrf-name] [unresolved [detail]] | [detail | [summary]] 3. configure terminal 4. Do one of the following: [no] ip cef [no] ip cef distributed
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 48
Enabling or Disabling CEF or dCEF How to Enable or Disable Central CEF or dCEF
DETAILED STEPS
Command or Action Step 1 enable Purpose Enables privileged EXEC mode.
Example:
Router> enable
Displays entries in the forwarding information base (FIB). Use this command to determine if Cisco Express Forwarding is enabled globally and on a particular interface. If Cisco Express Forwarding is not enabled, the output displays:
%CEF not running
Example:
Router# show ip cef
Example:
Router# configure terminal
Enables Cisco Express Forwarding on the route processor card. or Enables distributed Cisco Express Forwarding operation. Cisco Express Forwarding information is distributed to line cards. Line cards perform express forwarding.
Example:
Router(config)# ip cef
Example:
Example:
Router(config)# ip cef distributed
Step 5 exit
Example:
Router(config)# end
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 49
Enabling or Disabling CEF or dCEF on an Interface How to Enable or Disable Central CEF or dCEF
Command or Action Step 6 show ip cef [vrf vrf-name] [unresolved [detail] | [detail | summary]]
Purpose Displays entries in the FIB. Use this command to verify that Cisco Express Forwarding is enabled. If Cisco Express Forwarding is enabled, the output displays destination prefixes, next-hop IP addresses, and nexthop interfaces.
Example:
Router# show ip cef
SUMMARY STEPS
1. enable 2. show cef interface [type number] [statistics] [detail] 3. configure terminal 4. Do one of the following: interface type slot / port interface type slot / port-adapter / port
5. [no] ip route-cache cef 6. end 7. show cef interface [type number] [statistics] [detail]
DETAILED STEPS
Command or Action Step 1 enable Purpose Enables privileged EXEC mode.
Example:
Router> enable
Displays detailed Cisco Express Forwarding information for a specified interface or for all interfaces. Look for "IP CEF switching enabled" or "IP Distributed CEF switching enabled" in the output.
Example:
Router# show cef interface fastethernet 1/0/0
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 50
Enabling or Disabling CEF or dCEF How to Enable or Disable Central CEF or dCEF
Example:
Router# configure terminal
Step 4 Do one of the following: interface type slot / port interface type slot / port-adapter / port
Configures an interface type and enters interface configuration mode. The type argument specifies the type of interface to be configured. The slot/ argument specifies the slot number. Refer to the appropriate hardware manual for slot and port information. The port argument specifies the port number. Refer to the appropriate hardware manual for slot and port information. The port-adapter/ argument specifies the port adapter number. Refer to the appropriate hardware manual for information about port adapter compatibility.
Example:
Router(config)# interface ethernet 1/1
Example:
or
Example:
Router(config)# interface fastethernet 1/0/0
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 51
Enabling or Disabling CEF or dCEF Configuration Examples for Central CEF or dCEF
Purpose Disables Cisco Express Forwarding operation on an interface or enables Cisco Express Forwarding operation on an interface after Cisco Express Forwarding operation was disabled. or Disables distributed Cisco Express Forwarding operation on an interface or enables distributed Cisco Express Forwarding operation on an interface after distributed Cisco Express Forwarding operation was disabled.
Example:
or
Example:
[no]
ip route-cache distributed
Example:
Router(config-if)# no ip route-cache cef
Example:
or
Example:
Router(config-if)# no ip route-cache distributed
Step 6 end
Example:
Router(config)# end
Displays detailed Cisco Express Forwarding information for a specified interface or for all interfaces. Verify that "IP CEF switching enabled" or "IP Distributed CEF switching enabled" is displayed in the output.
Example:
Router# show cef interface fastethernet 1/0/0
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 52
Example Enabling or Disabling CEF or dCEF on a Router Configuration Examples for Central CEF or dCEF
Distributed Cisco Express Forwarding is enabled by default on the Cisco 6500 and 12000 series routers. The following example shows how to enable distributed Cisco Express Forwarding on the line cards of a router, such as the Cisco 7500 series router, that supports distributed Cisco Express Forwarding:
configure terminal ! ip cef distributed end
You might want to disable distributed Cisco Express Forwarding if your router and router interfaces are configured with a feature that distributed Cisco Express Forwarding does not support. The following example shows how to disable distributed Cisco Express Forwarding on a router:
configure terminal ! no ip cef distributed end
The following example shows how to reenable central Cisco Express Forwarding operation on an interface:
configure terminal ! interface ethernet 1/1 ip route-cache cef end
The following example shows how to disable distributed Cisco Express Forwarding on Ethernet interface 0:
configure terminal
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 53
The following example shows how to reenable distributed Cisco Express Forwarding operation on Ethernet interface 0:
configure terminal ! ip cef distributed ! interface e0 # ip route-cache distributed end
The following example shows how to enable Cisco Express Forwarding operation on the router (globally) and turn off Cisco Express Forwarding operation on Ethernet interface 0:
configure terminal ! ip cef ! interface e0 no ip route-cache cef end
The following example shows how to enable distributed Cisco Express Forwarding operation on the router (globally) and turn off Cisco Express Forwarding operation on Ethernet interface 0:
configure terminal ! ip cef distributed interface e0 no ip route-cache cef end
The following example shows how to reenable distributed Cisco Express Forwarding operation on Ethernet interface 0:
configure terminal ! ip cef distributed ! interface e0 ip route-cache distributed end
Additional References
Related Documents Related Topic Cisco IOS commands IP switching commands: complete command syntax, command modes, command history, defaults, usage guidelines, and examples. Document Title Cisco IOS Master Commands List, All Releases Cisco IOS IP Switching Command Reference
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 54
Related Topic Overview of the Cisco Express Forwarding feature Tasks for verifying Cisco Express Forwarding information on your router Tasks for configuring a load-balancing scheme for Cisco Express Forwarding Tasks for configuring Cisco Express Forwarding consistency checkers Tasks for configuring epochs for Cisco Express Forwarding tables Tasks for configuring and verifying Cisco Express Forwarding network accounting
Document Title Cisco Express Forwarding Overview Configuring Basic Cisco Express Forwarding for Improved Performance, Scalability, and Resiliency in Dynamic Networks Configuring a Load-Balancing Scheme for Cisco Express Forwarding Traffic Configuring Cisco Express Forwarding Consistency Checkers for Route Processors and Line Cards Configuring Epochs to Clear and Rebuild Cisco Express Forwarding and Adjacency Tables Configuring Cisco Express Forwarding Network Accounting
Tasks for customizing the display of recorded Cisco Customizing the Display of Recorded Cisco Express Forwarding events Express Forwarding Events Troubleshooting tips for incomplete adjacencies http://www.cisco.com/en/US/tech/tk827/tk831/ technologies_tech_note09186a0080094303.shtml Troubleshooting Incomplete Adjacencies with CEF Troubleshooting Prefix Inconsistencies with Cisco Express Forwarding Troubleshooting Cisco Express Forwarding Routing Loops Troubleshooting Cisco Express Forwarding-Related Error Messages
Description and use of the Cisco Express Forwarding consistency checkers available for the Cisco 7500 and 12000 series routers Information about troubleshooting Cisco Express Forwarding routing loops and suboptimal routing Causes of common Cisco Express Forwardingrelated error messages on platforms running distributed Cisco Express Forwarding switching (Cisco 7500 series routers and Cisco 12000 Series Internet routers) and how to troubleshoot them Explanation of and troubleshooting information for the Cisco IOS software implementation of Layer 3 load balancing across multiple parallel links when Cisco Express Forwarding is used
Troubleshooting Load Balancing Over Parallel Links Using Cisco Express Forwarding
QoS features that require Cisco Express Forwarding When Is CEF Required for Quality of Service Cisco Express Forwarding command changes for Cisco Express Forwarding: Command Changes MPLS HA application and the MFI infrastructure in Cisco IOS 12.2S releases
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 55
Enabling or Disabling CEF or dCEF Feature Information for Enabling or Disabling CEF or dCEF
No new or modified standards are supported by this -feature, and support for existing standards has not been modified by this feature. MIBs MIB No new or modified MIBs are supported by this feature, and support for existing MIBs has not been modified by this feature. MIBs Link To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL: http://www.cisco.com/go/mibs RFCs RFC No new or modified RFCs are supported by this feature, and support for existing RFCs has not been modified by this feature. Technical Assistance Description The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password. Link http://www.cisco.com/cisco/web/support/ index.html Title --
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 56
Table 5
Feature Information for Enabling or Disabling Cisco Express Forwarding or Distributed Cisco Express Forwarding
Feature Name
Releases
This table is intentionally left -blank because no features were introduced or modified in Cisco IOS Release 12.2(1) or later. This table will be updated when feature information is added to this module.
Glossary
adjacency --A relationship formed between selected neighboring routers and end nodes for the purpose of exchanging routing information. Adjacency is based upon the use of a common media segment by the routers and nodes involved. Cisco Express Forwarding --A Layer 3 switching technology. Cisco Express Forwarding can also refer to central Cisco Express Forwarding mode, one of two modes of Cisco Express Forwarding operation. Cisco Express Forwarding enables a Route Processor to perform express forwarding. Distributed Cisco Express Forwarding is the other mode of Cisco Express Forwarding operation. distributed Cisco Express Forwarding --A mode of Cisco Express Forwarding operation in which line cards (such as Versatile Interface Processor (VIP) line cards) maintain identical copies of the forwarding information base (FIB) and adjacency tables. The line cards perform the express forwarding between port adapters; this relieves the Route Switch Processor of involvement in the switching operation. FIB --forwarding information base. A component of Cisco Express Forwarding that is conceptually similar to a routing table or information base. The router uses the FIB lookup table to make destination-based switching decisions during Cisco Express Forwarding operation. The router maintains a mirror image of the forwarding information in an IP routing table. GRE --generic routing encapsulation. A tunneling protocol developed by Cisco that enables encapsulation of a wide variety of protocol packet types inside IP tunnels. GRE creates a virtual point-to-point link to Cisco routers at remote points over an IP internetwork. By connecting multiprotocol subnetworks in a single-protocol backbone environment, IP tunneling using GRE allows the expansion of a network across a single-protocol backbone environment. IPC --interprocess communication. The mechanism that enables the distribution of Cisco Express Forwarding tables from the Route Switch Processor (RSP) to the line card when the router is operating in distributed Cisco Express Forwarding mode. label disposition --The removal of Multiprotocol Label Switching (MPLS) headers at the edge of a network. In MPLS label disposition, packets arrive on a router as MPLS packets and, with the header removed, are transmitted as IP packets. label imposition --The action of putting a label on a packet. LER --label edge router. A router that performs label imposition. LFIB --Label Forwarding Information Base. The data structure used by switching functions to switch labeled packets.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 57
LIB --Label information base. A database used by a label switch router (LSR) to store labels learned from other LSRs, as well as labels assigned by the local LSR. line card --A general term for an interface processor that can be used in various Cisco products. For example, a Versatile Interface Processor (VIP) is a line card for the Cisco 7500 series router. LSP --label switched path. A sequence of hops (Router 0...Router n). A packet travels from R0 to Rn by means of label switching mechanisms. An LSP can be chosen dynamically, based on normal routing mechanisms, or you can configure the LSP manually. LSR --label switch router. A Layer 3 router that forwards a packet based on the value of a label encapsulated in the packet. MPLS --Multiprotocol Label Switching. An emerging industry standard for the forwarding of packets along the normal routing paths (sometimes called MPLS hop-by-hop forwarding). prefix --The network address portion of an IP address. A prefix is specified by a network and mask and is generally represented in the format network/mask. The mask indicates which bits are the network bits. For example, 1.0.0.0/16 means that the first 16 bits of the IP address are masked, making them the network bits. The remaining bits are the host bits. In this example, the network number is 10.0. RIB --Routing Information Base. A central repository of routes that contains Layer 3 reachability information and destination IP addresses or prefixes. The RIB is also known as the routing table. RP --Route Processor. The processor module in the Cisco 7000 series routers that contains the CPU, system software, and most of the memory components that are used in the router. It is sometimes called a supervisory processor. RSP --Route Switch Processor. The processor module used in the Cisco 7500 series routers that integrates the functions of the Route Processor (RP) and the Switch Processor (SP). SP --Switch Processor. Cisco 7000-series processor module that acts as the administrator for all CxBus activities. It is also sometimes called a CiscoBus controller. VIP --Versatile Interface Processor. An interface card used in Cisco 7000 and Cisco 7500 series routers. The VIP provides multilayer switching and runs Cisco IOS software. VPN --Virtual Private Network. The result of a router configuration that enables IP traffic to use tunneling to travel securely over a public TCP/IP network. VRF --A Virtual Private Network (VPN) routing/forwarding instance. A VRF consists of an IP routing table, a derived forwarding table, a set of interfaces that use the forwarding table, and a set of rules and routing protocols that determine what goes into the forwarding table. In general, a VRF includes the routing information that defines a customer VPN site that is attached to a PE router.
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1110R) Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 58
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 59
Cisco Platform Support for Central CEF and dCEF Restrictions for a Load-Balancing Scheme
If Cisco Express Forwarding is not enabled on your platform, the output for the show ip cefcommand looks like this:
Router# show ip cef %CEF not running
Distributed Cisco Express Forwarding is enabled by default on the Catalyst 6500 series switch, the Cisco 7500 series router, and the Cisco 12000 series router. When distributed Cisco Express Forwarding is enabled on your platform, the line cards perform the express forwarding. If Cisco Express Forwarding is not enabled on your platform, use the ip cefcommand to enable (central) Cisco Express Forwarding or the ip cef distributed command to enable distributed Cisco Express Forwarding.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 60
Note
The Cisco 10000 series router and the Cisco 12000 series router are configured by default to perform perdestination load balancing.
Note
Although per-packet load balancing is intended for use on the majority of Cisco IOS routers, it is not supported on the Cisco ASR 1000 (and higher) Series Aggregation Services Router. Also, per-packet load balancing can result in out-of-sequence (OOS) packet delivery errors on some routers, which can cause applications such as VoIP to malfunction. Therefore, per-packet load balancing is not recommended. For more information, see the release notes and caveats for your platform and software release.
Load-Balancing Algorithms
The following load-balancing algorithms are provided for use with Cisco Express Forwarding traffic. You select a load-balancing algorithm with the ip cef load-sharing algorithm command.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 61
Original algorithm--The original Cisco Express Forwarding load-balancing algorithm produces distortions in load sharing across multiple routers because the same algorithm was used on every router. Depending on your network environment, you should select either the universal algorithm (default) or the tunnel algorithm instead. Universal algorithm--The universal load-balancing algorithm allows each router on the network to make a different load sharing decision for each source-destination address pair, which resolves loadsharing imbalances. The router is set to perform universal load sharing by default. Tunnel algorithm--The tunnel algorithm is designed to balance the per-packet load when only a few source and destination pairs are involved. Include-ports algorithm--The include-ports algorithm allows you to use the Layer 4 source and destination ports as part of the load-balancing decision. This method benefits traffic streams running over equal cost paths that are not load shared because the majority of the traffic is between peer addresses that use different port numbers, such as Real-Time Protocol (RTP) streams. The includeports algorithm is available in Cisco IOS Release 12.4(11)T and later releases.
SUMMARY STEPS
1. enable 2. configure terminal 3. Do one of the following: interface type slot / port interface type slot / port-adapter / port
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 62
DETAILED STEPS
Command or Action Step 1 enable Purpose Enables privileged EXEC mode.
Example:
Router> enable
Example:
Router# configure terminal
Step 3 Do one of the following: interface type slot / port interface type slot / port-adapter / port
Configures an interface type and enters interface configuration mode. The type argument specifies the type of interface to be configured. The slot argument specifies the slot number. Refer to the appropriate hardware manual for slot and port information. The port argument specifies the port number. Refer to the appropriate hardware manual for slot and port information. The port-adapterargument specifies the port adapter number. Refer to the appropriate hardware manual for information about port adapter compatibility. required.
Example:
Router(config)# interface ethernet 1/1
Example:
or
Example:
Router(config)# interface fastethernet 1/0/0
Enables per-destination load balancing for Cisco Express Forwarding on the interface.
Note The no ip load-sharing command disables load balancing for
Example:
Router(config-if)# no ip load-sharing per-destination
Step 5 end
Example:
Router(config-if)# end
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 63
SUMMARY STEPS
1. enable 2. configure terminal 3. Do one of the following: interface type slot / port interface type slot / port-adapter / port
DETAILED STEPS
Command or Action Step 1 enable Purpose Enables privileged EXEC mode.
Example:
Router> enable
Example:
Router# configure terminal
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 64
Command or Action Step 3 Do one of the following: interface type slot / port interface type slot / port-adapter / port
Purpose Configures an interface type and enters interface configuration mode. The type argument specifies the type of interface to be configured. The slotargument specifies the slot number. Refer to the appropriate hardware manual for slot and port information. The port argument specifies the port number. Refer to the appropriate hardware manual for slot and port information. The port-adapterargument specifies the port adapter number. Refer to the appropriate hardware manual for information about port adapters. are required.
Example:
Router(config)# interface ethernet 1/1
Example:
or
Example:
Router(config)# interface fastethernet 1/0/0
Enables per-packet load balancing for Cisco Express Forwarding on the interface.
Example:
Router(config-if)# ip load-sharing perpacket
Step 5 end
Example:
Router(config-if)# end
SUMMARY STEPS
1. enable 2. configure terminal 3. ip cef load-sharing algorithm {original | tunnel [id] | universal [id] | include-ports {source[id]| [destination] [id] | source[id] destination [id]}} 4. end
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 65
DETAILED STEPS
Command or Action Step 1 enable Purpose Enables privileged EXEC mode.
Example:
Router> enable
Example:
Router# configure terminal
Step 3 ip cef load-sharing algorithm {original | tunnel [id] | universal [id] | include-ports {source[id]| [destination] [id] | source[id] destination [id]}}
Selects a Cisco Express Forwarding load-balancing algorithm. The original keyword sets the load-balancing algorithm to the original algorithm, based on a source and destination hash. The tunnel keyword sets the load-balancing algorithm to one that can be used in tunnel environments or in environments where there are only a few IP source and destination address pairs. The id argument is a fixed identifier. The universal keyword sets the load-balancing algorithm to one that uses a source and destination and an ID hash. The include-ports source keywords set the load-balancing algorithm to one that uses the source port. The include-ports destination keywords set the load-balancing algorithm to one that uses the destination port. The include-ports source destinationkeywords set the load-balancing algorithm to one that uses both source and destination ports.
Example:
Router(config)# ip cef load-sharing algorithm tunnel
Step 4 end
Example:
Router(config)# end
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 66
Note
The Layer 4 load-balancing algorithm applies to software switched packets. For platforms that switch traffic using a hardware forwarding engine, the hardware load-balancing decision might be different from the software load-balancing decision for the same traffic stream. You might want to override the configured algorithm. >
SUMMARY STEPS
1. enable 2. configure terminal 3. ip cef load-sharing algorithm {original | tunnel [id] | universal [id] include-ports {source[id] | [destination] [id] | source[id] destination [id]}} 4. end
DETAILED STEPS
Command or Action Step 1 enable Purpose Enables privileged EXEC mode.
Example:
Router> enable
Example:
Router# configure terminal
Step 3 ip cef load-sharing algorithm {original | tunnel [id] | universal [id] include-ports {source[id] | [destination] [id] | source[id] destination [id]}}
Selects a Cisco Express Forwarding load-balancing algorithm. The original keyword sets the load-balancing algorithm to the original algorithm, based on a source and destination hash. The tunnel keyword sets the load-balancing algorithm to one that can be used in tunnel environments or in environments where there are only a few IP source and destination address pairs. The id argument is a fixed identifier. The universal keyword sets the load-balancing algorithm to one that uses a source and destination and an ID hash. The include-ports source keyword sets the load-balancing algorithm to one that uses the source port. The include-ports destination keyword sets the load-balancing algorithm to one that uses the destination port. The include-ports source destination keyword sets the loadbalancing algorithm to one that uses the source and destination ports.
Example:
Router(config)# ip cef load-sharing algorithm include-ports source destination
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 67
Example Enabling or Disabling Per-Destination Load Balancing Configuration Examples for a Load-Balancing Scheme
Example:
Router(config)# end
If you want to enable per-packet load balancing for traffic intended for a particular destination, all interfaces that can forward traffic to that destination must be enabled for per-packet load-balancing.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 68
The following example shows how to disable the tunnel load-balancing algorithm:
configure terminal ! no ip cef load-sharing algorithm tunnel end
This example sets up load sharing that includes the source port in the load-balancing decision. To disable the include-ports Layer 4 load-balancing algorithm and return to the default universal mode, enter the following commands:
configure terminal ! no ip cef load-sharing algorithm end
Additional References
Related Documents Related Topic Cisco IOS commands Document Title Cisco IOS Master Commands List, All Releases
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 69
Related Topic IP switching commands: complete command syntax, command modes, command history, defaults, usage guidelines, and examples. Overview of the Cisco Express Forwarding feature
Tasks for verifying basic Cisco Express Forwarding Configuring Basic Cisco Express Forwarding for and distributed Cisco Express Forwarding operation Improved Performance, Scalability, and Resiliency in Dynamic Networks Tasks for enabling or disabling Cisco Express Forwarding or distributed Cisco Express Forwarding Tasks for configuring Cisco Express Forwarding consistency checkers Tasks for configuring epochs for Cisco Express Forwarding tables Tasks for configuring and verifying Cisco Express Forwarding network accounting Enabling or Disabling Cisco Express Forwarding or Distributed Cisco Express Forwarding to Customize Switching and Forwarding for Dynamic Network Configuring Cisco Express Forwarding Consistency Checkers for Route Processors and Line Cards Configuring Epochs to Clear and Rebuild Cisco Express Forwarding and Adjacency Tables Configuring Cisco Express Forwarding Network Accounting
Tasks for customizing the display of recorded Cisco Customizing the Display of Recorded Cisco Express Forwarding events Express Forwarding Events Explanation of and troubleshooting information for the Cisco IOS software implementation of Layer 3 load balancing across multiple parallel links when Cisco Express Forwarding is used Standards Standard Title Troubleshooting Load Balancing Over Parallel Links Using Cisco Express Forwarding
No new or modified standards are supported by this -feature, and support for existing standards has not been modified by this feature. MIBs MIB No new or modified MIBs are supported by this feature, and support for existing MIBs has not been modified by this feature. MIBs Link To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL: http://www.cisco.com/go/mibs
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 70
RFCs RFC No new or modified RFCs are supported by this feature, and support for existing RFCs has not been modified by this feature. Technical Assistance Description The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password. Link http://www.cisco.com/cisco/web/support/ index.html Title --
Feature Name Cisco Express Forwarding Support for Layer 4 Port-Based Load Balancing
Releases 12.4(11)T
Feature Configuration Information This feature allows Cisco Express Forwarding to include Layer 4 port information in the decision for load sharing on paths. In 12.4(11)T, this feature was introduced. The following commands were modified by this feature: ip cef load-sharing algorithm and show ip cef exact-route.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 71
Glossary
adjacency --A relationship formed between selected neighboring routers and end nodes for the purpose of exchanging routing information. Adjacency is based upon the use of a common media segment by the routers and nodes involved. Cisco Express Forwarding --A Layer 3 switching technology. Cisco Express Forwarding can also refer to central Cisco Express Forwarding mode, one of two modes of Cisco Express Forwarding operation. Cisco Express Forwarding enables a Route Processor to perform express forwarding. Distributed Cisco Express Forwarding is the other mode of Cisco Express Forwarding operation. distributed Cisco Express Forwarding --A mode of Cisco Express Forwarding operation in which line cards (such as Versatile Interface Processor [VIP] line cards) maintain identical copies of the forwarding information base (FIB) and adjacency tables. The line cards perform the express forwarding between port adapters; this relieves the Route Switch Processor of involvement in the switching operation. FIB --forwarding information base. A component of Cisco Express Forwarding that is conceptually similar to a routing table or information base. The router uses the FIB lookup table to make destination-based switching decisions during Cisco Express Forwarding operation. The router maintains a mirror image of the forwarding information in an IP routing table. LSP --label switched path. A sequence of hops (Router 0...Router n). A packet travels from R0 to Rn by means of label switching mechanisms. An LSP can be chosen dynamically, based on normal routing mechanisms, or you can configure the LSP manually. prefix --The network address portion of an IP address. A prefix is specified by a network and mask and is generally represented in the format network/mask. The mask indicates which bits are the network bits. For example, 1.0.0.0/16 means that the first 16 bits of the IP address are masked, making them the network bits. The remaining bits are the host bits. In this example, the network number is 10.0. RIB --Routing Information Base. A central repository of routes that contains Layer 3 reachability.
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1110R) Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 72
Configuring Epochs
This document contains information about and instructions for configuring epochs for Cisco Express Forwarding tables. You can use this functionality to clear and rebuild Cisco Express Forwarding tables for consistency purposes without the loss of table information. Cisco Express Forwarding is an advanced Layer 3 IP switching technology. It optimizes network performance and scalability for all kinds of networks: those that carry small amounts of traffic and those that carry large amounts of traffic in complex patterns, such as the Internet and networks characterized by intensive web-based applications or interactive sessions. Finding Feature Information, page 73 Prerequisites for Epochs for CEF Tables, page 73 Information About About Epochs for CEF Tables, page 73 How to Configure Epochs, page 76 Configuration Examples for Epochs, page 80 Additional References, page 81 Feature Information for Configuring Epochs, page 83 Glossary, page 83
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 73
Cisco Platform Support for Central CEF and dCEF Information About About Epochs for CEF Tables
Tasks for configuring epochs for Cisco Express Forwarding Forwarding Information Base (FIB) tables were introduced with the Nonstop Forwarding Enhanced FIB Refresh feature in Cisco IOS Release 12.2(8)T. Before you configure epochs for Cisco Express Forwarding tables, you should understand the following: (See the Nonstop Forwarding Enhanced FIB Refresh, page 74 for an explanation of the term "epoch.") Tasks for configuring epochs for Cisco Express Forwarding tables were introduced with the Nonstop Forwarding Enhanced FIB Refresh feature in Cisco IOS Release 12.2(8)T. For links to information about other Cisco Express Forwarding and distributed Cisco Express Forwarding features you can configure, refer to the Additional References, page 81. Cisco Platform Support for Central CEF and dCEF, page 74 Nonstop Forwarding Enhanced FIB Refresh, page 74 Epoch Numbering for CEF FIB and Adjacency Tables, page 75 Epoch Synchronization Between the RP and Line Cards, page 75 Epoch Numbering for Routers That Support HA, page 75 When to Refresh the CEF or Adjacency Tables, page 76
If Cisco Express Forwarding is not enabled on your platform, the output for the show ip cefcommand looks like this:
Router# show ip cef %CEF not running
Distributed Cisco Express Forwarding is enabled by default on the Catalyst 6500 series switch, the Cisco 7500 series router, and the Cisco 12000 Series Internet Router. When Distributed Cisco Express Forwarding is enabled on your platform, the line cards perform the express forwarding. If Cisco Express Forwarding is not enabled on your platform, use the ip cefcommand to enable (central) Cisco Express Forwarding or the ip cef distributed command to enable Distributed Cisco Express Forwarding.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 74
Epoch Numbering for CEF FIB and Adjacency Tables Information About About Epochs for CEF Tables
NSF Enhanced FIB Refresh provides for the continuation of Cisco Express Forwarding forwarding by tracking epochs. The term "epoch" refers to a period of time. A new epoch for a Cisco Express Forwarding table begins when a table rebuild is initiated. The time after this instant is in an epoch different from the time before, and the different epochs are numbered between 0 and 255. Through the use of epochs, the software can distinguish between old and new forwarding information in the same database structure and can retain the old Cisco Express Forwarding database table while the software builds a new table. This is called epoch tracking and it allows Cisco Express Forwarding forwarding to continue uninterrupted while new Cisco Express Forwarding tables are being constructed, and it makes possible a seamless switchover when the new table becomes active.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 75
the epoch number for each table is incremented, all existing entries are considered stale. However, forwarding continues as normal. As the routing protocols start to repopulate the FIB and adjacency databases, existing and new entries receive the new epoch number, indicating that the entries have been refreshed.
SUMMARY STEPS
1. enable 2. show ip cef epoch 3. clear adjacency table 4. show ip cef epoch 5. exit
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 76
Incrementing the Epoch Number of One or All CEF Tables How to Configure Epochs
DETAILED STEPS
Command or Action Step 1 enable Purpose Enables privileged EXEC mode.
Example:
Router> enable
Displays entries in the forwarding information base (FIB) or displays a summary of the FIB. The epoch keyword displays the table epochs of the adjacency table and all FIB tables.
Example:
Router# show ip cef epoch
Begins a new epoch and increments the epoch number of the adjacency table.
Example:
Router# clear adjacency table
Displays entries in the FIB or displays a summary of the FIB. The epoch keyword displays the table epochs of the adjacency table and all FIB tables.
Example:
Router# show ip cef epoch
Step 5 exit
Example:
Router# exit
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 77
SUMMARY STEPS
1. 2. 3. 4. 5. enable show ip cef epoch clear ip cef epoch [all-vrfs | full | vrf [table]] show ip cef epoch exit
DETAILED STEPS
Command or Action Step 1 enable Purpose Enables privileged EXEC mode.
Example:
Router> enable
Displays entries in the FIB or displays a summary of the FIB. The epoch keyword displays the table epochs of the adjacency table and all FIB tables.
Example:
Router# show ip cef epoch
Step 3 clear ip cef epoch [all-vrfs | full | vrf Begins a new epoch and increments the epoch number of one or all Cisco Express Forwarding tables. [table]] The all-vrfs keyword begins a new epoch for all FIB tables. The full keyword begins a new epoch for all tables, including adjacency tables. The vrf keyword begins a new epoch for the specified FIB table. The table argument is the name of a specific Virtual Private Network (VPN) routing and forwarding instance (VRF).
Example:
Router# clear ip cef epoch full
Displays entries in the FIB or displays a summary of the FIB. The epoch keyword displays the epochs of the adjacency table and all FIB tables.
Example:
Router# show ip cef epoch
Step 5 exit
Example:
Router# exit
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 78
SUMMARY STEPS
1. 2. 3. 4. 5. enable show adjacency summary detail show adjacency summary show ip cef epoch exit
DETAILED STEPS
Step 1
enable Use this command to enable privileged EXEC mode. For example:
Example:
Router> enable
Step 2
Enter your password if prompted. show adjacency summary detail Use this command to verify that the epoch number is displayed for each entry in the adjacency table as you expect. For example:
Example:
Router# show adjacency detail Protocol Interface IP Serial5/0/0/1:1 Address point2point(7) 0 packets, 0 bytes 0F000800 CEF expires: 00:02:09 refresh: 00:00:09 Epoch: 14 point2point(7) 0 packets, 0 bytes 0F000800 CEF expires: 00:02:09 refresh: 00:00:09 Epoch: 14
IP
Serial5/0/1/1:1
Step 3
The epoch number is displayed for each entry in the adjacency table. In this example, the epoch number of each entry is 14. show adjacency summary Use this command to verify that the epoch number for each adjacency in the adjacency table is as you expect. For example:
Example:
Router# show adjacency summary Adjacency Table has 2 adjacencies Table epoch: 14 (2 entries at this epoch) Interface Serial5/0/0/1:1 Serial5/0/1/1:1 Adjacency Count 1 1
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 79
Example Incrementing the Epoch Number of the Adjacency Table Configuration Examples for Epochs
Use the epoch information in the summary section to verify that the epoch number for each adjacency in the adjacency table is as expected. The epoch number is 14 in this example, the same as the epoch number displayed in the show adjacency detail command in the previous step. Step 4 show ip cef epoch Use this command to verify that Cisco Express Forwarding information in all FIB tables, including the adjacency table, is as you expect. In the following example, Cisco Express Forwarding epoch information is verified for all FIB tables, including the adjacency table:
Example:
Router# show ip cef epoch CEF epoch information: Table: Default-table Table epoch: 77 (19 entries at this epoch) Adjacency table Table epoch: 16 (2 entries at this epoch)
Step 5
exit Use this command to exit to user EXEC mode. For example:
Example:
Router# exit Router>
After clearing:
Router# show ip cef epoch CEF epoch information:
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 80
Example Incrementing the Epoch Number of One or All CEF Tables Additional References
Table: Default-table Table epoch: 3 (43 entries at this epoch) Adjacency table Table epoch: 3 (5 entries at this epoch)
The following example shows the output before and after you clear the epoch table and increment the epoch number. Before clearing:
router# show ip cef epoch CEF epoch information: Table: Default-table Table epoch: 3 (43 entries at this epoch) Adjacency table Table epoch: 3 (5 entries at this epoch)
After clearing:
router# clear ip cef epoch full router# show ip cef epoch CEF epoch information: Table: Default-table Table epoch: 4 (43 entries at this epoch) Adjacency table Table epoch: 4 (5 entries at this epoch)
Additional References
Related Documents Related Topic Cisco IOS commands IP switching commands: complete command syntax, command modes, command history, defaults, usage guidelines, and examples. Overview of the Cisco Express Forwarding feature Document Title Cisco IOS Master Commands List, All Releases Cisco IOS IP Switching Command Reference
Tasks for verifying basic Cisco Express Forwarding Configuring Basic Cisco Express Forwarding for and distributed Cisco Express Forwarding operation Improved Performance, Scalability, and Resiliency in Dynamic Networks Tasks for enabling or disabling Cisco Express Forwarding or distributed Cisco Express Forwarding Enabling or Disabling Cisco Express Forwarding or Distributed Cisco Express Forwarding to Customize Switching and Forwarding for Dynamic Networks
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 81
Related Topic Tasks for configuring a load-balancing scheme for Cisco Express Forwarding Tasks for configuring Cisco Express Forwarding consistency checkers Tasks for configuring and verifying Cisco Express Forwarding network accounting
Document Title Configuring a Load-Balancing Scheme for Cisco Express Forwarding Traffic Configuring Cisco Express Forwarding Consistency Checkers for Route Processors and Line Cards Configuring Cisco Express Forwarding Network Accounting
Tasks for customizing the display of recorded Cisco Customizing the Display of Recorded Cisco Express Forwarding events Express Forwarding Events Troubleshooting tips for incomplete adjacencies http://www.cisco.com/en/US/tech/tk827/tk831/ technologies_tech_note09186a0080094303.shtml Troubleshooting Incomplete Adjacencies with CEF Troubleshooting Prefix Inconsistencies with Cisco Express Forwarding Troubleshooting Load Balancing Over Parallel Links Using Cisco Express Forwarding
Description and use of the Cisco Express Forwarding consistency checkers available for the Cisco 7500 and 12000 series routers Explanation of and troubleshooting information for the Cisco IOS software implementation of Layer 3 load balancing across multiple parallel links when Cisco Express Forwarding is used Causes of common Cisco Express Forwardingrelated error messages on platforms running distributed Cisco Express Forwarding switching (Cisco 7500 series routers and Cisco 12000 Series Internet routers) and how to troubleshoot them Standard Standards
Title
No new or modified standards are supported by this -feature, and support for existing standards has not been modified by this feature. MIB MIBs No new or modified MIBs are supported by this feature, and support for existing MIBs has not been modified by this feature. MIBs Link To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL: http://www.cisco.com/go/mibs
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 82
RFC RFCs No new or modified RFCs are supported by this feature, and support for existing RFCs has not been modified by this feature. Technical Assistance Description The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password. Link http://www.cisco.com/cisco/web/support/ index.html Title --
Releases 12.2(8)T
Feature Configuration Information This feature allows you to clear the forwarding table on demand and to continue forwarding through the use of the old entries in the table while the new forwarding table is being built.
Glossary
adjacency --A relationship formed between selected neighboring routers and end nodes for the purpose of exchanging routing information. Adjacency is based upon the use of a common media segment by the routers and nodes involved.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 83
Configuring Epochs
Cisco Express Forwarding --A Layer 3 switching technology. Cisco Express Forwarding can also refer to central Cisco Express Forwarding mode, one of two modes of Cisco Express Forwarding operation. Cisco Express Forwarding enables a Route Processor to perform express forwarding. Distributed Cisco Express Forwarding is the other mode of Cisco Express Forwarding operation. distributed Cisco Express Forwarding --A mode of Cisco Express Forwarding operation in which line cards (such as Versatile Interface Processor (VIP) line cards) maintain identical copies of the forwarding information base (FIB) and adjacency tables. The line cards perform the express forwarding between port adapters; this relieves the Route Switch Processor of involvement in the switching operation. FIB --forwarding information base. A component of Cisco Express Forwarding that is conceptually similar to a routing table or information base. The router uses the FIB lookup table to make destination-based switching decisions during Cisco Express Forwarding operation. The router maintains a mirror image of the forwarding information in an IP routing table. LIB --label information base. A database used by a label switch router (LSR) to store labels learned from other LSRs, as well as labels assigned by the local LSR. line card --A general term for an interface processor that can be used in various Cisco products. For example, a Versatile Interface Processor (VIP) is a line card for the Cisco 7500 series router. prefix --The network address portion of an IP address. A prefix is specified by a network and mask and is generally represented in the format network/mask. The mask indicates which bits are the network bits. For example, 1.0.0.0/16 means that the first 16 bits of the IP address are masked, making them the network bits. The remaining bits are the host bits. In this example, the network number is 10.0. RIB --Routing Information Base. A central repository of routes that contains Layer 3 reachability information and destination IP addresses or prefixes. The RIB is also known as the routing table. RP --Route Processor. The processor module in the Cisco 7000 series routers that contains the CPU, system software, and most of the memory components that are used in the router. It is sometimes called a supervisory processor. RSP --Route Switch Processor. The processor module used in the Cisco 7500 series routers that integrates the functions of the Route Processor (RP) and the Switch Processor (SP). SP --Switch Processor. Cisco 7000-series processor module that acts as the administrator for all CxBus activities. Sometimes called CiscoBus controller.
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1110R) Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 84
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 85
Cisco Platform Support for CEF and dCEF Restrictions for CEF Consistency Checkers
If Cisco Express Forwarding is not enabled on your platform, the output for the show ip cefcommand looks like this:
Router# show ip cef %CEF not running
Distributed Cisco Express Forwarding is enabled by default on the Catalyst 6500 series switch, the Cisco 7500 series router, and the Cisco 12000 Series Internet Router. When distributed Cisco Express Forwarding is enabled on your platform, the line cards perform the express forwarding. If Cisco Express Forwarding is not enabled on your platform, use the ip cefcommand to enable Cisco Express Forwarding or the ip cef distributed command to enable distributed Cisco Express Forwarding.
Cisco Express Forwarding supports passive and active consistency checkers that run independently to uncover these forwarding inconsistencies. The table below describes the consistency checkers and indicates whether the checker operates on the RP or the line card.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 86
Table 8
Description (Distributed Cisco Express Forwarding only) Retrieves IP prefixes found missing from the line card FIB table. If IP prefixes are missing, the line card cannot forward packets for the corresponding addresses. Lcdetect then sends IP prefixes to the RP for confirmation. If the RP finds that it has the relevant entry, an inconsistency is detected, and an error message is displayed. Also, the RP sends a signal back to the line card confirming that the IP prefix contributes to the creation of an inconsistency. (Distributed Cisco Express Forwarding only) Looks through the FIB table for a configurable time period and sends the next n prefixes to the RP. The RP does an exact lookup in its FIB table. If the RP finds that the prefix is missing, the RP reports an inconsistency. The RP sends a signal back to the line card for confirmation. The time period and number of prefixes sent are configured with the ip cef table consistencycheck command.
Scan-lc
Line card
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 87
Description Looks through the RP FIB table for a configurable time period and sends the next n prefixes to the line card. (This action is opposite to the one that the scan-lc checker performs.) The line card does an exact lookup in the FIB table. If the line card finds the prefix missing, the line card reports an inconsistency and signals the RP for confirmation. The time period and number of prefixes sent are configured with the ip cef table consistencycheck command.
Scan-rib
Route Processor
Operates on all (even nondistributed) RPs, and scans the RIB to ensure that prefix entries are present in the RP FIB table.
Cisco Express Forwarding consistency checkers are enabled by default for Cisco IOS Releases 12.0(20)S and later. Console errors are disabled by default. If you find a database inconsistency, such as an IP prefix missing from a line card or an RP, you can investigate and resolve it by examining the Cisco Express Forwarding system error messages and by issuing Cisco Express Forwarding debug and show commands. For Cisco Express Forwarding consistency checker system error messages, see the System Message Guide for your Cisco IOS Release.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 88
SUMMARY STEPS
1. enable 2. configure terminal 3. ip cef table consistency-check [type {lc-detect | scan-lc | scan-rib | scan-rp }] [count count-number ] [period seconds ] 4. ip cef table consistency-check [settle-time seconds] 5. end
DETAILED STEPS
Command or Action Step 1 enable Purpose Enables privileged EXEC mode.
Example:
Router> enable
Example:
Router# configure terminal
Step 3 ip cef table consistency-check [type {lcdetect | scan-lc | scan-rib | scan-rp }] [count count-number ] [period seconds ]
Enables Cisco Express Forwarding table consistency checker types and parameters. The type keyword indicates the type of consistency check to enable. The lc-detect keyword enables the line card to detect a missing prefix, which is confirmed by the RP. The scan-lckeyword enables a passive scan check of tables on the line card. The scan-rib keyword enables a passive scan check of tables on the RP and a comparison with the RIB. The scan-rp keyword enables a passive scan check of tables on the RP. The count -number keyword-argument pair is the maximum number of prefixes to check per scan. The range is from 1 to 225. The period seconds keyword-argument pair is the time during which updates for a candidate prefix are ignored as inconsistencies. The range is from 1 to 3600 seconds.
Example:
Router(config)# ip cef table consistency-check scan-rib count 100 period 60
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 89
Displaying and Clearing Table Inconsistencies How to Configure CEF Consistency Checkers
Command or Action
Purpose
Step 4 ip cef table consistency-check [settle-time Suppresses inconsistency errors during route updates. seconds] The settle-time seconds keyword-argument pair is the time elapsed during which updates for a candidate prefix are ignored as inconsistencies. The range is from 1 to 3600 seconds.
Example:
Router(config)# ip cef table consistency-check settle-time 65
Step 5 end
Example:
Router(config)# end
SUMMARY STEPS
1. 2. 3. 4. 5. 6. enable show ip cef inconsistency clear ip cef inconsistency clear cef linecard [slot-number] [adjacency | interface | prefix] show ip cef inconsistency exit
DETAILED STEPS
Step 1
enable Use this command to enable privileged EXEC mode. For example:
Example:
Router> enable
Step 2
Enter your password if prompted. show ip cef inconsistency Use this command to display Cisco Express Forwarding IP inconsistencies. For example:
Example:
Router# show ip cef inconsistency Table consistency checkers (settle time 65s)
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 90
lc-detect:running 0/0/0 queries sent/ignored/received scan-lc:running [100 prefixes checked every 60s] 0/0/0 queries sent/ignored/received scan-rp:running [100 prefixes checked every 60s] 0/0/0 queries sent/ignored/received scan-rib:running [100 prefixes checked every 60s] 0/0/0 queries sent/ignored/received Inconsistencies:0 confirmed, 0/16 recorded
Step 3
For each checker type, the output shows the number of prefixes that Cisco Express Forwarding must check and the number of seconds (the settle time) during which an inconsistency between RP and line card tables is ignored. The preceding output shows that 0 inconsistencies existed between these tables at the time the command was entered on the router. clear ip cef inconsistency Use this command to clear the Cisco Express Forwarding inconsistency statistics and records found by the Cisco Express Forwarding consistency checkers. For example:
Example:
Router# clear ip cef inconsistency
Step 4
clear cef linecard [slot-number] [adjacency | interface | prefix] Use this command to clear Cisco Express Forwarding information from line cards. For example:
Router#
Example:
Step 5
show ip cef inconsistency Use this command to verify that Cisco Express Forwarding statistics on inconsistencies are removed from the RP and the line cards. For example:
Example:
Router# show ip cef inconsistency Table consistency checkers (settle time 65s) lc-detect:running 0/0/0 queries sent/ignored/received scan-lc:running [100 prefixes checked every 60s] 0/0/0 queries sent/ignored/received scan-rp:running [100 prefixes checked every 60s] 0/0/0 queries sent/ignored/received scan-rib:running [1000 prefixes checked every 60s] 0/0/0 queries sent/ignored/received Inconsistencies:0 confirmed, 0/16 recorded
This sample output shows that four consistency checkers are enabled, that each checker sends 100 prefixes to be checked every 60 seconds, and that the time during which inconsistencies are ignored is 65 seconds. In this example, no inconsistencies were found.
Example:
Step 6
exit Use this command to exit to user EXEC mode. For example:
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 91
Example Enabling CEF Consistency Checkers Configuration Examples for CEF Consistency Checkers
Example:
Router# exit Router>
The RP is configured to send 3600 prefixes to the line cards every 225 seconds. After the prefixes are sent, the line cards are to wait 2500 seconds before signaling the RP to report an inconsistency (if there is one).
Additional References
Related Documents Related Topic Cisco IOS commands IP switching commands: complete command syntax, command modes, command history, defaults, usage guidelines, and examples. Troubleshooting tips for incomplete adjacencies Description of and troubleshooting information for the consistency checker available for the Cisco 7500 series and Cisco 12000 Series Internet routers Overview of the Cisco Express Forwarding feature Document Title Cisco IOS Master Commands List, All Releases Cisco IOS IP Switching Command Reference
Troubleshooting Incomplete Adjacencies with CEF Troubleshooting Prefix Inconsistencies with Cisco Express Forwarding Cisco Express Forwarding Overview
Tasks for verifying basic Cisco Express Forwarding Configuring Basic Cisco Express Forwarding for and distributed Cisco Express Forwarding operation Improved Performance, Scalability, and Resiliency in Dynamic Networks
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 92
Related Topic Tasks for enabling or disabling Cisco Express Forwarding or distributed Cisco Express Forwarding Tasks for configuring a load-balancing scheme for Cisco Express Forwarding Tasks for configuring epochs for Cisco Express Forwarding tables Tasks for configuring and verifying Cisco Express Forwarding network accounting
Document Title Enabling or Disabling Cisco Express Forwarding or Distributed Cisco Express Forwarding to Customize Switching and Forwarding for Dynamic Networks" Configuring a Load-Balancing Scheme for Cisco Express Forwarding Traffic Configuring Epochs to Clear and Rebuild Cisco Express Forwarding and Adjacency Tables Configuring Cisco Express Forwarding Network Accounting
Tasks for customizing the display of recorded Cisco Customizing the Display of Recorded Cisco Express Forwarding events Express Forwarding Events Causes of common Cisco Express Forwardingrelated error messages on platforms running distributed Cisco Express Forwarding switching (Cisco 7500 series routers and Cisco 12000 Series Internet routers) and how to troubleshoot them Standards Standard Title Troubleshooting Cisco Express Forwarding-Related Error Messages
No new or modified standards are supported by this -feature, and support for existing standards has not been modified by this feature. MIBs MIB No new or modified MIBs are supported by this feature, and support for existing MIBs has not been modified by this feature. MIBs Link To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL: http://www.cisco.com/go/mibs RFCs RFC No new or modified RFCs are supported by this feature, and support for existing RFCs has not been modified by this feature. Title --
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 93
Configuring CEF Consistency Checkers Feature Information for CEF Consistency Checkers
Technical Assistance Description The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password. Link http://www.cisco.com/cisco/web/support/ index.html
Feature Name
Releases
This table is intentionally left -blank because no features were introduced or modified in Cisco IOS Release 12.2(1) or later. This table will be updated when feature information is added to this module.
Glossary
adjacency --A relationship formed between selected neighboring routers and end nodes for the purpose of exchanging routing information. Adjacency is based upon the use of a common media segment by the routers and nodes involved. Cisco Express Forwarding --A Layer 3 switching technology. Cisco Express Forwarding can also refer to central Cisco Express Forwarding mode, one of two modes of Cisco Express Forwarding operation. Cisco Express Forwarding enables a Route Processor to perform express forwarding. Distributed Cisco Express Forwarding is the other mode of Cisco Express Forwarding operation. distributed Cisco Express Forwarding --A mode of Cisco Express Forwarding switching in which line cards (such as Versatile Interface Processor (VIP) line cards) maintain identical copies of the forwarding
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 94
information base (FIB) and adjacency tables. The line cards perform the express forwarding between port adapters; this relieves the Route Switch Processor of involvement in the switching operation. FIB --forwarding information base. A component of Cisco Express Forwarding that is conceptually similar to a routing table or information base. The router uses the FIB lookup table to make destination-based switching decisions during Cisco Express Forwarding operation. The router maintains a mirror image of the forwarding information in an IP routing table. IPC --interprocess communication. The mechanism that enables the distribution of Cisco Express Forwarding tables from the Route Switch Processor (RSP) to the line card when the router is operating in distributed Cisco Express Forwarding mode. LIB --label information base. A database used by a label switch router (LSR) to store labels learned from other LSRs, as well as labels assigned by the local LSR. line card --A general term for an interface processor that can be used in various Cisco products. For example, a Versatile Interface Processor (VIP) is a line card for the Cisco 7500 series router. MPLS --Multiprotocol Label Switching. An emerging industry standard for the forwarding of packets along the normal routing paths (sometimes called MPLS hop-by-hop forwarding). prefix --The network address portion of an IP address. A prefix is specified by a network and mask and is generally represented in the format network/mask. The mask indicates which bits are the network bits. For example, 1.0.0.0/16 means that the first 16 bits of the IP address are masked, making them the network bits. The remaining bits are the host bits. In this example, the network number is 10.0. RIB --Routing Information Base. A central repository of routes that contains Layer 3 reachability information and destination IP addresses or prefixes. The RIB is also known as the routing table. RP --Route Processor. The processor module in the Cisco 7000 series routers that contains the CPU, system software, and most of the memory components that are used in the router. It is sometimes called a supervisory processor. VPN --Virtual Private Network. The result of a router configuration that enables IP traffic to use tunneling to travel securely over a public TCP/IP network. VRF --A Virtual Private Network (VPN) routing/forwarding instance. A VRF consists of an IP routing table, a derived forwarding table, a set of interfaces that use the forwarding table, and a set of rules and routing protocols that determine what goes into the forwarding table. In general, a VRF includes the routing information that defines a customer VPN site that is attached to a PE router.
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1110R) Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 95
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 96
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 97
Cisco Platform Support for Central CEF and dCEF Information About CEF Network Accounting
If Cisco Express Forwarding is not enabled on your platform, the output for the show ip cefcommand looks like this:
Router# show ip cef %CEF not running
Distributed Cisco Express Forwarding is enabled by default on the Catalyst 6500 series switch, the Cisco 7500 series router, and the Cisco 12000 Series Internet Router. When distributed Cisco Express Forwarding is enabled on your platform, the line cards perform the express forwarding. If Cisco Express Forwarding is not enabled on your platform, use the ip cefcommand to enable (central) Cisco Express Forwarding or the ip cef distributed command to enable distributed Cisco Express Forwarding. Central Cisco Express Forwarding or distributed Cisco Express Forwarding has the following restrictions: The Cisco 12000 Series Internet routers operate only in distributed Cisco Express Forwarding mode. On these routers, you must not disable distributed Cisco Express Forwarding on an interface. If you enable Cisco Express Forwarding and then create an access list that uses the logkeyword, the packets that match the access list are not Cisco Express Forwarding switched. They are process switched. Logging disables Cisco Express Forwarding. Distributed Cisco Express Forwarding switching cannot be configured on the same VIP card on which distributed fast switching is configured. Distributed Cisco Express Forwarding is not supported on Cisco 7200 series routers.
See the Additional References, page 119 for links to more information on the features and functionality of Cisco Express Forwarding.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 98
The following sections explain how to collect and view the TMS using the command-line interface (CLI) and the NDA. For detailed instructions on using the NDA, see the Network Data Analyzer Installation and User Guide .
The intermediate address specified for the BGP route might be several hops away from the provider edge (PE) router. The next hop for the BGP route is the next hop for the intermediate address of the BGP route. The BGP route is called recursive, because it points through an intermediate address to an IGP route that provides the next hop for forwarding. However, a route lookup results in a next hop that is not directly reachable, as is the case with the BGP routes intermediate address. A recursive lookup to an IGP route is used to decide how to reach the indirect next hop. Cisco Express Forwarding represents IGP routes as nonrecursive entries and BGP routes as recursive entries that resolve through nonrecursive entries. Cisco Express Forwarding nonrecursive accounting counts the packets for all of the Cisco Express Forwarding recursive entries (from BGP routes) that resolve through a Cisco Express Forwarding nonrecursive entry and the packets for the nonrecursive entry (from IGP routes). The number of packets is totalled in one location. The packets forwarded based on a nonrecursive Cisco Express Forwarding entry can be split into two bins based on whether the input interface of the backbone router is configured as internal or external. Thus, all packets that arrive on external interfaces (external to the region of interest) and are forwarded based on a given IGP route (either directly or through a recursive BGP route) are counted together.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 99
How Backbone Routers Collect TMS Information About CEF Network Accounting
The following example shows how Cisco Express Forwarding nonrecursive accounting counts packets when BGP routes resolve to one IGP route and when they do not. A multiaccess network access point (NAP) has BGP routes referring to hosts on the NAP network. If the network is advertised as a single IGP route, all of the BGP routes to the various hosts at that NAP resolve to a single IGP route. Cisco Express Forwarding nonrecursive accounting counts the number of packets sent to all BGP destinations. If a network administrator instead advertises individual host routes from the NAP network to the IGP, Cisco Express Forwarding nonrecursive accounting counts packets to those hosts separately.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 100
backbone is represented by the darkly shaded routers and bold links. The lighter shaded and unshaded routers are outside the backbone.
Figure 6 Sample Network with Backbone Routers and Links
ISP 2 EGBP
Atlanta POP
The figure below shows an exploded view of the backbone router that links the Los Angeles point of presence (POP) in the figure above to the Atlanta POP. The bold line represents the backbone link going to the Atlanta POP. The figure below shows the following types of traffic that travel through the backbone router: The dotted line marked A represents traffic entering the backbone from a router that is not part of the backbone. This is called external traffic. The dotted lines marked B and D represent traffic that is exiting the backbone. This is called internal traffic.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 101
TMS Viewing Options TMS Displayed with the NDA Display Module
The dotted line marked C represents traffic that is not using the backbone and is not of interest to TMS.
Types of Traffic That Travel Through a Backbone Router
D
Figure 7
A B
47161
You can determine the amount of traffic the backbone handles by enabling a backbone router to track the number of packets and bytes that travel through the backbone router. You can separate the traffic into the categories "internal" and "external." You separate the traffic by designating incoming interfaces on the backbone router as internal or external. Once you enable a backbone router to collect TMS, the router starts counters, which dynamically update when network traffic passes through the backbone router. You can retrieve a snapshot of the TMS, either through a command to the backbone router or through the NDA. External traffic (path A in the figure above) is the most important for determining the amount of traffic that travels through a backbone router. Internal traffic (paths B and D in the figure above) is useful for ensuring that you are capturing all of the TMS data. When you receive a snapshot of the TMS, the packets and bytes are displayed in internal and external categories.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 102
Configuring CEF Network Accounting TMS Displayed with the NDA Display Module
(The view of data that the NDA Display module provides is wide. Slide the scroll bar to the right and left to see all of the data. The two figures below taken together show all of the columns of data.)
Figure 8 Displaying TMS Through the NDA (Part 1)
Figure 9
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 103
The binary file tmstats_binary contains the same information as the ASCII file, except in a space-efficient format. You can copy this file from the router and read it with any utility that accepts files in binary format. tmstats File Header Description The tmstats_ascii file header provides the address of the backbone router and information about how much time the router used to collect and export the TMS data. The header occupies one line and uses the following format:
VERSION 1|ADDR <address> |AGGREGATION TrafficMatrix.ascii|SYSUPTIME <seconds>| routerUTC <routerUTC> |NTP <synchronized|unsynchronized>|DURATION <aggregateTime> |
The table below describes the fields in the file header of the tmstats_ascii file.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 104
Table 10
Description File format version The IP address of the router The type of data being aggregated The time of export (in seconds) since the router booted The time of export (in seconds) since 1900-01-01 (Coordinated Universal Time (UTC)), as determined by the router An indication of whether or not the UTC of the router has been synchronized by the Network Time Protocol (NTP) with an authoritative time source, such as a radio clock or an atomic clock attached to a time server The time needed to capture the data (in seconds) (trailing |)
19
NTP
20
DURATION
Destination Prefix Record Description The destination prefix record displays the internal and external packets and bytes for the IGP route and uses the following format:
p| <destPrefix/Mask> | <creationSysUpTime> | <internalPackets> | <internalBytes> | <externalPackets> | <externalBytes>
The per-prefix records display information only about label switched traffic data. Label forwarding across a backbone router or switch, is based on either dynamic label switching or traffic engineered paths. The table below describes the fields in the destination prefix record.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 105
Table 11
Field <recordType>
Description p means that the record represents dynamic label switching (for example, LDP) data or headend traffic engineering (TE) tunnel traffic data. t means that the record contains TE tunnel midpoint data.
19
destPrefix/Mask
The IP prefix address/mask (in the format a.b.c.d/len) for this IGP route. How long the system had been running when the record was first created. Internal packet count. Internal byte count. External packet count. External byte count (no trailing |).
11
creationSysUpTime
The tunnel midpoint record displays the internal and external packets and bytes for the tunnel head and uses the following format:
t| <headAddr><tun_id> | <creationSysUpTime> | <internalPackets> | <internalBytes> | <externalPackets> | <externalBytes>
The table below describes the fields in the tunnel midpoint record.
Table 12 Tunnel Midpoint Record Fields
Field <recordType>
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 106
Description The IP address of the tunnel head and tunnel interface number. How long the system had been running when the record was first created. Internal packet count. Internal byte count. External packet count. External byte count (no trailing |).
21 21 21 20
Description File format version The IP address of the router The type of data being aggregated The time of export (in seconds) since router booted The time of export (in seconds) since 1900-01-01, as determined by the router
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 107
Field DURATION
Neighbor AS Record in the tmsasinfo File The neighbor AS record displays the neighbor AS and the underlying prefix/mask for each BGP route. The record uses the following format:
<nonrecursivePrefix/Mask> | <AS> | <destinationPrefix/Mask>
Field nonrecursivePrefix/Mask
Description The IP prefix address/mask (a.b.c.d/len format) for this IGP route The neighbor AS The prefix/mask for the Forwarding Information Base (FIB) entry (typically BGP route)
5 18
AS destinationPrefix/Mask
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 108
Enabling a Backbone Router to Collect TMS How to Configure CEF Network Accounting
After accounting information is collected for Cisco Express Forwarding or distributed Cisco Express Forwarding, you can display the statistics using the show ip cef command. To verify the statistics on a line card, use the show cef interface statisticscommand.
SUMMARY STEPS
1. enable 2. configure terminal 3. ip cef accounting {[non-recursive] [per-prefix] [prefix-length]} 4. exit
DETAILED STEPS
Command or Action Step 1 enable Purpose Enables privileged EXEC mode.
Example:
Router> enable
Example:
Router# configure terminal
Enables Cisco Express Forwarding network accounting. The non-recursive keyword enables you to count the number of packets and bytes express forwarded through nonrecursive prefixes.
Example:
Router(config)# ip cef accounting perprefix
This keyword is optional when the command is used in global configuration mode. The per-prefix keyword enables you to count the number of packets and bytes express forwarded to a destination IP address (or prefix). The prefix-length keyword enables accounting based on prefix length.
Step 4 exit
Example:
Router(config)# exit
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 109
Configuring CEF Network Accounting Using the CLI to Enable a Backbone Router to Collect TMS
accounting and setting the interfaces on the router to collect internal or external TMS. The internal and external settings are used only for TMS collection. The interfaces are set to internal by default.
Note
Make sure you configure the collection of internal and external TMS on the incoming interface of the backbone router. You can perform these tasks either through the CLI or through the NDA. The following sections explain each procedure: Using the CLI to Enable a Backbone Router to Collect TMS, page 110 Enabling the NDA to Collect TMS on a Backbone Router, page 112
SUMMARY STEPS
1. enable 2. configure terminal 3. ip cef 4. ip cef accounting {[non-recursive [per-prefix] [prefix-length]} 5. Do one of the following: interface type slot/port interface type slot/port-adapter/port
6. ip cef accounting non-recursive {external | internal} 7. exit 8. Repeat Steps 5, 6, and 7 for each incoming interface that you want to configure for TMS.
DETAILED STEPS
Command or Action Step 1 enable Purpose Enables privileged EXEC mode.
Example:
Router> enable
Example:
Router# configure terminal
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 110
Configuring CEF Network Accounting Using the CLI to Enable a Backbone Router to Collect TMS
Example:
Router(config)# ip cef
Enables Cisco Express Forwarding network accounting. The non-recursive keyword enables you to count the number of packets and bytes express forwarded through nonrecursive prefixes.
Example:
Router(config)# ip cef accounting non-recursive
This keyword is optional when the command is used in global configuration mode. The per-prefix keyword enables you to count the number of packets and bytes express forwarded to a destination (or prefix). The prefix-lengthkeyword enables accounting based on prefix length.
Step 5 Do one of the following: interface type slot/port interface type slot/port-adapter/port
Configures an interface type and enters interface configuration mode. The type argument specifies the type of interface to be configured. The slot/ argument specifies the slot number. See the appropriate hardware manual for slot and port information. The port argument specifies the port number. See the appropriate hardware manual for slot and port information. The port-adapter/ argument specifies the port adapter number. See the appropriate hardware manual for information about port adapter compatibility.
Example:
Router(config)# interface ethernet 1/1
Example:
This command specifies the interface on the backbone router that you intend to configure.
Example:
or
Example:
Router(config)# interface fastethernet 1/0/0
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 111
Configuring CEF Network Accounting Enabling the NDA to Collect TMS on a Backbone Router
Command or Action
Purpose
Step 6 ip cef accounting non-recursive {external Enables nonrecursive accounting on the router. | internal} The external keyword calls for a count of input traffic data in the nonrecursive external bin.
Example:
Router(config-if)# ip cef accounting non-recursive external
That is, this keyword sets the specified incoming interface so that it can collect data on traffic entering the backbone router from external sources. The internalkeyword calls for a count of input traffic data in the nonrecursive internal bin.
That is, this keyword sets the specified incoming interface so that it can collect data on internal traffic in the backbone router. Step 7 exit Exits to privileged EXEC mode.
Example:
Router(config-if)# exit
Step 8 Repeat Steps 5, 6, and 7 for each incoming interface that you want to configure for TMS.
--
SUMMARY STEPS
1. Open the Traffic Matrix Statistics Control window in the NDA. 2. Click the New button in the Traffic Matrix Statistics Control window. 3. Specify the new TMS collection parameters, using the Traffic Matrix Statistics Control window. 4. Click OK in the New Collection panel. 5. Select the TMS tab in the Router Configuration window in the NDA. 6. Set internal and external interfaces on the router. 7. Click Applyin the Router Configuration window.
DETAILED STEPS
Step 1 Step 2
Open the Traffic Matrix Statistics Control window in the NDA. For specific instructions, see the Network Data Analyzer Installation and User Guide . Click the New button in the Traffic Matrix Statistics Control window.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 112
Configuring CEF Network Accounting Enabling the NDA to Collect TMS on a Backbone Router
Step 3
If a valid directory of router configuration files exists on a designated Utility Server host in the network, the Traffic Matrix Statistics Control window shown in the figure below appears. Specify the new TMS collection parameters, using the Traffic Matrix Statistics Control window. The window incorporates a New Collection panel that enables you to define a new TMS collection process. To use the NDA for TMS collection, you must specify the following information: The name of the collection (Collection ID)--Enter an alphanumeric name of any length without embedded spaces for the TMS collection process on the selected router (see next bullet). The router from which you want to collect TMS--Use the drop-down box to choose the name of a network device where you want to collect TMS. How often and how long to collect TMS--Specify each of the following in minutes: How much time is to elapse before the TMS collection process begins ("Start in" field) The overall duration of the TMS collection process ("collect for" field) How often "snapshots" of the traffic counters in the selected router are to be exported to the designated TMS data repository ("every" field)
The window for entering this information on the NDA is similar to the one shown in the figure below.
Figure 10 Setting the NDA Traffic Matrix Statistics Control Window Collection Parameters
Step 4
Step 5
Step 6
Click OK in the New Collection panel. The Traffic Matrix Statistics Control window confirms the information you entered, and the new collection name appears at the top left corner of the window. Select the TMS tab in the Router Configuration window in the NDA. The TMS Router Configuration panel shown in the figure below appears. This panel enables you to configure network devices to export TMS data. (For instructions on locating the Router Configuration window, see the Network Data Analyzer Installation and User Guide .) Set internal and external interfaces on the router. The Router Configuration window allows you to set the interfaces on the backbone router to collect internal and external packet and byte data. By default, all interfaces are set to collect internal data. Single-selection buttons allow
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 113
Interpreting the tmstats File Enabling the NDA to Collect TMS on a Backbone Router
you to associate the interface with either internal data or external data. You can select only one radio button for an interface at one time. Set the interface to collect internal or external data by clicking the appropriate radio button. The window for selecting this information on the NDA is similar to the one shown in the figure below.
Figure 11 Setting the NDA Configuration Window
Step 7
Click Applyin the Router Configuration window. Any changes that you have made to the configuration parameters in the TMS Router Configuration panel are applied to the currently selected device. The Apply button affects only changes made in the panel where the button is located. When the NDA asks if you want to enable Cisco Express Forwarding, click Yes.
SUMMARY STEPS
1. more system:/vfiles/tmstats_ascii 2. Interpret the header and record information in the tmstats_ascii file.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 114
Viewing Information in the tmsasinfo File Enabling the NDA to Collect TMS on a Backbone Router
DETAILED STEPS
Step 1
more system:/vfiles/tmstats_ascii Enter this command on the backbone router to view the statistics in the ASCII file. For example:
Example:
Router# more system:/vfiles/tmstats_ascii VERSION 1|ADDR 172.27.32.24|AGGREGATION TrafficMatrix.ascii|SYSUPTIME 41428|routerUTC 3104467160| NTP unsynchronized|DURATION 1| p|10.1.0.0/16|242|1|50|2|100 p|172.27.32.0/22|242|0|0|0|0
Step 2
This is an example of a tmstats_ascii file. The example contains a header information and two records. The header information and each record begin on a separate line. A bar (|) separates consecutive fields within a header or record. The first field in a record specifies the type of record. Interpret the header and record information in the tmstats_ascii file. Each tmstats_ascii file displayed consists of header information and records. The file in the example in Step 1 contains header information and two destination prefix records. See thefollowing sections for a description of header and record information:
SUMMARY STEPS
1. more system:/vfiles/tmsasinfo 2. View the header and record information in the tmasinfo file.
DETAILED STEPS
Step 1
more system:/vfiles/tmsasinfo Enter this command on the backbone router to view the statistics in the tmsasinfo ASCII file. For example:
Example:
Router# more system:/vfiles/tmsasinfo VERSION 1|ADDR 10.10.10.10|AGGREGATION ASList.ascii|SYSUPTIME 619855|routerUTC 3334075555|DURATION 0
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 115
Verifying CEF Network Accounting Information Enabling the NDA to Collect TMS on a Backbone Router
10.1.1.2/32|65535|192.168.1.0/24 This is an example of a tmsasinfo file. The example contains a header information and one record. The header information and each record begin on a separate line. A bar (|) separates consecutive fields within a header or record.
Step 2
View the header and record information in the tmasinfo file. See the following sections for a description of header and record information:
SUMMARY STEPS
1. show ip cef summary 2. show ip cef interface - type number detail
DETAILED STEPS
Step 1
show ip cef summary Use this command to display the collected Cisco Express Forwarding network accounting information. For example:
Example:
Router# show ip cef summary IP CEF with switching (Table Version 19), flags=0x0 19 routes, 0 reresolve, 0 unresolved (0 old, 0 new), peak 1 19 leaves, 17 nodes, 19960 bytes, 58 inserts, 39 invalidations 0 load sharing elements, 0 bytes, 0 references universal per-destination load sharing algorithm, id E3296D5B 3(1) CEF resets, 0 revisions of existing leaves Resolution Timer: Exponential (currently 1s, peak 1s) 0 in-place/0 aborted modifications refcounts: 4628 leaf, 4608 node Adjacency Table has 7 adjacencies
This command shows sample accounting information on a router with Central Cisco Express Forwarding enabled. In this example, the Cisco Express Forwarding table contains a total or 19 entries, 0 entries need to be reresolved, 0 entries do not have resolved recursions, and the highest number of unresolved entries is 1. The Cisco Express Forwarding Trie contains 19 leaves and 17 nodes, which take up 19960 bytes of memory. The number of routes inserted into the table is 58 and 39 routes have been invalidated. This command shows no load sharing elements. The per-destination load sharing algorithm is configured and the identifier is E3296D5D. The following command is sample output for a router with distributed Cisco Express Forwarding enabled:
Example:
Router# show ip cef summary IP Distributed CEF with switching (Table Version 36), flags=0x0 16 routes, 0 reresolve, 0 unresolved (0 old, 0 new), peak 1 19 leaves, 17 nodes, 19960 bytes, 39 inserts, 20 invalidations 0 load sharing elements, 0 bytes, 0 references
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 116
Example Configuring CEF Network Accounting Configuration Examples for CEF Network Accounting
universal per-destination load sharing algorithm, id E3296D5B 2(0) CEF resets, 0 revisions of existing leaves Resolution Timer: Exponential (currently 1s, peak 1s) 0 in-place/0 aborted modifications refcounts: 4628 leaf, 4608 node
Step 2
show ip cef interface - type number detail Use this command to show detailed Cisco Express Forwarding network accounting information for a specified interface type and number. The following is sample output from the show ip cef detailcommand for interface Ethernet 0. It shows all the prefixes resolving through adjacency pointing to next hop interface Ethernet 0/0 and next hop interface IP address 172.29.233.33. For example, for Ethernet interface 0, IP address 172.29.233.33:
Example:
Router# show ip cef ethernet 0/0 detail IP Distributed CEF with switching (Table Version 136808) 45800 routes, 8 unresolved routes (0 old, 8 new) 45800 leaves, 2868 nodes, 8444360 bytes, 136808 inserts, 91008 invalidations 1 load sharing elements, 208 bytes, 1 references 1 CEF resets, 1 revisions of existing leaves refcounts: 527343 leaf, 465638 node 172.29.233.33/32, version 7417, cached adjacency 172.29.233.33 0 packets, 0 bytes, Adjacency-prefix via 172.29.233.33, Ethernet0/0, 0 dependencies next hop 172.29.233.33, Ethernet0/0 valid cached adjacency 0 packets, 0 bytes switched through the prefix tmstats: external 0 packets, 0 bytes internal 0 packets, 0 bytes
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 117
Example Enabling a Backbone Router to Collect TMS Data Configuration Examples for CEF Network Accounting
For a sample backbone configuration, see the Example IP CEF Nonrecursive Accounting, page 118 section.
Router A e1/0
(external)
Router D e1/1
(external)
Router A Configuration
Router(config)# ip cef Router(config)# ip cef accounting non-recursive Router(config)# interface e1/0 Router(config-if)# ip cef accounting non-recursive external
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 118
Router D Configuration
Router(config)# ip cef Router(config)# ip cef accounting non-recursive Router(config)# interface e1/1 Router(config-if)#
This example contains header information and two destination prefix records. The records represent dynamic label switching or traffic engineering (TE) tunnel data indicated by the initial "p."
Additional References
Related Documents Related Topic Cisco IOS commands IP switching commands: complete command syntax, command modes, command history, defaults, usage guidelines, and examples. Overview of the Cisco Express Forwarding feature Document Title Cisco IOS Master Commands List, All Releases Cisco IOS IP Switching Command Reference
Tasks for verifying basic Cisco Express Forwarding Configuring Basic Cisco Express Forwarding for and distributed Cisco Express Forwarding operation Improved Performance, Scalability, and Resiliency in Dynamic Networks
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 119
Related Topic Tasks for enabling or disabling Cisco Express Forwarding or distributed Cisco Express Forwarding Tasks for configuring load-balancing schemes for Cisco Express Forwarding Tasks for configuring Cisco Express Forwarding consistency checkers Tasks for configuring epochs for Cisco Express Forwarding tables
Document Title Enabling or Disabling Cisco Express Forwarding or Distributed Cisco Express Forwarding to Customize Switching and Forwarding for Dynamic Networks Configuring a Load-Balancing Scheme for Cisco Express Forwarding Traffic Configuring Cisco Express Forwarding Consistency Checkers for Route Processors and Line Cards Configuring Epochs to Clear and Rebuild Cisco Express Forwarding and Adjacency Tables
Tasks for customizing the display of recorded Cisco Customizing the Display of Recorded Cisco Express Forwarding events Express Forwarding Events How to determine which Cisco IOS switching or forwarding path your packets are taking How to use the Cisco Network Data Analyzer to view TMS Commands for configuring and monitoring Cisco Express Forwarding Standards Standard Title How to Verify Cisco Express Forwarding Switching Network Data Analyzer Installation and User Guide Cisco IOS IP Switching Command Reference
No new or modified standards are supported by this -feature, and support for existing standards has not been modified by this feature. MIBs MIB No new or modified MIBs are supported by this feature, and support for existing MIBs has not been modified by this feature. MIBs Link To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL: http://www.cisco.com/go/mibs RFCs RFC No new or modified RFCs are supported by this feature, and support for existing RFCs has not been modified by this feature. Title --
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 120
Configuring CEF Network Accounting Feature Information for CEF Network Accounting
Technical Assistance Description The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password. Link http://www.cisco.com/cisco/web/support/ index.html
Feature Name This table is intentionally left blank because no features were introduced or modified in Cisco IOS Release 12.2(1) or later.
Releases --
Glossary
AS --autonomous system. A collection of networks under a common administration sharing a common routing strategy. Autonomous systems are subdivided by areas. An autonomous system must be assigned a unique 16-bit number by the Internet Assigned Numbers Authority (IANA). adjacency --A relationship formed between selected neighboring routers and end nodes for the purpose of exchanging routing information. Adjacency is based upon the use of a common media segment by the routers and nodes involved. BGP --Border Gateway Protocol. An interdomain routing protocol that replaces Exterior Gateway Protocol (EGP). BGP exchanges reachability information with other BGP systems. It is defined by RFC 1163. Cisco Express Forwarding --A Layer 3 switching technology. Cisco Express Forwarding can also refer to central Cisco Express Forwarding mode, one of two modes of Cisco Express Forwarding operation. Cisco Express Forwarding enables a Route Processor to perform express forwarding. Distributed Cisco Express Forwarding is the other mode of Cisco Express Forwarding operation. distributed Cisco Express Forwarding --A type of Cisco Express Forwarding switching in which line cards (such as Versatile Interface Processor (VIP) line cards) maintain identical copies of the Forwarding
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 121
Information Base (FIB) and adjacency tables. The line cards perform the express forwarding between port adapters; this relieves the Route Switch Processor of involvement in the switching operation. FIB --forwarding information base. A component of Cisco Express Forwarding. The router uses the FIB lookup table to make destination-based switching decisions during Cisco Express Forwarding operation. The router maintains a mirror image of the forwarding information in an IP routing table. IGP -- Interior Gateway Protocol. An internet protocol used to exchange routing information within an autonomous system. Examples of common Internet IGPs include Interior Gateway Routing Protocol (IGRP), Open Shortest Path First (OSPF), and Routing Information Protocol (RIP). label --A short fixed-length data construct that tells switching nodes how to forward data (packets or cells). line card --A general term for an interface processor that can be used in various Cisco products. For example, a Versatile Interface Processor (VIP) is a line card for the Cisco 7500 series router. prefix --The network address portion of an IP address. A prefix is specified by a network and mask and is generally represented in the format network/mask. The mask indicates which bits are the network bits. For example, 1.0.0.0/16 means that the first 16 bits of the IP address are masked, making them the network bits. The remaining bits are the host bits. In this example, the network number is 10.0. RP --Route Processor. The processor module in the Cisco 7000 series routers that contains the CPU, system software, and most of the memory components that are used in the router. It is sometimes called a supervisory processor. TE --traffic engineering. Techniques and processes that cause routed traffic to travel through the network on a path other than the one that would have been chosen if standard routing methods were used. traffic engineering tunnel --A label-switched tunnel that is used for traffic engineering. Such a tunnel is set up through means other than normal Layer 3 routing; it is used to direct traffic over a path different from the one that Layer 3 routing could cause the tunnel to take. TMS --Traffic Matrix Statistics. An IOS feature that enables an administrator to capture and analyze traffic data entering a backbone that is running the Border Gateway Protocol (BGP). This feature also allows an administrator to determine the neighbor autonomous systems of a BGP destination VPN --Virtual Private Network. The result of a router configuration that enables IP traffic to use tunneling to travel securely over a public TCP/IP network. VRF --A Virtual Private Network (VPN) routing/forwarding instance. A VRF consists of an IP routing table, a derived forwarding table, a set of interfaces that use the forwarding table, and a set of rules and routing protocols that determine what goes into the forwarding table. In general, a VRF includes the routing information that defines a customer VPN site that is attached to a PE router.
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1110R) Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 122
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 123
Cisco Platform Support for Central CEF and dCEF Prerequisites for the Display of Recorded CEF Events
If Cisco Express Forwarding is not enabled on your platform, the output for the show ip cefcommand looks like this:
Router# show ip cef %CEF not running
Distributed Cisco Express Forwarding is enabled by default on the Catalyst 6500 series switch, the Cisco 7500 series router, and the Cisco 12000 Series Internet Router. When distributed Cisco Express Forwarding is enabled on your platform, the line cards perform the express forwarding. If Cisco Express Forwarding is not enabled on your platform, use the ip cef command to enable (central) Cisco Express Forwarding or the ip cef distributed command to enable distributed Cisco Express Forwarding.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 124
Customizing CEF Event Logging How to Customize the Display of Recorded CEF Events
technical personnel can use the event log to help resolve problems with the Cisco Express Forwarding feature. When the Cisco Express Forwarding event log has reached its capacity, the oldest event is written over by the newest event. You can use the following commands to change the capacity of the Cisco Express Forwarding event log: The ip cef table event-logcommand allows you to increase or decrease the number of entries that the event log can hold. The clear ip cef event-log command allows you to clear all event log entries.
You can use the following commands to display Cisco Express Forwarding events: The show ip cef eventscommand displays all recorded Cisco Express Forwarding forwarding information base (FIB) and adjacency events. The debug ip cef command and the events keyword record general Cisco Express Forwarding events as they occur. The debug ip cef tablecommand enables the real-time collection of events that affect entries in the Cisco Express Forwarding tables.
SUMMARY STEPS
1. enable 2. configure terminal 3. ip cef table event-log [size event-number] [match ip-prefix mask] [vrf vrf-name] 4. exit
DETAILED STEPS
Command or Action Step 1 enable Purpose Enables privileged EXEC mode.
Example:
Router> enable
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 125
Displaying CEF Event-Log Information How to Customize the Display of Recorded CEF Events
Example:
Router# configure terminal
Step 3 ip cef table event-log [size event-number] [match ip-prefix mask] [vrf vrf-name]
Controls Cisco Express Forwarding table event-log characteristics. The size event-number keyword-argument pair specifies the number of event entries. The range is from 1 to 4294967295. The match keyword logs events that match the specified prefix and mask. The ip-prefix argument is the specified IP prefix to match in dotted decimal format (A.B.C.D). The mask argument is the network mask written as A.B.C.D. The vrf vrf-name keyword-argument pair displays the named Virtual Private Network (VPN) routing/forwarding instance (VRF) Cisco Express Forwarding table.
Example:
Router(config)# ip cef table eventlog size 25000
Step 4 exit
Example:
Router(config)# exit
SUMMARY STEPS
1. enable 2. clear ip cef event-log 3. debug ip cef table 4. show ip cef events summary 5. show ip cef events within seconds 6. exit
DETAILED STEPS
Step 1
enable Use this command to enable privileged EXEC mode. For example:
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 126
Customizing the Display of Recorded CEF Events How to Customize the Display of Recorded CEF Events
Example:
Router> enable
Step 2
Enter your password if prompted. clear ip cef event-log Use this command to clear the Cisco Express Forwarding event-log buffer. For example:
Router#
Example:
Step 3
debug ip cef table Use this command to enable the collection of events that affect entries in the Cisco Express Forwarding tables. For example:
Example:
Router# debug ip cef table 01:25:46:CEF-Table:Event up, 10.1.1.1/32 (rdbs:1, flags:1000000) 01:25:46:CEF-IP:Checking dependencies of 0.0.0.0/0 01:25:47:CEF-Table:attempting to resolve 10.1.1.1/32 01:25:47:CEF-IP:resolved 10.1.1.1/32 via 10.9.104.1 to 10.9.104.1 Ethernet2/0/0 01:26:02:CEF-Table:Event up, default, 0.0.0.0/0 (rdbs:1, flags:400001) 01:26:02:CEF-IP:Prefix exists - no-op change
Step 4
show ip cef events summary Use this command to display a summary of recorded Cisco Express Forwarding FIB and adjacency events. For example:
Example:
Router# show ip cef events summary CEF table events summary: Storage for 10000 events (320000 bytes), 822/0 events recorded/ignored Matching all events, traceback depth 16 Last event occurred 00:00:06.516 ago.
Step 5
show ip cef events within seconds Use this command to display Cisco Express Forwarding events that occurred within (during) a specified number of seconds. For example, within 1 second:
Example:
Router# show ip cef events within 1 CEF table events (storage for 10000 events, 14 events recorded) +00:00:00.000:[Default-table] *.*.*.*/* New FIB table +00:00:00.000:[Default-table] 10.1.80.194/32 FIB insert in +00:00:00.000:[Default-table] 10.1.80.0/32 FIB insert in +00:00:00.000:[Default-table] 10.1.80.255/32 FIB insert in +00:00:00.004:[Default-table] 10.1.80.0/24 FIB insert in +00:00:00.004:[Default-table] 10.1.80.0/24 NBD up +00:00:00.004:[Default-table] 239.224.0.0/4 FIB insert in +00:00:00.012:[Default-table] 10.1.80.0/24 NBD up +00:00:00.012:[Default-table] 239.224.0.0/4 FIB remove +00:00:00.016:[Default-table] 239.224.0.0/4 FIB insert in +00:00:05.012:[Default-table] 239.224.0.0/4 FIB remove
[OK] [OK] [OK] [OK] [OK] [OK] [OK] [Ignr] [OK] [OK] [OK]
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 127
Example Customizing CEF Event Logging Configuration Examples for the Display of Recorded CEF Events
+00:00:05.012:[Default-table] 239.224.0.0/4 FIB insert in mtrie +00:00:28.440:[Default-table] 239.224.0.0/4 FIB remove +00:00:28.440:[Default-table] 239.224.0.0/4 FIB insert in mtrie First event occured at 00:00:36.568 (00:04:40.756 ago) Last event occured at 00:01:05.008 (00:04:12.316 ago)
Step 6
exit Use this command to exit to user EXEC mode. For example:
Example:
Router# exit Router>
In this example, the Cisco Express Forwarding event log is configured to hold 25000 entries.
Additional References
Related Documents Related Topic Cisco IOS commands Cisco Express Forwarding commands Overview of the Cisco Express Forwarding feature Document Title Cisco IOS Master Commands List, All Releases Cisco IOS IP Switching Command Reference Cisco Express Forwarding Overview
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 128
Related Topic
Document Title
Tasks for verifying basic Cisco Express Forwarding Configuring Basic Cisco Express Forwarding for and distributed Cisco Express Forwarding operation Improved Performance, Scalability, and Resiliency in Dynamic Networks Tasks for enabling or disabling Cisco Express Forwarding or distributed Cisco Express Forwarding Tasks for configuring load-balancing schemes for Cisco Express Forwarding Tasks for configuring Cisco Express Forwarding consistency checkers Tasks for configuring epochs for Cisco Express Forwarding tables Tasks for configuring and verifying Cisco Express Forwarding network accounting Enabling or Disabling Cisco Express Forwarding or Distributed Cisco Express Forwarding to Customize Switching and Forwarding for Dynamic Networks Configuring a Load-Balancing Scheme for Cisco Express Forwarding Traffic Configuring Cisco Express Forwarding Consistency Checkers for Route Processors and Line Cards Configuring Epochs to Clear and Rebuild Cisco Express Forwarding and Adjacency Tables Configuring Cisco Express Forwarding Network Accounting
Tasks for customizing the display of recorded Cisco Customizing the Display of Cisco IOS Event Trace Express Forwarding events trace messages for Messages Cisco IOS Releases 12.2(25)S, 12.2(33)SB, 12.2(33)SRA, 12.2.(33)SXH, 12.4(20)T and later releases Causes of common Cisco Express Forwardingrelated error messages on platforms running distributed Cisco Express Forwarding switching (Cisco 7500 series routers and Cisco 12000 series Internet routers) and how to troubleshoot them Standards Standards Title Troubleshooting Cisco Express Forwarding-Related Error Messages
No new or modified standards are supported by this -feature, and support for existing standards has not been modified by this feature. MIBs MIBs No new or modified MIBs are supported by this feature, and support for existing MIBs has not been modified by this feature. MIBs Link To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL: http://www.cisco.com/go/mibs
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 129
Customizing the Display of Recorded CEF Events Feature Information for the Display of Recorded CEF Events
RFCs RFCs No new or modified RFCs are supported by this feature, and support for existing RFCs has not been modified by this feature. Technical Assistance Description The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password. Link http://www.cisco.com/cisco/web/support/ index.html Title --
Feature Name
Releases
This table is intentionally left -blank because no features were introduced or modified in Cisco IOS Release 12.2(1) or later. This table will be updated when feature information is added to this module.
Glossary
adjacency --A relationship formed between selected neighboring routers and end nodes for the purpose of exchanging routing information. Adjacency is based upon the use of a common media segment by the routers and nodes involved.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 130
Cisco Express Forwarding --A Layer 3 switching technology. Cisco Express Forwarding can also refer to central Cisco Express Forwarding mode, one of two modes of Cisco Express Forwarding operation. Cisco Express Forwarding enables a Route Processor to perform express forwarding. Distributed Cisco Express Forwarding is the other mode of Cisco Express Forwarding operation. distributed Cisco Express Forwardin g--A mode of Cisco Express Forwarding operation in which line cards (such as Versatile Interface Processor (VIP) line cards) maintain identical copies of the forwarding information base (FIB) and adjacency tables. The line cards perform the express forwarding between port adapters; this relieves the Route Switch Processor of involvement in the switching operation. FIB --forwarding information base. A component of Cisco Express Forwarding that is conceptually similar to a routing table or information base. The router uses the FIB lookup table to make destination-based switching decisions during Cisco Express Forwarding operation. The router maintains a mirror image of the forwarding information in an IP routing table. line card --A general term for an interface processor that can be used in various Cisco products. For example, a Versatile Interface Processor (VIP) is a line card for the Cisco 7500 series router. prefix --The network address portion of an IP address. A prefix is specified by a network and mask and is generally represented in the format network/mask. The mask indicates which bits are the network bits. For example, 1.0.0.0/16 means that the first 16 bits of the IP address are masked, making them the network bits. The remaining bits are the host bits. In this example, the network number is 10.0. VPN --Virtual Private Network. The result of a router configuration that enables IP traffic to use tunneling to travel securely over a public TCP/IP network. VRF --A Virtual Private Network (VPN) routing/forwarding instance. A VRF consists of an IP routing table, a derived forwarding table, a set of interfaces that use the forwarding table, and a set of rules and routing protocols that determine what goes into the forwarding table. In general, a VRF includes the routing information that defines a customer VPN site that is attached to a PE router.
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1110R) Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 131
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 132
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 133
Cisco Platform Support for Central CEF and dCEF Prerequisites for the Display of CEF Event Trace Messages
If Cisco Express Forwarding is not enabled on your platform, the output for the show ip cefcommand looks like this:
Router# show ip cef %CEF not running
Distributed Cisco Express Forwarding is enabled by default on the Catalyst 6500 series switch, the Cisco 7500 series router, and the Cisco 12000 Series Internet Router. When distributed Cisco Express Forwarding is enabled on your platform, the line cards perform the express forwarding. If Cisco Express Forwarding is not enabled on your platform, use the ip cefcommand to enable (central) Cisco Express Forwarding or the ip cef distributed command to enable distributed Cisco Express Forwarding.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 134
Overview of CEF Event Trace Function CEF Event Tracing for IPv4 Events
You can use the following commands to display Cisco Express Forwarding events: The show monitor event-trace cef allcommand displays all event trace messages currently in memory for Cisco Express Forwarding. The debug ip cef command and the events keyword record general Cisco Express Forwarding events as they occur. The debug ip cef tablecommand enables the real-time collection of events that affect entries in the Cisco Express Forwarding tables.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 135
Customizing CEF Event Tracing CEF Event Tracing for IPv6 Events
default. The command interface for event tracing allows you to change the default value in one of two ways: using the monitor event-trace cef ipv4command in privileged EXEC mode or using the monitor event-trace cef ipv4command in global configuration mode. To configure the file in which you want to save trace information for Cisco Express Forwarding IPv4 events, use the monitor event-trace cef ipv4command in global configuration mode. By default, the trace messages are saved in a binary format. If you want to save trace messages in ASCII format, possibly for additional application processing, use the monitor event-trace cef ipv4 dump pretty command in privileged EXEC mode. The amount of data collected from the trace depends on the trace message size configured using the monitor event-trace cef ipv4command for each instance of a trace. To determine whether event tracing is enabled by default for Cisco Express Forwarding, use the show monitor event-trace cef ipv4command to display trace messages. To specify the trace call stack at tracepoints, you must first clear the trace buffer.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 136
Customizing the Display of CEF Event Trace Messages How to Customize the Display of CEF Event Trace Messages
SUMMARY STEPS
1. enable 2. configure terminal 3. monitor event-trace cef {dump-file dump-file-name | {events | interface} {disable | dump-file dumpfile-name| enable | size number | stacktrace [depth]}} 4. exit 5. monitor event-trace cef {dump [merged pretty | pretty] | {events | interface | ipv4 | ipv6} {clear | continuous [cancel] | disable | dump [pretty] | enable | one-shot}} 6. disable
DETAILED STEPS
Command or Action Step 1 enable Purpose Enables privileged EXEC mode.
Example:
Router> enable
Example:
Router# configure terminal
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 137
Customizing the Display of CEF Event Trace Messages How to Customize the Display of CEF Event Trace Messages
Command or Action Step 3 monitor event-trace cef {dump-file dump-file-name | {events | interface} {disable | dump-file dump-file-name| enable | size number | stacktrace [depth]}}
Purpose Configures event tracing for Cisco Express Forwarding. The dump-file dump-file-name keyword and argument pair specify the file to which event trace messages are written from memory on the networking device. The maximum length of the filename (path and filename) is 100 characters, and the path can point to flash memory on the networking device or to a TFTP or FTP server. The eventskeyword turns on event tracing for Cisco Express Forwarding events. The interface keyword turns on event tracing for Cisco Express Forwarding interface events. The disable keyword turns off event tracing for Cisco Express Forwarding events. The enable keyword turns on event tracing for Cisco Express Forwarding events if it had been enabled with the monitor event-trace cef privileged EXEC command. The size number keyword and argument pair sets the number of messages that can be written to memory for a single instance of a trace. Range: 1 to 65536. default. To display the size parameter, use the show monitor eventtrace cef events parameters command. The stacktrace keyword enables the stack trace at tracepoints. The depth argument specifies the depth of the stack trace stored. Range: 1 to 16.
Example:
Router(config)# monitor event-trace cef dump-file tftp://172.16.10.5/ cef-events
Note Some Cisco IOS software subsystem components set the size by
Step 4 exit
Example:
Router(config)# exit
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 138
Customizing CEF Event Tracing for IPv4 Events How to Customize the Display of CEF Event Trace Messages
Command or Action
Purpose
Step 5 monitor event-trace cef {dump [merged Monitors and controls the event trace function for Cisco Express Forwarding. pretty | pretty] | {events | interface | ipv4 The dump keyword writes the event trace results to the file configured | ipv6} {clear | continuous [cancel] | with the monitor event-trace cefglobal configuration command. The disable | dump [pretty] | enable | onetrace messages are saved in binary format. shot}} The merged pretty keywords sort all event trace entries by time and write the entries to a file in ASCII format. The pretty keyword saves the event trace message in ASCII format. Example: The events keyword monitors Cisco Express Forwarding events. Router# monitor event-trace cef The interfacekeyword monitors Cisco Express Forwarding interface events dump pretty events. The ipv4keyword monitors Cisco Express Forwarding IPv4 events. The ipv6 keyword monitors Cisco Express Forwarding IPv6 events. The clear keyword clears existing trace messages for Cisco Express Forwarding from memory on the networking device. The continuous keyword continuously displays the latest event trace entries. The cancel keyword cancels the continuous display of the latest trace entries. The disable keyword turns off Cisco Express Forwarding event tracing. The enable keyword turns on Cisco Express Forwarding event tracing. The one-shot keyword Clears any existing trace information from memory, starts event tracing again, and disables the trace when the size of the trace message file configured in the global configuration command is exceeded. Step 6 disable Exits to user EXEC mode.
Example:
Router# disable
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 139
Customizing the Display of CEF Event Trace Messages How to Customize the Display of CEF Event Trace Messages
SUMMARY STEPS
1. enable 2. configure terminal 3. monitor event-trace cef ipv4 {disable | distribution |dump-file dump-file-name| enable | match {global | ip-address mask} | size number | stacktrace [depth] | vrf vrf-name [distribution | match {global | ip-address mask}]} 4. exit 5. monitor event-trace cef ipv4 {clear | continuous [cancel] | disable | dump [pretty] | enable | oneshot} 6. disable
DETAILED STEPS
Command or Action Step 1 enable Purpose Enables privileged EXEC mode.
Example:
Router> enable
Example:
Router# configure terminal
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 140
Customizing the Display of CEF Event Trace Messages How to Customize the Display of CEF Event Trace Messages
Command or Action Step 3 monitor event-trace cef ipv4 {disable | distribution |dump-file dump-file-name| enable | match {global | ip-address mask} | size number | stacktrace [depth] | vrf vrfname [distribution | match {global | ipaddress mask}]}
Purpose Configures event-tracing for Cisco Express Forwarding IPv4 events. The disable keyword turns off event tracing for Cisco Express Forwarding IPv4 events. The distribution keyword logs events related to the distribution of Cisco Express Forwarding Forwarding Information Base (FIB) tables to the line cards The dump-file dump-file-name keyword and argument pair specify the file to which event trace messages are written from memory on the networking device. The maximum length of the filename (path and filename) is 100 characters, and the path can point to flash memory on the networking device or to a TFTP or FTP server. The enable keyword turns on event tracing for Cisco Express Forwarding IPv4 events if it had been enabled with the monitor event-trace cef privileged EXEC command. The matchkeyword turns on event tracing for Cisco Express Forwarding IPv4 events that matches global events or events that match a specific network address The globalkeyword specifies global events. The ip-address maskargumentsspecify an IP address in A.B.C.D format and a subnet mask in A.B.C.D format. The size number keyword and argument pair sets the number of messages that can be written to memory for a single instance of a trace. Range: 1 to 65536. default. To display the size parameter, use the show monitor eventtrace cef ipv4 parameters command. The stacktrace keyword enables the stack trace at tracepoints. The depth argument specifies the depth of the stack trace stored. Range: 1 to 16. The vrf vrf-name keyword and argument pair turns on event tracing for a Cisco Express Forwarding IPv4 VRF table. The vrf-name argument specifies the name of the VRF
Example:
Router(config)# monitor event-trace cef ipv4 size 10000
Note Some Cisco IOS software subsystem components set the size by
Step 4 exit
Example:
Router(config)# exit
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 141
Customizing CEF Event Tracing for IPv6 Events How to Customize the Display of CEF Event Trace Messages
Command or Action Step 5 monitor event-trace cef ipv4 {clear | continuous [cancel] | disable | dump [pretty] | enable | one-shot}
Purpose Monitors and controls the event trace function for Cisco Express Forwarding IPv4 events. The clear keyword clears existing trace messages for Cisco Express Forwarding from memory on the networking device. The continuous keyword continuously displays the latest event trace entries. The cancel keyword cancels the continuous display of the latest trace entries. The disable keyword turns off Cisco Express Forwarding event tracing. The dump keyword writes the event trace results to the file configured with the global configuration monitor event-trace cef command. The trace messages are saved in binary format. The pretty keyword saves the event trace message in ASCII format. The enable keyword turns on Cisco Express Forwarding event tracing. The one-shot keyword clears any existing trace information from memory, starts event tracing again, and disables the trace when the size of the trace message file configured in the global configuration command is exceeded.
Example:
Router# monitor event-trace cef ipv4 continuous
Step 6 disable
Example:
Router# disable
SUMMARY STEPS
1. enable 2. configure terminal 3. monitor event-trace cef ipv4 {disable | distribution | dump-file dump-file-name| enable | match {global | ipv6-address/n} | size number | stacktrace [depth] | vrf vrf-name [distribution | match {global | ipv6-address/n}]} 4. exit 5. monitor event-trace cef ipv6 {clear | continuous [cancel] | disable | dump [pretty] | enable | oneshot}} 6. disable
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 142
Customizing the Display of CEF Event Trace Messages How to Customize the Display of CEF Event Trace Messages
DETAILED STEPS
Command or Action Step 1 enable Purpose Enables privileged EXEC mode.
Example:
Router> enable
Example:
Router# configure terminal
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 143
Customizing the Display of CEF Event Trace Messages How to Customize the Display of CEF Event Trace Messages
Command or Action Step 3 monitor event-trace cef ipv4 {disable | distribution | dump-file dump-file-name| enable | match {global | ipv6-address/n} | size number | stacktrace [depth] | vrf vrfname [distribution | match {global | ipv6address/n}]}
Purpose Configures event-tracing for Cisco Express Forwarding IPv6 events. The disable keyword turns off event tracing for Cisco Express Forwarding IPv6 events. The distribution keyword logs events related to the distribution of Cisco Express Forwarding FIB tables to the line cards. The dump-file dump-file-name keyword and argument pair specify the file to which event trace messages are written from memory on the networking device. The maximum length of the filename (path and filename) is 100 characters, and the path can point to flash memory on the networking device or to a TFTP or FTP server. The enable keyword turns on event tracing for Cisco Express Forwarding IPv6 events if it had been enabled with the monitor event-trace cef privileged EXEC command. The matchkeyword turns on event tracing for Cisco Express Forwarding IPv6 events that matches global events or events that match a specific network address. The globalkeyword specifies global events. The ipv6-address / nargument specifies an IPv6 address. This address must be in the form documented in RFC 2373: the address is specified in hexadecimals using 16-bit values between colons. The slash followed by a number (/ n) indicates the number of bits that do not change. Range: 0 to 128 The size number keyword and argument pair sets the number of messages that can be written to memory for a single instance of a trace. Range: 1 to 65536. default. To display the size parameter, use the show monitor eventtrace cef ipv6 parameters command. The stacktrace keyword enables the stack trace at tracepoints. The depth argument specifies the depth of the stack trace stored. Range: 1 to 16. The vrf vrf-name keyword and argument pair turns on event tracing for a Cisco Express Forwarding IPv6 VRF table. The vrf-name argument specifies the name of the VRF
Example:
Router(config)# monitor event-trace cef ipv6 match global
Note Some Cisco IOS software subsystem components set the size by
Step 4 exit
Example:
Router(config)# exit
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 144
Displaying CEF Event Trace Information How to Customize the Display of CEF Event Trace Messages
Command or Action Step 5 monitor event-trace cef ipv6 {clear | continuous [cancel] | disable | dump [pretty] | enable | one-shot}}
Purpose Monitors and controls the event trace function for Cisco Express Forwarding IPv6 events. The clear keyword clears existing trace messages for Cisco Express Forwarding from memory on the networking device. The continuous keyword continuously displays the latest event trace entries. The cancel keyword cancels the continuous display of the latest trace entries. The disable keyword turns off Cisco Express Forwarding event tracing. The dump keyword writes the event trace results to the file configured with the global configuration monitor event-trace cef command. The trace messages are saved in binary format. The pretty keyword saves the event trace message in ASCII format. The enable keyword turns on Cisco Express Forwarding event tracing. The one-shot keyword Clears any existing trace information from memory, starts event tracing again, and disables the trace when the size of the trace message file configured in the global configuration command is exceeded.
Example:
Router# monitor event-trace cef ipv6 one-shot
Step 6 disable
Example:
Router# disable
SUMMARY STEPS
1. enable 2. monitor event-trace cef events clear 3. debug ip cef table 4. show monitor events-trace cef all 5. show monitor event-trace cef latest 6. show monitor event-trace cef events all 7. show monitor event-trace cef interface latest 8. show monitor event-trace cef ipv4 all 9. show monitor event-trace cef ipv6 parameters 10. disable
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 145
Customizing the Display of CEF Event Trace Messages How to Customize the Display of CEF Event Trace Messages
DETAILED STEPS
Step 1
enable Use this command to enable privileged EXEC mode. Enter your password if prompted. For example:
Example:
Router> enable Router#
Step 2
monitor event-trace cef events clear Use this command to clear the Cisco Express Forwarding event trace buffer. For example:
Router#
Example:
Step 3
debug ip cef table Use this command to display events that affect entries in the Cisco Express Forwarding tables. For example:
Example:
Router# debug ip cef table 01:25:46:CEF-Table:Event up, 10.1.1.1/32 (rdbs:1, flags:1000000) 01:25:46:CEF-IP:Checking dependencies of 0.0.0.0/0 01:25:47:CEF-Table:attempting to resolve 10.1.1.1/32 01:25:47:CEF-IP:resolved 10.1.1.1/32 via 10.9.104.1 to 10.9.104.1 Ethernet2/0/0 01:26:02:CEF-Table:Event up, default, 0.0.0.0/0 (rdbs:1, flags:400001) 01:26:02:CEF-IP:Prefix exists - no-op change
Step 4
show monitor events-trace cef all Use this command to display event trace messages for Cisco Express Forwarding. For example:
Example:
Router# show monitor event-trace cef all cef_events: *Jul 22 20:14:58.999: SubSys ipv4fib_ios_def_cap init *Jul 22 20:14:58.999: SubSys ipv6fib_ios_def_cap init *Jul 22 20:14:58.999: Inst unknown -> RP *Jul 22 20:14:58.999: SubSys fib_ios_chain init *Jul 22 20:14:59.075: SubSys fib init *Jul 22 20:14:59.075: SubSys ipv4fib init *Jul 22 20:14:59.075: SubSys fib_ios init *Jul 22 20:14:59.075: SubSys fib_ios_if init *Jul 22 20:14:59.075: SubSys ipv4fib_ios init *Jul 22 20:14:59.075: Flag Common CEF enabled set to yes *Jul 22 20:14:59.075: Flag IPv4 CEF enabled set to yes *Jul 22 20:14:59.075: Flag IPv4 CEF switching enabled set to yes *Jul 22 20:14:59.075: GState CEF enabled *Jul 22 20:14:59.075: SubSys ipv6fib_ios init *Jul 22 20:14:59.075: SubSys ipv4fib_util init *Jul 22 20:14:59.075: SubSys ipv4fib_les init *Jul 22 20:15:02.907: Process Background created *Jul 22 20:15:02.907: Flag IPv4 CEF running set to yes *Jul 22 20:15:02.907: Process Background event loop enter
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 146
Customizing the Display of CEF Event Trace Messages How to Customize the Display of CEF Event Trace Messages
*Jul 22 20:15:02.927: Flag cef_interface: *Jul 22 20:14:58.999: *Jul 22 20:14:58.999: *Jul 22 20:14:58.999: *Jul 22 20:14:58.999: *Jul 22 20:14:58.999: *Jul 22 20:14:58.999: *Jul 22 20:14:58.999: *Jul 22 20:14:58.999: *Jul 22 20:14:58.999: *Jul 22 20:14:58.999: . . . Et0/0 Et0/1 Et0/2 Et0/3 Et1/0 Et1/1 Et1/2 Et1/3 Se2/0 Se2/1
IPv4 CEF switching running set to yes (hw 3) SWvecLES <unknown> (hw 4) SWvecLES <unknown> (hw 5) SWvecLES <unknown> (hw 6) SWvecLES <unknown> (hw 7) SWvecLES <unknown> (hw 8) SWvecLES <unknown> (hw 9) SWvecLES <unknown> (hw 10) SWvecLES <unknown> (hw 11) SWvecLES <unknown> (hw 12) SWvecLES <unknown> (0x01096A3C) (0x01096A3C) (0x01096A3C) (0x01096A3C) (0x01096A3C) (0x01096A3C) (0x01096A3C) (0x01096A3C) (0x01096A3C) (0x01096A3C)
Step 5
The output is in table format where the first column contains a time stamp, the second column lists the type of event, and the third column lists the detail for the event. show monitor event-trace cef latest Use this command to display only the event trace message that have been sent since the last instance of the show monitor event-trace cef command. For example:
Example:
Router# show monitor event-trace cef latest cef_events: cef_interface: *Jul 22 20:14:59.075: Se3/0 (sw 15) FlagCha *Jul 22 20:14:59.075: <empty> (hw 16) State *Jul 22 20:14:59.075: <empty> (hw 16) Create *Jul 22 20:14:59.075: Se3/1 (hw 16) NameSet *Jul 22 20:14:59.075: Se3/1 (hw 16) HWIDBLnk *Jul 22 20:14:59.075: Se3/1 (hw 16) RCFlags *Jul 22 20:14:59.075: <empty> (sw 16) VRFLink *Jul 22 20:14:59.075: <empty> (sw 16) State *Jul 22 20:14:59.075: <empty> (sw 16) Create *Jul 22 20:14:59.075: Se3/1 (sw 16) NameSet *Jul 22 20:14:59.075: Se3/1 (sw 16) FIBHWLnk *Jul 22 20:14:59.075: Se3/1 (sw 16) SWIDBLnk *Jul 22 20:14:59.075: Se3/1 (sw 16) FlagCha *Jul 22 20:14:59.075: Se3/1 (sw 16) FlagCha *Jul 22 20:14:59.075: Se3/1 (sw 16) Impared *Jul 22 20:14:59.075: Se3/1 (sw 16) FlagCha *Jul 22 20:14:59.075: <empty> (hw 17) State *Jul 22 20:14:59.075: <empty> (hw 17) Create *Jul 22 20:14:59.075: Se3/2 (hw 17) NameSet
0x60C1 add puntLC down -> up new Serial3/1(16) None -> Fast IPv4:id0 - success deleted -> down new Serial3/1(16) Serial3/1(16) 0x6001 add p2p|input|first 0x6041 add auto_adj lc rea Queueing configuration 0x60C1 add puntLC down -> up new
Step 6
show monitor event-trace cef events all Use this command to display information about Cisco Express Forwarding events. For example:
Example:
Router# *Jul 13 *Jul 13 *Jul 13 *Jul 13 *Jul 13 *Jul 13 *Jul 13 *Jul 13 *Jul 13 *Jul 13 *Jul 13 show monitor event-trace cef events all 17:38:27.999: SubSys ipv4fib_ios_def_cap init 17:38:27.999: SubSys ipv6fib_ios_def_cap init 17:38:27.999: Inst unknown -> RP 17:38:27.999: SubSys fib_ios_chain init 17:38:28.199: SubSys fib init 17:38:28.199: SubSys ipv4fib init 17:38:28.199: SubSys fib_ios init 17:38:28.199: SubSys fib_ios_if init 17:38:28.199: SubSys ipv4fib_ios init 17:38:28.199: Flag Common CEF enabled set to yes 17:38:28.199: Flag IPv4 CEF enabled set to yes
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 147
Customizing the Display of CEF Event Trace Messages How to Customize the Display of CEF Event Trace Messages
13 13 13 13 13 13 13 13 13
IPv4 CEF switching enabled set to yes CEF enabled ipv6fib_ios init ipv4fib_util init ipv4fib_les init Background created IPv4 CEF running set to yes Background event loop enter IPv4 CEF switching running set to yes
The output is in table format where the first column contains a time stamp, the second column lists the type of event, and the third column lists the detail for the event. For example, the Subsys event type is related to the initialization of a subset of Cisco Express Forwarding functionality. The "ipv4fib_ios_def_cap init" entry is the initialization of IPv4 Cisco Express Forwarding default capabilities. Step 7 show monitor event-trace cef interface latest Use this command to display only the event trace messages generated since the last show monitor event-trace cef interfacecommand was entered. For example:
Example:
Router# *Jul 22 *Jul 22 *Jul 22 *Jul 22 . . . *Jul 22 *Jul 22 *Jul 22 *Jul 22 *Jul 22 *Jul 22 *Jul 22 *Jul 22 *Jul 22 *Jul 22 *Jul 22 *Jul 22 *Jul 22 *Jul 22 *Jul 22 *Jul 22 *Jul 22 *Jul 22 *Jul 22 *Jul 22 *Jul 22 *Jul 22 *Jul 22 *Jul 22 *Jul 22 *Jul 22 . . . show monitor event-trace cef interface latest 20:14:58.999: Et0/0 (hw 3) SWvecLES <unknown> 20:14:58.999: Et0/1 (hw 4) SWvecLES <unknown> 20:14:58.999: Et0/2 (hw 5) SWvecLES <unknown> 20:14:58.999: Et0/3 (hw 6) SWvecLES <unknown> (0x01096A3C) (0x01096A3C) (0x01096A3C) (0x01096A3C)
20:14:59.075: 20:14:59.075: 20:14:59.075: 20:14:59.075: 20:14:59.075: 20:14:59.075: 20:14:59.075: 20:14:59.075: 20:14:59.075: 20:14:59.075: 20:14:59.075: 20:14:59.075: 20:14:59.075: 20:14:59.075: 20:14:59.075: 20:14:59.075: 20:14:59.075: 20:14:59.075: 20:14:59.075: 20:14:59.075: 20:14:59.075: 20:14:59.075: 20:14:59.075: 20:14:59.075: 20:14:59.075: 20:14:59.075:
<empty> <empty> Et0/0 Et0/0 Et0/0 <empty> <empty> <empty> Et0/0 Et0/0 Et0/0 Et0/0 Et0/0 <empty> <empty> Et0/1 Et0/1 Et0/1 <empty> <empty> <empty> Et0/1 Et0/1 Et0/1 Et0/1 Et0/1
(hw (hw (hw (hw (hw (sw (sw (sw (sw (sw (sw (sw (sw (hw (hw (hw (hw (hw (sw (sw (sw (sw (sw (sw (sw (sw
3) 3) 3) 3) 3) 3) 3) 3) 3) 3) 3) 3) 3) 4) 4) 4) 4) 4) 4) 4) 4) 4) 4) 4) 4) 4)
State Create NameSet HWIDBLnk RCFlags VRFLink State Create NameSet FIBHWLnk SWIDBLnk FlagCha State State Create NameSet HWIDBLnk RCFlags VRFLink State Create NameSet FIBHWLnk SWIDBLnk FlagCha State
down -> up new Ethernet0/0(3) None -> Fast IPv4:id0 - success deleted -> down new Ethernet0/0(3) Ethernet0/0(3) 0x6000 add input|first down -> up down -> up new Ethernet0/1(4) None -> Fast IPv4:id0 - success deleted -> down new Ethernet0/1(4) Ethernet0/1(4) 0x6000 add input|first down -> up
Step 8
show monitor event-trace cef ipv4 all Use this command to display information about Cisco Express Forwarding IPv4 events. For example:
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 148
Example Customizing CEF Event Tracing Configuration Examples for the Display of CEF Event Trace Messages
Example:
Router# show monitor event-trace *Jul 22 20:14:59.075: [Default] [OK] *Jul 22 20:14:59.075: [Default] [OK] *Jul 22 20:14:59.075: [Default] [OK] *Jul 22 20:14:59.075: [Default] [OK] *Jul 22 20:15:02.927: [Default] [OK] . . . cef ipv4 all *.*.*.*/* *.*.*.*/*'00 0.0.0.0/0'00 *.*.*.*/*'00 *.*.*.*/*'00 Allocated FIB table Add source Default table FIB add src DRH (ins) New FIB table FIB refresh start
Step 9
show monitor event-trace cef ipv6 parameters Use this commands to display parameters configured for Cisco Express Forwarding IPv6 events. For example:
Example:
Router# show monitor event-trace cef ipv6 parameters Trace has 1000 entries Stacktrace is disabled by default Matching all events
Step 10
disable Use this command to exit to user EXEC mode. For example:
Example:
Router# disable Router>
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 149
Example Customizing CEF Event Tracing for IPv4 Events Configuration Examples for the Display of CEF Event Trace Messages
monitor event-trace cef events size 2500 exit The following example shows what happens when you try to enable event tracing for Cisco Express Forwarding events when it is already enabled: configure terminal ! monitor event-trace cef events enable 00:04:33: %EVENT_TRACE-6-ENABLE: Trace already enabled.
The following example shows the privileged EXEC commands that stop event tracing, clear the current contents of memory, and reenable the trace function for Cisco Express Forwarding events. This example assumes that the tracing function is configured and enabled on the networking device.
enable ! monitor event-trace cef events disable monitor event-trace cef events clear monitor event-trace cef events enable disable
The following example shows the privileged EXEC commands to configure the continuous display of the latest Cisco Express Forwarding event trace entries for IPv4 events:
enable ! monitor event-trace cef ipv4 continuous disable
The following example shows how to stop the continuous display of the latest trace entries:
enable ! monitor event-trace cef ipv4 continuous cancel disable
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 150
Additional References
Related Documents Related Topic Cisco IOS commands Cisco Express Forwarding commands Overview of the Cisco Express Forwarding feature Document Title Cisco IOS Master Commands List, All Releases Cisco IOS IP Switching Command Reference Cisco Express Forwarding Overview
Tasks for verifying basic Cisco Express Forwarding Configuring Basic Cisco Express Forwarding for and distributed Cisco Express Forwarding operation Improved Performance, Scalability, and Resiliency in Dynamic Networks Tasks for enabling or disabling Cisco Express Forwarding or distributed Cisco Express Forwarding Tasks for configuring load-balancing schemes for Cisco Express Forwarding Tasks for configuring Cisco Express Forwarding consistency checkers Tasks for configuring epochs for Cisco Express Forwarding tables Tasks for configuring and verifying Cisco Express Forwarding network accounting Enabling or Disabling Cisco Express Forwarding or Distributed Cisco Express Forwarding to Customize Switching and Forwarding for Dynamic Networks Configuring a Load-Balancing Scheme for Cisco Express Forwarding Traffic Configuring Cisco Express Forwarding Consistency Checkers for Route Processors and Line Cards Configuring Epochs to Clear and Rebuild Cisco Express Forwarding and Adjacency Tables Configuring Cisco Express Forwarding Network Accounting
Tasks for customizing the display of recorded Cisco Customizing the Display of Recorded Cisco Express Forwarding events in Cisco IOS releases Express Forwarding Events prior to Cisco IOS Releases 12.2(25)S, 12.2(33)SB, 12.2(33)SRA, 12.2(33)SXH, and 12.4(20)T Causes of common Cisco Express Forwardingrelated error messages on platforms running distributed Cisco Express Forwarding switching (Cisco 7500 series routers and Cisco 12000 series Internet routers) and how to troubleshoot them Standards Standard Title Troubleshooting Cisco Express Forwarding-Related Error Messages
No new or modified standards are supported by this -feature, and support for existing standards has not been modified by this feature.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 151
Customizing the Display of CEF Event Trace Messages Feature Information for the Display of CEF Event Trace Messages
MIBs MIB No new or modified MIBs are supported by this feature, and support for existing MIBs has not been modified by this feature. MIBs Link To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL: http://www.cisco.com/go/mibs RFCs RFC No new or modified RFCs are supported by this feature, and support for existing RFCs has not been modified by this feature. Technical Assistance Description The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password. Link http://www.cisco.com/cisco/web/support/ index.html Title --
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 152
Table 17
Feature Information for Configuring the Display of Cisco Express Forwarding Event Trace Messages
Feature Name
Releases
This table is intentionally left -blank because no features were introduced or modified in Cisco IOS Release 12.2(1) or later. This table will be updated when feature information is added to this module.
Glossary
adjacency --A relationship formed between selected neighboring routers and end nodes for the purpose of exchanging routing information. Adjacency is based upon the use of a common media segment by the routers and nodes involved. Cisco Express Forwarding --A Layer 3 switching technology. Cisco Express Forwarding can also refer to central Cisco Express Forwarding mode, one of two modes of Cisco Express Forwarding operation. Cisco Express Forwarding enables a Route Processor to perform express forwarding. Distributed Cisco Express Forwarding is the other mode of Cisco Express Forwarding operation. distributed Cisco Express Forwardin g--A mode of Cisco Express Forwarding operation in which line cards (such as Versatile Interface Processor (VIP) line cards) maintain identical copies of the forwarding information base (FIB) and adjacency tables. The line cards perform the express forwarding between port adapters; this relieves the Route Switch Processor of involvement in the switching operation. FIB --forwarding information base. A component of Cisco Express Forwarding that is conceptually similar to a routing table or information base. The router uses the FIB lookup table to make destination-based switching decisions during Cisco Express Forwarding operation. The router maintains a mirror image of the forwarding information in an IP routing table. line card --A general term for an interface processor that can be used in various Cisco products. For example, a Versatile Interface Processor (VIP) is a line card for the Cisco 7500 series router. prefix --The network address portion of an IP address. A prefix is specified by a network and mask and is generally represented in the format network/mask. The mask indicates which bits are the network bits. For example, 1.0.0.0/16 means that the first 16 bits of the IP address are masked, making them the network bits. The remaining bits are the host bits. In this example, the network number is 10.0. VPN --Virtual Private Network. The result of a router configuration that enables IP traffic to use tunneling to travel securely over a public TCP/IP network. VRF --A Virtual Private Network (VPN) routing/forwarding instance. A VRF consists of an IP routing table, a derived forwarding table, a set of interfaces that use the forwarding table, and a set of rules and routing protocols that determine what goes into the forwarding table. In general, a VRF includes the routing information that defines a customer VPN site that is attached to a PE router.
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.com/go/trademarks.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 153
Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1110R) Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 154
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 155
The router on which the Cisco Express Forwarding--SNMP CEF-MIB Support features is to be used must be configured for SNMP access. See the Configuring the Router to Use SNMP, page 169 of this document for more information.
Note
The CISCO-CEF-MIB prefix database and its related database can be very large. Therefore, executing a command that displays the prefix table could take a considerable amount of time.
Benefits of CISCO-CEF-MIB
Command-line interface (CLI) show commands are available to obtain Cisco Express Forwarding operational information. Managing Cisco Express Forwarding using the CLI can be a time-consuming task. The increasing capacity of Cisco routers makes parsing the show commands output to obtain the needed Cisco Express Forwarding operational parameters more and more difficult. In Cisco IOS Release 12.2(31)SB and later releases, the CISCO-CEF-MIB allows you to manage and monitor the Cisco Express Forwarding operation using SNMP. In addition, you can configure SNMP to notify you if Cisco Express Forwarding encounters errors. The CISCO-CEF-MIB introduced with the Cisco Express Forwarding--SNMP CEF-MIB Support feature gives you real-time access to operational information stored in the FIB and adjacency tables, switching statistics, and information on resource failures. The feature enables you to configure parameters related to Cisco Express Forwarding features by utilizing a MIB implementation based on SNMP. This information is accessed using get and set commands entered on the network management system (NMS) workstation or
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 156
host system for which SNMP has been implemented. The NMS workstation is also known as the SNMP manager. Cisco Express Forwarding is available in all Cisco routers. However, CISCO-CEF-MIB support of Cisco Express Forwarding management is dependent on the infrastructure introduced in Cisco IOS Release 12.2(22)S. The implementation of the CISCO-CEF-MIB in Cisco IOS Release 12.2(31)SB2, Cisco IOS Release 12.2(33)SRC,and Cisco IOS Release 12.2(33)SB manages Cisco Express Forwarding instances running on the Route Processor (RP). Information about Cisco Express Forwarding running on the line cards is available to the RP in reference to Cisco Express Forwarding peers only. The CISCO-CEF-MIB supports configuration and monitoring for both IP versions, IP Version 4 (IPv4) and IP Version 6 (IPv6).
The SNMP CISCO-CEF-MIB provides managed objects that enable a network administrator to configure the following: Cisco Express Forwarding and distributed Cisco Express Forwarding administration status Cisco Express Forwarding accounting-related parameters Cisco Express Forwarding load sharing-related parameters Traffic-related configuration parameters
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 157
CEF Cfg group CEF Interface group CEF Peer group CEF Consistency (CC) group CEF State Group CEF Notification Control group
In the CISCO-CEF-MIB, configuration objects are defined as read-write, and the other objects are defined as read only. The CISCO-CEF-MIB contains tables related to the Cisco Express Forwarding object groups. These tables provide information about prefixes, forwarding paths, adjacencies, output chain elements (OCEs), prefixbased statistics, information about Cisco Express Forwarding configuration, consistency checkers, switching statistics, and managed objects specific to line card-specific. The CISCO-CEF-MIB also defines Cisco Express Forwarding notifications that you can enable or disable through the MIB or CLI commands. The index for most tables in the CISCO-CEF-MIB is entPhysicalIndex.
CISCO-CEF-MIB Tables
The CEF FIB Summary table (cefFIBSummaryTable) contains the number of forwarding prefixes for both IPv4 and IPv6 protocols. It is a summary of the CEF Forwarding table. The CEF Forwarding table (cefPrefixTable) lists all the prefixes and related counters. It also contains a pointer to the CEF Forwarding Element Selection table. The CEF Longest Match Prefix table (cefLMPrefixTable) returns the longest prefix match for the given destination address. An optional cefLMPrefixSpinLock object is provided to reduce conflict in instances when more than one application acts on the CEF Longest Match Prefix table. The CEF Path table (cefPathTable) lists all the Cisco Express Forwarding paths. The CEF Adjacency Summary table (cefAdJSummaryTable) contains the total number of complete, incomplete, fixup, and redirect adjacencies for all link types. The CEF Adjacency table (cefAdjTable) lists all the adjacencies. It contains the adjacency source, encapsulation string, fixup, and Layer 3 maximum transmission unit (MTU) associated with the adjacency entry. It contains a pointer to the forwarding element selection table (if the adjacency is a MID chain adjacency). The CEF Forwarding Element Selection table (cefFESelectionTable) represents the OCE chains in flattened format. This table shows only the labels, table ID, and adjacency traversed in the OCE chain. It also contains the weight associated with each OCE chain. CEF Cfg table (cefCfgTable) contains all the global configuration parameters related to Cisco Express Forwarding: administration and operational status, accounting-related configuration parameters, loadsharing algorithms and IDs, and traffic statistics parameters. CEF Resource table (cefResourceTable) contains information about resources for Cisco Express Forwarding: the memory status of the process memory pool and reasons for the Cisco Express Forwarding resource failure notifications. CEF Interface table (cefIntTable) contains the interface-specific Cisco Express Forwarding parameters: interface switching state, interface load sharing (per packet and per destination), and interface nonrecursive routing (internal and external). CEF Peer table or Linecard table (cefPeerTable) contains Cisco Express Forwarding information related to peers on a managed line card: line card operational state and the number of times the line card session resets.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 158
CEF Peer FIB table (cefPeerFIBTable) contains information about the operational state of the Forwarding Information Bases (FIBs) on each line card. The CEF Prefix Length Statistics table (cefStatsPrefixTable) maintains prefix length-based statistics. CEF Switching Statistics table (cefSwitchingStatsTable) contains the switching statistics for each switching path: drop counters, punt counters, and punt-to-host counters. CEF IP Prefix Consistency Checker Global group (cefCCGlobalTable) contains all global configuration parameters for the consistency checkers: auto repair, enable and disable, delay, and hold down; enable or disable the passive consistency checkers; enable or disable the error messages for consistency detection; and the mechanism to activate the full scan consistency checkers. This table also displays the state of full scan consistency checkers. CEF Consistency Checker Type table (cefCCTypeTable) contains the consistency checker type specific parameters: frequency and count of scan for passive scanners and the queries sent, ignored, checked, and iterated. CEF Inconsistency Record table (cefInconsistencyRecordTable) contains the detected inconsistency records: prefix address and length, table ID, consistency checker type, slot ID, and the reason for the inconsistency (missing or checksum error).
See theOperations Available Through the CISCO-CEF-MIB, page 160 for information about the specific objects available through the CISCO-CEF-MIB tables. The figure below shows the contents of the CISCO-CEF-MIB main tables and the relationships of the tables to one another.
Figure 13 CISCO-CEF-MIB Main Tables, Table Contents, and Relationships
CEF Forwarding Element (FE) Selection Table (cefFESelectionTable) CEF forwarding selection entry identifiers (cefFESelectionEntry: cefFESelectionName, cefFESelectionId) Special output chain elements (OCEs) (cefFESelectionSpecial) List of MPLS labels: Label1; Label2 (cefFESelectionLabels) Adjacency indexes (cefFESelectionAdjLinkType, cefFESelectionAdjInterface, cefFESelectionAdjNextHopAddrType, cefFESelectionAdjNextHopAddr cefFESelectionAdjConnId) Table ID (cefFESelectionVrfName) Weight for load balancing between multiple forwarding lists (cefFESelectionWeight) CEF Adjacency Table (cefAdjTable) CEF adjacency attributes (CEFAdjEntry: ifIndix, cefAdjNextHopAddrType, cefAdjNextHopAddr, cefAdjConnId, cefAdjSummaryLinkType) Source of the adjacency (cefAdjSource) Layer 2 encapsulation (cefAdjEncap) Fixup applied to packet, if any (cefAdjFixup) Layer 3 MTU (cef AdjMTU) Pointer to the forwarding element entry for this adjacency (cefAdjForwardingInfo) Adjacency counters (cefAdjPkts, cefAdjHCPkts, cefAdjBytes, cefAdjHCBytes)
CEF Forwarding Table (cefPrefixTable) Prefix/Length (cefPrefixEntry: cefPrefixType, cefPrefixAddr, cefPrefixLen) Pointer to associated forwarding element selection entries (cefPrefixForwardingInfo) CountersThrough this prefix, recursive internal and external buckets (cefPrefixPkts, cefPrefixHPkts, cefPrefixBytes, cefPrefixHBytes, cefPrefixInternalNRPkts, cefPefixInternalNRHPkts, cefPrefixInternalNRBytes, cefPrefixInternalNRHBytes, cefPrefixExternalNRPkts, cefPrefixExternalNRHPkts, cefPrefixExternalNRBytes, cefPrefixExteranlNRHBytes)
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 159
230192
Operations Available Through the CISCO-CEF-MIB Information About SNMP CEF-MIB Support
Cisco Express Forwarding Operation Gets the number of forwarding prefixes for IPv4 and IPv6
Description cefFIBSummaryFwdPrefixes
The table below lists the Cisco Express Forwarding monitoring operations and associated MIB objects provided by the CEF Forwarding table (cefPrefixTable).
Table 19 CEF Forwarding Table--Cisco Express Forwarding Operations and Associated MIB Objects
Cisco Express Forwarding Operation Gets the forwarding information for the entry
Gets the number of packets forwarded by the prefix cefPrefixPkts Gets the number of packets forwarded by the prefix cefPrefixHCPkts in a 64-bit value Gets the number of bytes forwarded by the prefix cefPrefixBytes
Gets the number of bytes forwarded by the prefix in cefPrefixHCBytes a 64-bit value Gets the number of internal nonrecursive packets forwarded by the prefix Gets the number of internal nonrecursive packets forwarded by the prefix in a 64-bit value Gets the number of internal nonrecursive bytes forwarded by the prefix Gets the number of internal nonrecursive bytes forwarded by the prefix in a 64-bit value Gets the number of external nonrecursive packets forwarded by the prefix Gets the number of external nonrecursive packets forwarded by the prefix in a 64-bit value cefPrefixInternalNRPkts cefPrefixInternalNRHCPkts cefPrefixInternalNRBytes cefPrefixInternalNRHCBytes cefPrefixExternalNRPkts cefPrefixExternalNRHCPkts
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 160
Cisco Express Forwarding Operation Gets the number of external nonrecursive bytes forwarded by the prefix Gets the number of external nonrecursive bytes forwarded by the prefix in 64-bit value
The table below lists the Cisco Express Forwarding monitoring operations and associated MIB objects provided by the CEF Longest Match Prefix table (cefLMPrefixTable).
Table 20 CEF Longest Match Prefix Table--Cisco Express Forwarding Operations and Associated MIB Objects
Cisco Express Forwarding Operation Gets or sets the lock for creation or modification of the longest match prefix entries Gets the state of the destination prefix request Gets the network prefix address for the destination prefix request Gets the network prefix length for the destination prefix request (the same display as the show ip cef exact-route command) Gets the status of a table entry
cefLMPrefixRowStatus
The table below lists the Cisco Express Forwarding monitoring operations and associated MIB objects provided by the CEF Path table (cefPathTable).
Table 21 CEF Path Table--Cisco Express Forwarding Operations and Associated MIB Objects
MIB Object
Gets the type of Cisco Express Forwarding path for cefPathType a prefix Gets the interface associated with this Cisco Express Forwarding path Gets the next-hop address for the Cisco Express Forwarding path Gets the recursive Virtual Private Network (VPN) routing and forwarding (VRF) instance name associated with this path cefPathInterface cefPathNextHopAddr cefPathRecurseVrfName
The table below lists the Cisco Express Forwarding monitoring operations and associated MIB objects provided by the CEF Adjacency Summary table (cefAdjSummaryTable).
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 161
Table 22
CEF Adjacency Summary Table--Cisco Express Forwarding Operations and Associated MIB Objects
Cisco Express Forwarding Operation Gets the number of complete adjacencies Gets the number of incomplete adjacencies Gets the number of adjacencies for Layer 2 encapsulation Gets the number of adjacencies for IP redirect
The table below lists the Cisco Express Forwarding monitoring operations and associated MIB objects provided by the CEF Adjacency table (cefAdjTable).
Table 23 CEF Adjacency Table--Cisco Express Forwarding Operations and Associated MIB Objects
Cisco Express Forwarding Operation Gets the adjacency source Gets the adjacency Layer 2 encapsulation Gets the adjacency fixup Gets the Layer 3 maximum transmission unit (MTU) for the adjacency Gets the forwarding information in cefFESelectionTable Gets the number of packets transmitted Gets the number of packets transmitted in a 64-bit version Gets the number of bytes transmitted Gets the number of bytes transmitted in a 64-bit version
MIB Object cefAdjSource cefAdjEncap cefAdjFixup cefAdjMTU cefAdjForwardingInfo cefAdjPkts cefAdjHCPkts cefAdjBytes cefAdjHCBytes
The table below lists the Cisco Express Forwarding monitoring operations and associated MIB objects provided by the CEF Forwarding Element Selection table (cefFESelectionTable).
Table 24 CEF Forwarding Element Selection Table--Cisco Express Forwarding Operations and Associated MIB Objects
Cisco Express Forwarding Operation Gets any special processing for a forwarding element
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 162
Cisco Express Forwarding Operation Gets the Multiprotocol Label Switching (MPLS) labels for a forwarding element Gets the adjancency type for a forwarding element Gets the interface for the adjacency for a forwarding element
Gets the next-hop address type for the adjacency for cefFESelectionAdjNextHopAddrType a forwarding element Gets the next-hop address for the adjacency for a forwarding element Gets the connection ID for the adjacency for a forwarding element cefFESelectionAdjNextHopAddr cefFESelectionAdjConnId
Gets the VRF name for the lookup for a forwarding cefFESelectionVrfName element Gets the weighting for load balancing for a forwarding element cefFESelectionWeight
The table below lists the Cisco Express Forwarding configuration and monitoring operations and associated MIB objects provided by the CEF Cfg table (cefCfgTable).
Table 25 CEF Cfg Table--Cisco Express Forwarding Operations and Associated MIB Objects
Cisco Express Forwarding Operation Enables or disables a Cisco Express Forwarding instance Queries a Cisco Express Forwarding operational instance Enables or disables a distributed Cisco Express Forwarding instance Queries a distributed Cisco Express Forwarding operational instance Gets or sets Cisco Express Forwarding network accounting options
MIB Objects cefCfgAdminState cefCfgOperState cefCfgDistributionAdminState cefCfgDistributionOperState cefCfgAccountingMap nonRecursive (0) perPrefix (1) prefixLength (2)
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 163
MIB Objects
Gets or sets Cisco Express Forwarding load sharing cefCfgLoadSharingAlgorithm algorithm options none (1) - Load sharing is disabled. original (2) tunnel (3) universal (4) Gets or sets a load sharing ID Gets or sets a traffic interval timer for Cisco Express Forwarding traffic statistics Gets or sets a frequency timer for the line card to send traffic statistics to the RP cefCfgLoadSharingID cefCfgTrafficStatsLoadInterval cefCfgTrafficStatsUpdateRate
The table below lists the Cisco Express Forwarding monitoring operations and associated MIB objects provided by the CEF Resource table (cefResourceTable).
Table 26 CEF Resource Table--Cisco Express Forwarding Operations and Associated MIB Objects
MIB Object
Gets the memory status of process memory pool for cefResourceMemoryUsed Cisco Express Forwarding Gets the reason for the Cisco Express Forwarding resource failure notification cefResourceFailureReason
The table below lists the Cisco Express Forwarding configuration and monitoring operations and associated MIB objects provided by the CEF Interface table (cefIntTable).
Table 27 CEF Interface Table--Cisco Express Forwarding Operations and Associated MIB Objects
Cisco Express Forwarding Operation Gets or sets the Cisco Express Forwarding switching state of the interface
Gets or sets the type of Cisco Express Forwarding Load sharing on the interface
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 164
The table below lists the Cisco Express Forwarding monitoring operations and associated MIB objects provided by the CEF Peer table (or Linecard table) (cefPeerTable).
Table 28 CEF Peer Table--Cisco Express Forwarding Operations and Associated MIB Objects
Cisco Express Forwarding Operation Gets the Cisco Express Forwarding operational instance of the peer entity Gets how many times the session with the Peer resets
The table below lists the Cisco Express Forwarding monitoring operation and associated MIB object provided by the CEF Peer FIB table (cefPeerFIBTable).
Table 29 CEF Peer FIB Table--Cisco Express Forwarding Operation and Associated MIB Object
Cisco Express Forwarding Operation Gets the current Cisco Express Forwarding FIB operation state of the peer entity
The table below lists the Cisco Express Forwarding monitoring operations and associated MIB objects provided by the CEF Prefix Length Statistics table (cefStatsPrefixTable).
Table 30 CEF Prefix Length Statistics Table--Cisco Express Forwarding Operations and Associated MIB Objects
Cisco Express Forwarding Operation Gets the number of queries (lookups) in the FIB database for a prefix length Gets the number of queries (lookups) in the FIB database for a prefix length in a 64-bit value
Gets the number of inserts in the FIB database for a cefStatsPrefixInserts prefix length Gets the number of inserts in the FIB database for a cefStatsPrefixHCInsert prefix length in a 64-bit value Gets the number of deletes in the FIB database for a cefStatsPrefixDeletes prefix length Gets the number of deletes in the FIB database for a cefStatsPrefixHCDeletes prefix length in a 64-bit version Gets the number of elements in the FIB database for a prefix length Gets the number of elements in the FIB database for a prefix length in a 64-bit value cefStatsPrefixElements cefStatsPrefixHCElements
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 165
The table below lists the Cisco Express Forwarding monitoring operations and associated MIB objects provided by the CEF Switching Statistics table (cefSwitchingStatsTable).
Table 31 CEF Switching Statistics Table--Cisco Express Forwarding Operations and Associated MIB Objects
Cisco Express Forwarding Operation Gets the switching path of a Cisco Express Forwarding instance Gets the number of packets dropped by a Cisco Express Forwarding instance Gets the number of packets dropped by a Cisco Express Forwarding instance in a 64-bit value Gets the number of packets that could be punted Gets the number of packets that could be punted in a 64-bit value Gets the number of packets that are punted to the host Gets the number of packets that are punted to the host in a 64-bit value
The table below lists the Cisco Express Forwarding configuration and monitoring operations and associated MIB objects provided by the CEF IP Prefix Consistency Global Checker group (cefCCGlobalTable).
Table 32 CEF IP Prefix Consistency Global Checker Group--Cisco Express Forwarding Operations and Associated MIB Objects
Cisco Express Forwarding Operation Enables or disables auto repairing of the consistency checkers Gets or sets the consistency checker wait time before fixing the inconsistency Gets or sets the consistency checker wait time to reenable auto repair after auto repair runs
Enables or disables error message generation for an cefCCGlobalErrorMsgEnabled inconsistency The table below lists the Cisco Express Forwarding configuration and monitoring operations and associated MIB objects provided by the CEF Consistency Checker Type table (cefCCTypeTable).
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 166
Table 33
CEF Consistency Checker Type Table--Cisco Express Forwarding Operations and Associated MIB Objects
MIB Objects
Enables or disables the passive consistency checker cefCCEnabled Gets or sets the maximum number of prefixes per scan Gets or sets the period between scans for the consistency checker Gets the number of prefix consistency queries sent to the Cisco Express Forwarding FIB Gets the number of prefix consistency queries ignored by the consistent checker Gets the number of prefix consistent queries iterated back to the database Gets the number of prefix consistent queries processed cefCCCount cefCCPeriod cefCCQueriesSent cefCCQueriesIgnored cefCCQueriesIterated cefCCQueriesChecked
The table below lists the Cisco Express Forwarding configuration and monitoring operations and associated MIB objects provided by the CEF Inconsistency Record table (cefInconsistencyRecordTable).
Table 34 CEF Inconsistency Record Table--Cisco Express Forwarding Operations and Associated MIB Objects
Cisco Express Forwarding Operation Gets the network prefix type for the inconsistency Gets the network prefix address for the inconsistency
Gets the network prefix length for the inconsistency cefInconsistencyPrefixLen Gets the VRF name for the inconsistency Gets the consistency checker type that found the inconsistency cefInconsistencyVrfName cefInconsistencyCCType
Gets the entity in which this inconsistency occurred cefInconsistencyEntity Gets the reason for generating the inconsistency cefInconsistencyReason Global Objects for Cisco Express Forwarding Inconsistency missing (1) checksumErr (2) unknown (3)
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 167
Cisco Express Forwarding Operation Gets the value of the system uptime at the time an inconsistency was detected Sets an object to restart all active consistency checkers Gets the status of the inconsistency reset request
CISCO-CEF-MIB Notifications
The table below lists the Cisco Express Forwarding operations associated with the CISCO-CEF-MIB objects that enable the sending of Cisco Express Forwarding notifications.
Table 35 Cisco Express Forwarding Notifications--Cisco Express Forwarding Operations and CISCO-CEF-MIB Objects That Enable Them
Cisco Express Forwarding Operation Enables the sending of a notification on the detection of a Cisco Express Forwarding resource failure Enables the sending of a notification on the detection of a Cisco Express Forwarding peer state change Enables the sending of a notification on the detection of a Cisco Express Forwarding FIB peer state change Sets the period of time after the sending of each notification event Enables the sending of a notification on the detection of an inconsistency
cefPeerStateChangeNotifEnable
cefPeerFIBStateChangeNotifEnable
cefNotifThrottlingInterval cefInconcsistencyNotifEnable
You can enable or disable these notifications through the MIB or by entering a CLI command. The table below contains a description of the notifications and the commands you use to enable each notification.
Note
You must enter a snmp-server host command before you enter a command to enable or disable a CISCOCEF-MIB notification.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 168
Configuring the Router to Use SNMP How to Configure SNMP CEF-MIB Support
Table 36
Generated for A malloc failure, an Inter-Process Communication (IPC) failure, and any other type of failure related to External Data Representation (XDR) messages
Commands CLI: snmp-server enable traps cef resource-failure MIB: setany version ip-address community-string cefResourceFailureNotifEnable.0 -i 1 CLI: snmp-server enable traps cef peer-state-change MIB: setany version ip-address community-string cefPeerStateChangeNotifEnable.0 -i 1
CLI: snmp-server enable traps cef peer-fib-state-change MIB: setany version ip-address community-string cefPeerFIBStateChangeNotifEnable.0 i1
CLI: snmp-server enable traps cef inconsistency MIB: setany version ip-address community-string cefInconsistencyNotifEnable.0 -i 1
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 169
SUMMARY STEPS
1. enable 2. configure terminal 3. snmp-server community string [view view-name] [ro | rw] [ipv6 nacl] [access-list-number] 4. snmp-server community string2 rw 5. end
DETAILED STEPS
Command or Action Step 1 enable Purpose Enables privileged EXEC mode.
Example:
Router> enable
Example:
Router# configure terminal
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 170
Command or Action Step 3 snmp-server community string [view view-name] [ro | rw] [ipv6 nacl] [access-list-number]
Purpose Sets up the community access string to permit access to SNMP. The string argument is a community string that consists of from 1 to 32 alphanumeric characters and functions much like a password, permitting access to the SNMP protocol. Blank spaces are not permitted in the community string. The view view-name keyword-argument pair is the name of a previously defined view. The view defines the objects available to the SNMP community. The ro keyword specifies read-only access. Authorized management stations can only retrieve MIB objects. The rw keyword specifies read-write access. Authorized management stations can retrieve and modify MIB objects. The ipv6 naclkeywords specify the IPv6 named access list. The access-list-number argument is an integer from 1 to 99. It specifies a standard access list of IP addresses or a string (not to exceed 64 characters) that is the name of a standard access list of IP addresses that are allowed access to the SNMP agent.
Example:
Router(config)# snmp-server community public ro
Alternatively, an integer from 1300 to 1999 that specifies a list of IP addresses in the expanded range of standard access list numbers. Devices at these addresses are allowed to use the community string to gain access to the SNMP agent.
Note The stringargument (Step 3) and string2argument (Step 4) provide a minimal
level of security. It is advisable to provide the string for read-only access to others who need only to view and not to modify the MIB objects, and reserve the read-write access string for administrators only. The string2 argument (Step 4) should be different from the read-only string argument specified in this step. Step 4 snmp-server community string2 rw Sets up the community access string to permit access to SNMP. The string2 argument is a community string that consists of from 1 to 32 alphanumeric characters and functions much like a password, permitting access to the SNMP protocol. Blank spaces are not permitted in the community string. The rw keyword specifies read-write access. Authorized management stations can retrieve and modify MIB objects.
Example:
Router(config)# snmp-server community private rw
This example allows MIB objects to be retrieved and set because a string is specified with read-write access.
Note The stringargument (Step 3) and string2argument (Step 4) provide a minimal
level of security. It is advisable to provide the string for read-only access to others who need only to view and not to modify the MIB objects, and reserve the read-write access string for administrators only. The string2 argument (Step 4) should be different from the read-only string argument specified in the preceding step (Step 3).
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 171
Example:
Router(config)# end
SUMMARY STEPS
1. enable 2. configure terminal 3. snmp-server community string [ro | rw] 4. snmp-server community string2 rw 5. snmp-server host ip-address [vrf vrf-name] [traps | informs] [version {1| 2c | 3 [auth | noauth | priv]}] community-string [udp-port port] cef 6. end
DETAILED STEPS
Command or Action Step 1 enable Purpose Enables privileged EXEC mode.
Example:
Router> enable
Example:
Router# configure terminal
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 172
Command or Action
Purpose
Step 3 snmp-server community string [ro Sets up the community access string to permit access to SNMP. | rw] The string argument is a community string that consists of from 1 to 32 alphanumeric characters and functions much like a password, permitting access to the SNMP protocol. Blank spaces are not permitted in the community Example: string. Router(config)# snmp-server The ro keyword specifies read-only access. Authorized management stations community public ro can only retrieve MIB objects. The rw keyword specifies read-write access. Authorized management stations can retrieve and modify MIB objects. Step 4 snmp-server community string2 rw Sets up the community access string to permit access to SNMP. The string2 argument is a community string that consists of from 1 to 32 alphanumeric characters and functions much like a password, permitting access to the SNMP protocol. Blank spaces are not permitted in the community string. The rw keyword specifies read-write access. Authorized management stations can retrieve and modify MIB objects.
Example:
Router(config)# snmp-server community private rw
This example allows MIB objects to be retrieved and set because a string is specified with read-write access.
Note The stringargument (Step 3) and string2argument (Step 4) provide a minimal
level of security. It is advisable to provide the string for read-only access to others who need only to view and not to modify the MIB objects, and retain the read-write access string for administrators only. The string2 argument (Step 4) should be different from the read-only string argument specified in the preceding step (Step 3).
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 173
Command or Action
Purpose
Step 5 snmp-server host ip-address [vrf Specifies the recipient of an SNMP notification operation. vrf-name] [traps | informs] The ip-address argument is the IP address or IPv6 address of the SNMP [version {1| 2c | 3 [auth | noauth | notification host. priv]}] community-string [udp-port port] cef The SNMP notification host is typically a network management station (NMS or SNMP manager). This host is the recipient of the SNMP traps or informs.
Example:
Router(config)# snmp-server host 10.56.125.47 informs version 2c public cef
The vrf vrf-name keyword and argument specify that the specified VRF be used to send SNMP notifications. The traps keyword specifies that notifications should be sent as traps. This is the default. The informs keyword specifies that notifications should be sent as informs. The version keyword specifies the version of the SNMP used to send the traps. The default is 1.
If you use the version keyword, one of the following keywords must be specified: 1 --SNMPv1. This option is not available with informs. 2c --SNMPv2c. 3 --SNMPv3. The most secure model because it allows packet encryption with the priv keyword. The default is noauth. One of the following three optional security level keywords can follow the version 3 keywords: auth--Enables Message Digest 5 (MD5) and Secure Hash Algorithm (SHA) packet authentication. noauth--Specifies that the noAuthNoPriv security level applies to this host. This is the default security level for SNMPv3. priv--Enables Data Encryption Standard (DES) packet encryption (also called "privacy"). The community-string argument specifies that a password-like community string be sent with the notification operation. The udp-port port keyword and argument specify that SNMP notifications or informs are to be sent to the User Datagram Protocol (UDP) port number of the NMS host. The default is 162. The cef keyword specifies that the Cisco Express Forwarding notification type is to be sent to the host. If no type is specified, all available notifications are sent.
Step 6 end
Example:
Router(config)# end
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 174
Configuring SNMP Notifications with the CLI How to Configure SNMP CEF-MIB Support
SUMMARY STEPS
1. enable 2. configure terminal 3. snmp-server enable traps cef [peer-state-change] [resource-failure] [inconsistency] [peer-fib-statechange] 4. snmp-server host ip-address [traps | informs] [version {1| 2c | 3 [auth | noauth | priv]}] communitystring cef 5. end
DETAILED STEPS
Command or Action Step 1 enable Purpose Enables privileged EXEC mode.
Example:
Router> enable
Example:
Router# configure terminal
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 175
Command or Action
Purpose
Step 3 snmp-server enable traps cef [peer- Enables Cisco Express Forwarding support of SNMP notifications on an NMS. state-change] [resource-failure] The peer-state change keyword enables the sending of CISCO-CEF-MIB [inconsistency] [peer-fib-stateSNMP notifications for changes in the operational state of Cisco Express change] Forwarding peers. The resource-failure keyword enables the sending of CISCO-CEF-MIB SNMP notifications for resource failures that affect Cisco Express Example: Forwarding operations. Router(config)# snmp-server The inconsistencykeyword enables the sending of CISCO-CEF-MIB SNMP enable traps cef resourcenotifications for inconsistencies that occur when routing information is failure updated from the Routing Information Base (RIB) to the CISCO-CEF-MIB on the RP and to the CISCO-CEF-MIB on the line cards. You can set the throttling interval for sending inconsistency notifications. See the Configuring the Throttling Interval with the CLI, page 179. The peer-fib-state-change keyword enables the sending of CISCO-CEFMIB SNMP notifications for changes in the operational state of the Cisco Express Forwarding peer FIB.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 176
Configuring SNMP Notifications with SNMP Commands How to Configure SNMP CEF-MIB Support
Command or Action
Purpose
Step 4 snmp-server host ip-address [traps | Specifies the recipient of an SNMP notification operation. informs] [version {1| 2c | 3 [auth | The ip-address argument is the IP address or IPv6 address of the SNMP noauth | priv]}] community-string cef notification host.
Example:
Router(config)# snmp-server host 10.56.125.47 informs version 2c public cef
The SNMP notification host is typically a network management station (NMS or SNMP manager). This host is the recipient of the SNMP traps or informs. The traps keyword specifies that notifications should be sent as traps. This is the default. The informs keyword specifies that notifications should be sent as informs. The version keyword specifies the version of the SNMP used to send the traps or informs. The default is 1.
If you use the version keyword, one of the following keywords must be specified: 1 --SNMPv1. This option is not available with informs. 2c --SNMPv2C. 3 --SNMPv3. The most secure model because it allows packet encryption with the priv keyword. The default is noauth. One of the following three optional security level keywords can follow the version 3 keywords: auth--Enables Message Digest 5 (MD5) and Secure Hash Algorithm (SHA) packet authentication. noauth--Specifies that the noAuthNoPriv security level applies to this host. This is the default security level for SNMPv3. priv--Enables Data Encryption Standard (DES) packet encryption (also called "privacy"). The community-string argument specifies that a password-like community string be sent with the notification operation. The cef keyword specifies that the Cisco Express Forwarding notification type is to be sent to the host. If no type is specified, all available notifications are sent.
Step 5 end
Example:
Router(config)# end
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 177
SUMMARY STEPS
1. setany version ip-address community-string cefPeerStateChangeNotifEnable.0 -i TruthValue 2. setany version ip-address community-string cefPeerFIBStateChangeNotifEnable .0 -i TruthValue 3. setany version ip-address community-string cefResourceFailureNotifEnable. 0 -i TruthValue 4. setany version ip-address community-string cefInconsistencyNotifEnable .0 -i TruthValue
DETAILED STEPS
Command or Action Step 1 setany version ip-address community-string cefPeerStateChangeNotifEnable.0 -i TruthValue Purpose Enables the sending of CISCO-CEF-MIB SNMP notifications for changes in operational state of Cisco Express Forwarding peers. The version argument specifies the version of SNMP that is used. Options are -v1--SNMPv1 -v2c--SNMPv2C -v3--SNMPv3 The ip-address argument is the IP address or IPv6 address of the SNMP notification host.
Example:
workstation% setany -v2c 10.56.125.47 public cefPeeStateStateChangeNotifEnable.0 -1 1
The SNMP notification host is typically a network management station (NMS or SNMP manager). This host is the recipient of the SNMP traps or informs. The community-string argument specifies that a password-like community string be sent with the notification operation. The -ikeywords indicate that the variable that follows is an integer. Values for the TruthValue argument are: 1--enable sending of the notification 2--disable sending of the notification
These arguments and keywords apply to the Cisco-CEF-MIB notifications in Steps 2, 3, and 4. Step 2 setany version ip-address community-string cefPeerFIBStateChangeNotifEnable .0 -i TruthValue Enables the sending of CISCO-CEF-MIB SNMP notifications for changes in the operational state of the Cisco Express Forwarding peer FIB. See Step 1 for a description of the command arguments and keywords.
Example:
workstation% setany -v2c 10.56.125.47 public cefPeerFIBStateChangeNotifEnable.0 -1 1
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 178
Configuring the Throttling Interval with the CLI How to Configure SNMP CEF-MIB Support
Purpose Enables the sending of CISCO-CEF-MIB SNMP notifications for resource failures that affect Cisco Express Forwarding operations. See Step 1 for a description of the command arguments and keywords.
Example:
workstation% setany -v2c 10.56.125.47 public cefResourceFailureNotifEnable.0 -i 1
Example:
workstation% setany -v2c 10.56.125.47 public cefInconsistencyNotifEnable.0 -i 1
Enables the sending of CISCO-CEF-MIB SNMP notifications for inconsistencies that occur when routing information is updated from the RIB to the Cisco Express Forwarding FIB on the RP and to the Cisco Express Forwarding FIB on the line cards. See Step 1 for a description of the command arguments and keywords.
SUMMARY STEPS
1. enable 2. configure terminal 3. snmp-server enable traps cef inconsistency 4. snmp mib cef throttling-interval seconds 5. end
DETAILED STEPS
Command or Action Step 1 enable Purpose Enables privileged EXEC mode.
Example:
Router> enable
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 179
Configuring the Throttling Interval using SNMP Commands How to Configure SNMP CEF-MIB Support
Example:
Router# configure terminal
Enables the sending of CISCO-CEF-MIB SNMP notifications for inconsistencies in Cisco Express Forwarding.
Example:
Router(config)# snmp-server enable traps cef inconsistency
Sets the throttling interval for the CISCO-CEF-MIB inconsistency notifications. The seconds argument is the time to allow before an inconsistency notification is sent during the process of updating forwarding information from the RIB to the RP and to the line card databases. A valid value is from 0 to 3600 seconds. A value of 0 disables throttle control.
Example:
Router(config)# snmp mib cef throttlinginterval 2500
Step 5 end
Example:
Router(config)# end
SUMMARY STEPS
1. setany version ip-address community-string cefNotifThrottlingInterval.0 -i seconds
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 180
Example Configuring a Host to Receive Notifications Configuration Examples for SNMP CEF-MIB Support
DETAILED STEPS
Command or Action Step 1 setany version ip-address community-string cefNotifThrottlingInterval.0 -i seconds Purpose Sets the throttling interval for the CISCO-CEF-MIB inconsistency notifications.
Example:
workstation% setany -v2c 10.56.125.47 public cefNotifThrottlingInterval.0 -1 3600
The version argument specifies the version of SNMP that is used. Options are -v1--SNMPv1 -v2c--SNMPv2C -v3--SNMPv3 The ip-address argument is the IP address or IPv6 address of the SNMP notification host.
The SNMP notification host is typically a network management station (NMS or SNMP manager). This host is the recipient of the SNMP traps or informs. The community-string argument specifies that a password-like community string be sent with the notification operation. The -ikeywords indicate that the variable that follows is an integer. The seconds argument is the time to allow before an inconsistency notification is sent during the process of updating forwarding information from the RIB to the RP and to the line card databases. A valid value is from 0 to 3600 seconds. A value of 0 disables throttle control.
This example sets up SNMP host 10.56.125.47 to receive CISCO-CEF-MIB notifications as informs.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 181
Example Configuring SNMP Notifications Configuration Examples for SNMP CEF-MIB Support
Configuring SNMP Notifications for Cisco Express Forwarding Events Using SNMP Commands This example shows the use of SNMP command to configure CISCO-CEF-MIB SNMP notifications to be sent to host 10.56.125.47 for changes in Cisco Express Forwarding peer states and peer FIB states, for Cisco Express Forwarding resource failures, and for inconsistencies in Cisco Express Forwarding events:
setany -v2c 10.56.125.47 public cefPeerStateChangeNotifEnable.0 -i 1 setany -v2c 10.56.125.47 public cefPeerFIBStateChangeNotifEnable.0 -i 1 setany -v2c 10.56.125.47 public cefResourceFailureNotifEnable.0 -i 1 setany -v2c 10.56.125.47 public cefInconsistencyNotifEnabled.0 -i 1
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 182
Configuring the Throttling Interval for CISCO-CEF-MIB Inconsistency Notifications Using CLI Commands This example shows the addition of a throttling interval of 1000 seconds for the sending of Cisco Express Forwarding inconsistency notifications to the SNMP host using CLI commands:
configure terminal ! snmp-server community public ro snmp-server host 10.56.125.47 informs version 2c public cef ! snmp-server enable traps cef peer-state-change snmp-server enable traps cef peer-fib-state-change snmp-server enable traps cef inconsistency snmp-server enable traps cef resource-failure ! snmp mib cef throttling-interval 1000 end
Configuring the Throttling Interval for CISCO-CEF-MIB Inconsistency Notifications Using SNMP Commands This example shows the addition of a throttling interval of 1000 seconds for the sending of Cisco Express Forwarding inconsistency notifications to the SNMP host using an SNMP command:
setany -v2c 10.56.125.47 public cefNotifThrottlingInterval.0 -1 1000
Additional References
Related Documents Related Topic Cisco IOS commands IP switching commands: complete command syntax, command modes, command history, defaults, usage guidelines, and examples. Overview of Cisco Express Forwarding, and links to related Cisco Express Forwarding documents Standards Standard Title Document Title Cisco IOS Master Commands List, All Releases Cisco IOS IP Switching Command Reference
No new or modified standards are supported by this -feature, and support for existing standards has not been modified by this feature.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 183
MIBs MIB No new or modified MIBs are supported by this feature, and support for existing MIBs has not been modified by this feature. MIBs Link To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL: http://www.cisco.com/go/mibs RFCs RFC RFC 3291 RFC 3413 Title Textual Conventions for Internet Network Addresses Simple Network Management Protocol (SNMP) Applications
Technical Assistance Description The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password. Link http://www.cisco.com/cisco/web/support/ index.html
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 184
Table 37
Feature Information The Cisco Express Forwarding-SNMP CEF-MIB Support feature introduces the CISCO-CEF-MIB that allows management applications through the use of the Simple Network Management Protocol (SNMP) to configure and monitor Cisco Express Forwarding operational data and to provide notification when Cisco Express Forwarding encounters specific configured events. This module describes how to use the CISCO-CEF-MIB to manage and monitor objects related to Cisco Express Forwarding operation. The following commands were introduced or modified: snmp mib cef throttling-interval, snmp-server enable traps cef, snmp-server host.
Glossary
inform --A type of notification message that is more reliable than a conventional trap notification message because the informs message notification requires acknowledgment, but a trap notification does not. IPC --Inter-Process Communication. The protocol used by routers that support distributed packet forwarding. The Cisco IOS version of IPC provides a reliable ordered delivery of messages using an underlying platform driver transport or User Date Protocol (UDP) transport protocol. Cisco IOS software IPC services allow line cards (LCs) and the central route processor (RP) in a distributed system, such as a Cisco 7500 series router, to communicate with each other by exchanging messages from the RP to the LCs. Communication messages are also exchanged between active and standby RPs. The IPC messages include configuration commands, responses to the configuration commands, and other events that are reported by an LC to the RP. MIB --Management Information Base. A database of network management information that is used and maintained by a network management protocol such as Simple Network Management Protocol (SNMP). The value of a MIB object can be changed or retrieved by the use of SNMP commands, usually through a network management system. MIB objects are organized in a tree structure that includes public (standard) and private (proprietary) branches. NMS --network management station. A powerful, well-equipped computer (typically an engineering workstation) that is used by a network administrator to communicate with other devices in the network. An NMS is typically used to manage network resources, gather statistics, and perform a variety of network administration and configuration tasks. In the context of SNMP, an NMS is a device that performs SNMP queries to the SNMP agent of a managed device to retrieve or modify information.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 185
notification --A message sent by a Simple Network Management Protocol (SNMP) agent to a network management station, console, or terminal to indicate that a significant network event has occurred. SNMP --Simple Network Management Protocol. A network management protocol used almost exclusively in TCP/IP networks. SNMP enables a user to monitor and control network devices, manage configurations, collect statistics, monitor performance, and ensure network security. SNMP community --An authentication scheme that enables an intelligent network device to validate SNMP requests. SNMPv2c --Version 2c of the Simple Network Management Protocol. SNMPv2c supports centralized as well as distributed network management strategies and includes improvements in the Structure of Management Information (SMI), protocol operations, management architecture, and security. SNMPv3 --Version 3 of the Simple Network Management Protocol. Interoperable standards-based protocol for network management. SNMPv3 provides secure access to devices by a combination of authenticating and encrypting packets over the network. trap --A message sent by an SNMP agent to a network management station, console, or terminal to indicate that a significant network event has occurred. Traps are less reliable than inform requests, because the receiver of the trap does not send an acknowledgment of receipt; furthermore, the sender of the trap cannot determine if the trap was received.
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1110R) Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 186
Deleted Commands
The following commands are obsolete and are no longer available from Cisco IOS Releases 12.2(25)S, 12.2(28)SB, 12.2(33)SRA, 12.2(33)SXH, 12.4(20)T, and future releases (no replacement commands are provided): clear adjacency epoch
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 187
clear cef linecard events clear ip cef epoch clear ip cef events clear ip cef * prefix-statistics debug adjacency adjlist debug ip cef bulk-xfer debug ip cef elog-cef debug ip cef elog-plat debug ip cef stats ip cef switch ip cef linecard event-log ip cef linecard reloader ip cef load-sharing algorithm jittered ip cef nsf sync ip cef table event-log ip cef table resolution-timer ip cef table short-mask-protection show cef events show cef linecard events
Replaced Commands
The table below lists all replaced Cisco Express Forwarding commands, starting with Cisco IOS Releases 12.2(25)S, 12.2(28)SB, 12.2(33)SRA, 12.2(33)SXH, and 12.4(20)T, for the Cisco 7500 series routers:
Table 38 Replaced Cisco Express Forwarding Commands--Cisco 7500 Series Routers
Command ip cef table consistency-check debug ip cef adjfib ip cef switch clear ip cef event-log ip cef linecard event-log max-events show adjacency nexthop show cef drop show cef not-cef-switched show cef events show ip cef events (still visible) show cef events [internal]
Replacement Command cef table consistency-check debug cef fib attached export ip cef monitor event-trace cef ipv4 clear monitor event-trace cef linecard size show adjacency show ip cef switching statistics show ip cef switching statistics show monitor event-trace show monitor event-trace cef events show monitor event-trace cef events all
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 188
The table below lists all replaced Cisco Express Forwarding commands, starting with Cisco IOS Releases 12.2(25)S, 12.2(28)SB, 12.2(33)SRA, 12.2(33)SXH, and 12.4(20)T for the Cisco 10000 series routers:
Table 39 Replaced Cisco Express Forwarding Commands--Cisco 10000 Series Routers
Command ip cef table consistency-check debug ip cef adjfib clear ip cef event-log show adjacency nexthop show cef drop show cef events show ip cef events (still visible) show cef events [internal] show cef linecard events
Replacement Command cef table consistency-check debug cef fib attached export monitor event-trace cef ipv4 clear show adjacency show ip cef switching statistics show monitor event-trace show monitor event-trace cef events show monitor event-trace cef events all -
Additional References
Related Documents Related Topic Cisco IOS commands IP switching commands: complete command syntax, command modes, command history, defaults, usage guidelines, and examples. MPLS HA applications and MFI Document Title Cisco IOS Master Commands List, All Releases Cisco IOS IP Switching Command Reference
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 189
Cisco Express Forwarding Command Changes Feature Information for Cisco Express Forwarding Command Changes
MIBs MIB No new or modified MIBs are supported by this feature, and support for existing MIBs has not been modified by this feature. MIBs Link To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL: http://www.cisco.com/go/mibs Technical Assistance Description The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password. Link http://www.cisco.com/cisco/web/support/ index.html
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 190
Cisco Express Forwarding Command Changes Feature Information for Cisco Express Forwarding Command Changes
Table 40
Feature Information In Cisco IOS Releases 12.2(25)S, 12.2(28)SB, 12.2(33)SRA and 12.2(33)SXH, Cisco Express Forwarding has been updated to support new features and new hardware. These updates enable Cisco Express Forwarding to operate with the Multiprotocol Label Switching (MPLS) High Availability (HA) applications and the MPLS Forwarding Infrastructure (MFI). This feature module details changes to commands that are required to support updates to Cisco Express Forwarding. In 12.2(25)S, this feature was introduced and supported on the Cisco 7500 series routers. In 12.2(28)SB, this feature was integrated into Cisco IOS Release 12.2(28)SB and implemented on the Cisco 10000 series routers. In 12.2(33)SRA, this feature was integrated into Cisco IOS Release 12.2(33)SRA. In 12.2(33)SXH, this feature was integrated into Cisco IOS Release 12.2(33)SXH. In 12.4(20)T, this feature was integrated into a Cisco IOS 12.4T release. The following commands were modified: cef table consistencycheck, clear adjacency, clear cef linecard, clear cef table, clear ip cef inconsistency, debug adjacency, debug cef, debug ip cef, debug ip cef accounting non-recursive, debug ip cef fragmentation, debug ip cef hash, debug ip cef subblock, debug ip cef table, ip routecache, monitor event-trace (EXEC), monitor event-trace
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 191
Feature Name
Releases
Feature Information (global), show adjacency, show cef, show cef features global, show cef interface, show ip cef, show ip cef adjacency, show ip cef non-recursive, show ip cef switching statistics, show ip cef tree, show ip cef unresolved, show ip traffic, show monitor event-trace, show xdr.
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1110R) Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 192
CEF Enhancements
The purpose of this document is to describe the changes based on the Cisco Express Forwarding infrastructure scalability enhancements that have been implemented to adapt to the evolution of the Internet and to support new platforms and features. The changes are the removal of IP fast switching and the introduction of command line interface (CLI) modifications. This document lists Cisco Express Forwarding CLI commands that are removed, replaced, changed, and new. To help you transition to the new CLI format, the document illustrates the output for new commands and changed commands. Enhancements to Cisco Express Forwarding enable it to operate with the Multiprotocol Label Switching (MPLS) Forwarding Infrastructure (MFI) and guarantee consistency across Cisco IOS release trains. Cisco Express Forwarding infrastructure changes were introduced and implemented in the Cisco IOS 12.2(25)S-based releases and were added for T releases in Cisco IOS Release 12.4(20)T. Cisco Express Forwarding is an advanced Layer 3 IP switching technology. It optimizes network performance and scalability for all kinds of networks: those that carry small amounts of traffic and those that carry large amounts of traffic in complex patterns, such as the Internet, and networks characterized by intensive web-based applications or interactive sessions. Finding Feature Information, page 193 Information About CEF, page 193 Additional References, page 216 Feature Information for CEF Enhancements, page 217 Glossary, page 219
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 193
The fifth and sixth topics provide information about the CLI changes implemented as part of the Cisco Express Forwarding enhancements. In each section, the commands that are changed are listed, followed by an explanation of how they are changed. Sample command output is included in sections to compare "before" and "after" output information and to provide new output information. The information about the commands is presented in the following order: Removed or existing, but unsupported, commands Commands with modified output New commands created for output consistency Related commands with unchanged output Introduction of CEF Enhancements, page 194 CEF Enhancements Described, page 195 Removal of Support for IPv4 Fast Switching, page 195 CEF Command Changes, page 196 CEF show Command Output Changes, page 197 New Commands for the CEF Feature, page 213 Unchanged CEF show Commands, page 216
Platforms Supported Catalyst 2970 series switches Catalyst 3500 series switches Catalyst 3750 series switches Catalyst 4500 series Switches Cisco 7200 series routers Cisco 7301 series routers Cisco 7304 series routers Cisco 10000 series routers Cisco 7600 series routers Catalyst 6500 series switches
12.2(33)SRA 12.2(33)SXH
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 194
Platforms Supported Cisco 800 series routers Cisco 1700 series routers Cisco 1800 series routers Cisco 2600 series routers Cisco 2800 series routers Cisco 3200 series routers Cisco 3600 series routers Cisco 3700 series routers Cisco 3800 series routers Cisco 7200 series routers Cisco 7400 series routers Cisco 8850 series routers Cisco AS5000 series universal gateways
For information on MFI enhancements, see MPLS Infrastructure Changes: Introduction of MFI and Removal of MPLS LSC and LC-ATM Features. The Cisco Express Forwarding infrastructure changes provide the following: Simplified fast switching path decisions for both IPv4 and IPv6 traffic, which improve performance and provide more CPU cycles for other Cisco IOS services Enhanced scalability to support large numbers of the following: IPv4 and IPv6 prefixes and adjacencies Load balancing paths over multiple links based on Layer 3 routing information Virtual Private Network (VPN) routing and forwarding (VRF) instances Improved manageability of the following: Cisco Express Forwarding logging for both IPv4 and IPv6 Unicast Reverse Path Forwarding (uRPF) strict and loose mode Cisco Express Forwarding MIB (CEF-MIB) uRPF MIB CLI display enhancements for Cisco Express Forwarding
No new features are introduced in Cisco IOS Release 12.4(20)T. However, some features that previously shipped with a Cisco IOS 12.2(25)S-based release are new to the Cisco IOS 12.4T release.
Note
CSSR and MFI enhancements in Cisco IOS Release 12.4(20)T might result in changed performance characteristics in your network. We suggest that you test configurations before upgrading to this software.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 195
Note
Starting with the implementation of the Cisco Express Forwarding enhancements and the removal of IPv4 fast switching, components that do not support Cisco Express Forwarding will work only in process switched mode.
The table below lists the commands that replace the removed commands.
Table 42 Removed Cisco Express Forwarding Commands--Cisco Express Forwarding
Command Before Cisco Express Forwarding Enhancements ip cef table adjacency-prefix ip cef table resolution-timer show ip cef inconsistency records show ip cef inconsistency now show ip cef inconsistency now detail
Replacement Command After Cisco Express Forwarding Enhancements --test cef table consistency test cef table consistency test cef table consistency detail
The following commands still exist, but are no longer supported in Cisco IOS software: show cef events show cef dropped show cef non-cef-switched
The table below lists commands that still exist, but are no longer supported, and the commands that replaces the unsupported commands. You should start using the replacement commands.
Table 43 Replaced Cisco Express Forwarding Commands--Cisco Express Forwarding Feature
Command Before Cisco Express Forwarding Enhancements ip cef event -log ip cef interface event-log ip cef table event-log ip cef table consistency-check
Replacement Command After Cisco Express Forwarding Enhancements monitor event-log cef event monitor event-log cef interface monitor event-log cef ipv4 cef table consistency-check
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 196
Command Before Cisco Express Forwarding Enhancements ip cef loadinfo show cef events show cef drop show cef not-cef-switched
Replacement Command After Cisco Express Forwarding Enhancements cef table output-chain show monitor event-trace cef events all show {ip | ipv6} cef switching statistics[feature]1 show {ip| ipv6} cef switching statistics [feature]
For a full description of these commands, see the Cisco IOS IP Switching Command Reference and the Cisco IOS IPv6 Command Reference. show ip cef summary, page 198 show ipv6 cef summary, page 199 show ip cef internal, page 200 show ipv6 cef internal, page 201 show ip cef detail, page 202
1 If you enter the optional feature keyword, the output shows per-feature drop and punt counters.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 197
show ipv6 cef detail, page 203 show ip cef internal, page 204 show ipv6 cef internal, page 204 show ip cef, page 205 show ip cef exact-route detail, page 205 show ip cef exact-route, page 206 show ip cef adjacency, page 206 show adjacency summary, page 207 show adjacency detail, page 207 show adjacency internal, page 208 show cef state, page 209 show cef timers, page 210 show ip cef epoch, page 211 show ipv6 cef epoch, page 211 show ip cef unresolved detail, page 212 show ipv6 cef unresolved detail, page 212 show ipv6 cef non-recursive, page 213
The table below compares the show ip cef summary command output before ("Old" heading) and after ("New" heading) the Cisco Express Forwarding enhancements.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 198
Table 44
show ip cef summary Command Output Before and After Cisco Express Forwarding Enhancements
Old
Router#
IP CEF with switching (Table Version 32), flags=0x0 26 routes, 0 reresolve, 0 unresolved (0 old, 0 new), peak 2 26 leaves, 19 nodes, 23400 bytes, 53 inserts, 27 invalidations 0 load sharing elements, 0 bytes, 0 references universal per-destination load sharing algorithm, id DF940F94 3(0) CEF resets, 0 revisions of existing leaves Resolution Timer: Exponential (currently 1s, peak 1s) 0 in-place/0 aborted modifications refcounts: 1342 leaf, 1321 node
IPv4 CEF is enabled and running VRF Default: 22 prefixes (22/0 fwd/non-fwd) Table id 0 Database epoch: 0 (22 entries at this epoch)
The table below compares the show ipv6 cef summary command output before ("Old" heading) and after ("New" heading) the Cisco Express Forwarding enhancements.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 199
Table 45
show ipv6 cef summary Command Output Before and After Cisco Express Forwarding Enhancements
Old
Router#
IPv6 CEF is enabled and running Slow processing intvl = 1 seconds backoff level current/max 0/0 0 unresolved prefixes, 0 requiring adjacency update IPv6 CEF default table 19 prefixes
The table below compares the show ip cef internalcommand output before ("Old" heading) and after ("New" heading) the Cisco Express Forwarding enhancements.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 200
Table 46
show ip cef internal Command Output Before and After Cisco Express Forwarding Enhancements
Old
Router# show ip cef internal IP CEF with switching (Table Version 32), flags=0x0 26 routes, 0 reresolve, 0 unresolved (0 old, 0 new), peak 2 26 leaves, 19 nodes, 23400 bytes, 53 inserts, 27 invalidations 0 load sharing elements, 0 bytes, 0 references universal per-destination load sharing algorithm, id DF940F94 3(0) CEF resets, 0 revisions of existing leaves Resolution Timer: Exponential (currently 1s, peak 1s) 0 in-place/0 aborted modifications refcounts: 1342 leaf, 1321 node Table epoch: 0 (26 entries at this epoch) Adjacency Table has 3 adjacencies 1 IPv4 adjacency 2 IPv6 adjacencies 0.0.0.0/32, version 0, epoch 0, receive 10.10.1.1/32, version 22, epoch 0, cached adjacency 172.17.24.1 (0x629E1B60) 0 packets, 0 bytes via 172.17.24.1, FastEthernet0/1, 0 dependencies next hop 172.17.24.1, FastEthernet0/1 valid cached adjacency (0x629E1B60)
New
Router# show ip cef internal IPv4 CEF is enabled and running VRF Default: 22 prefixes (22/0 fwd/non-fwd) Table id 0 Database epoch: 0 (22 entries at this epoch) 0.0.0.0/32, epoch 0, flags receive, refcount 4 sources: Spc feature space: MFI: path extension list empty subblocks: Special source: receive ifnums: (none) path 633AA3DC, path list 633A79D0, share 1, type receive path_list contains no resolved destination(s). HW IPv4 notified. receive output chain: receive (11) 10.10.1.1/32, epoch 0, RIB, refcount 4 sources: RIB feature space: MFI: path extension list empty IPRM: 0x00038000 IP adj out of POS1/0 635BB2A0 ifnums: (none) path 633A9504, path list 633A6FB8, share 1, type attached nexthop path_list contains at least one resolved destination(s). HW IPv4 notified. nexthop 172.17.13.1 POS1/0, adjacency IP adj out of POS1/0 635BB2A0 output chain: IP adj out of POS1/0 635BB2A0
The previous version of the command output is very similar to the output of the command after the Cisco Express Forwarding enhancements. The table below compares the show ipv6 cef internalcommand output before ("Old" heading) and after ("New" heading) the Cisco Express Forwarding enhancements.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 201
Table 47
show ipv6 cef internal Command Output Before and After Cisco Express Forwarding Enhancements
Old
Router# show ipv6 cef internal IPv6 CEF is enabled and running Slow processing intvl = 1 seconds backoff level current/max 0/0 0 unresolved prefixes, 0 requiring adjacency update IPv6 CEF default table 19 prefixes tableid 0 table version 37 root 63038970 2001:1:12::/64 RIBfib Using cached adjacency 0x629E1CE0 path list pointer 62A2C310 1 path Nexthop path_pointer 62A297B0 traffic share 1 path_list pointer 62A2C310 nexthop FE80::2D0:1FF:FEE4:6800 FastEthernet0/1 next_hop_len 0 adjacency pointer 629E1CE0 refcount 10 no loadinfo
New
Router#
IPv6 CEF is enabled and running VRF Default: 20 prefixes (20/0 fwd/non-fwd) Table id 0 Database epoch: 0 (20 entries at this epoch)
2001:1:12::/64, epoch 0, RIB, refcount 3 sources: RIB feature space: MFI: path extension list empty IPRM: 0x00038000 IPV6 adj out of POS1/0 635BAFE0 ifnums: (none) path 633A9A18, path list 633A732C, share 1, type attached nexthop path_list contains at least one resolved destination(s). HW IPv6 notified. nexthop FE80::205:DCFF:FE26:4800 POS1/0, adjacency IPV6 adj out of POS1/0 635BAFE0 output chain: IPV6 adj out of POS1/0 635BAFE0
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 202
Table 48
show ip cef detail Command Output Before and After Cisco Express Forwarding Enhancements
Old
Router# show ip cef detail IP CEF with switching (Table Version 32), flags=0x0 26 routes, 0 reresolve, 0 unresolved (0 old, 0 new), peak 2 26 leaves, 19 nodes, 23400 bytes, 53 inserts, 27 invalidations 0 load sharing elements, 0 bytes, 0 references universal per-destination load sharing algorithm, id DF940F94 3(0) CEF resets, 0 revisions of existing leaves Resolution Timer: Exponential (currently 1s, peak 1s) 0 in-place/0 aborted modifications refcounts: 1342 leaf, 1321 node Table epoch: 0 (26 entries at this epoch) Adjacency Table has 3 adjacencies 1 IPv4 adjacency 2 IPv6 adjacencies 0.0.0.0/32, version 0, epoch 0, receive 10.10.1.1/32, version 22, epoch 0, cached adjacency 172.17.24.1 0 packets, 0 bytes via 172.17.24.1, FastEthernet0/1, 0 dependencies next hop 172.17.24.1, FastEthernet0/1 valid cached adjacency
New
Router# show ip cef detail IPv4 CEF is enabled and running VRF Default: 22 prefixes (22/0 fwd/non-fwd) Table id 0 Database epoch: 0 (22 entries at this epoch) 0.0.0.0/32, epoch 0, flags receive Special source: receive receive 10.10.1.1/32, epoch 0 nexthop 172.17.13.1 POS1/0 10.10.1.2/32, epoch 0 nexthop 172.17.13.1 POS1/0 10.20.12.0/24, epoch 0 nexthop 172.17.13.1 POS1/0 10.60.17.0/24, epoch 0, flags attached, connected attached to FastEthernet0/0 10.60.17.0/32, epoch 0, flags receive receive 10.60.17.251/32, epoch 0, flags receive receive
The table below compares the show ipv6 cef detailcommand output before ("Old" heading) and after ("New" heading) the Cisco Express Forwarding enhancements.
Table 49 show ipv6 cef detail Command Output Before and After Cisco Express Forwarding Enhancements
Old
Router# show ipv6 cef detail IPv6 CEF is enabled and running Slow processing intvl = 1 seconds backoff level current/max 0/0 0 unresolved prefixes, 0 requiring adjacency update IPv6 CEF default table 19 prefixes 2001:1:12::/64 RIBfib nexthop FE80::2D0:1FF:FEE4:6800 FastEthernet0/1 2001:2:13::/64 RIBfib nexthop FE80::2D0:1FF:FEE4:6800 FastEthernet0/1 2001:2:22::/64 RIBfib nexthop FE80::2D0:1FF:FEE4:6800 FastEthernet0/1 2001:2:24::2/128 Receive, RIBfib Receive 2001:2:24::/64 Attached, Connected, RIBfib
New
Router# show ipv6 cef detail IPv6 CEF is enabled and running VRF Default: 20 prefixes (20/0 fwd/non-fwd) Table id 0 Database epoch: 0 (20 entries at this epoch) 2001:1:12::/64, epoch 0 nexthop FE80::205:DCFF:FE26:4800 POS1/0 2001:2:13::/64, epoch 0, flags attached, connected attached to POS1/0 2001:2:13::2/128, epoch 0, flags receive
attached to FastEthernet0/1
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 203
The table below compares the show ip cef prefix internal command output before ("Old" heading) and after ("New" heading) the Cisco Express Forwarding enhancements.
Table 50 show ip cef prefix internalCommand Output Before and After Cisco Express Forwarding Enhancements
Old
Router# show ip cef 10.20.12.0/24 internal 10.20.12.0/24, version 17, epoch 0, cached adjacency 172.17.24.1 (0x629E1B60) 0 packets, 0 bytes via 172.17.24.1, FastEthernet0/1, 0 dependencies next hop 172.17.24.1, FastEthernet0/1 valid cached adjacency (0x629E1B60)
New
Router# show ip cef 172.16.1.0/24 internal 172.16.1.0/24, epoch 0, RIB, refcount 5 sources: RIB feature space: MFI: path extension list empty IPRM: 0x00038000 IP adj out of POS1/0 635BB2A0 path 633A9504, path list 633A6FB8, share 1, type attached nexthop, for IPv4 ifnums: (none) path_list contains at least one resolved destination(s). HW IPv4 notified. nexthop 172.17.13.1 POS1/0, adjacency IP adj out of POS1/0 635BB2A0 output chain: IP adj out of POS1/0 635BB2A0
The previous version of the command output is very similar to the output in the command after the Cisco Express Forwarding enhancements. The table below compares the show ipv6 cef prefix internal command output before ("Old" heading) and after ("New" heading) the Cisco Express Forwarding enhancements.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 204
Table 51
show ipv6 cef prefix internal Command Output Before and After Cisco Express Forwarding Enhancements
Old
Router# show ipv6 cef 2001:2:25::/64 internal 2001:2:25::/64 RIBfib Using cached adjacency 0x629E1CE0 path list pointer 62A2C310 1 path Nexthop path_pointer 62A297B0 traffic share 1 path_list pointer 62A2C310 nexthop FE80::2D0:1FF:FEE4:6800 FastEthernet0/1 next_hop_len 0 adjacency pointer 629E1CE0 refcount 10 no loadinfo
New
Router# show ipv6 cef 2001:2:25::/64 internal 2001:2:25::/64, epoch 0, RIB, refcount 4 sources: RIB feature space: MFI: path extension list empty IPRM: 0x00038000 IPV6 adj out of POS1/0 635BAFE0 path 633A9568, path list 633A6FFC, share 1, type attached nexthop, for IPv6 ifnums: (none) path_list contains at least one resolved destination(s). HW IPv6 notified. nexthop FE80::205:DCFF:FE26:4800 POS1/0, adjacency IPV6 adj out of POS1/0 635BAFE0
show ip cef
This feature provides the following changes to the output of the show ip cef prefix command: Output is reformatted; the key information provided is similar to the command output provided before the Cisco Express Forwarding enhancements. Adjacency information is moved to the show adjacency prefix detail command (see the New Commands for the CEF Feature, page 213).
The table below compares the show ip cef prefixcommand output before ("Old" heading) and after ("New" heading) the Cisco Express Forwarding enhancements.
Table 52 show ip cef prefix Command Output Before and After Cisco Express Forwarding Enhancements
Old
Router# show ip cef 10.20.12.0/24 10.20.12.0/24, version 17, epoch 0, cached adjacency 172.17.24.1 0 packets, 0 bytes via 172.17.24.1, FastEthernet0/1, 0 dependencies next hop 172.17.24.1, FastEthernet0/1 valid cached adjacency
New
Router# show ip cef 172.16.1.0/24 172.16.1.0/24 nexthop 172.17.13.1 POS1/0
Note
The command output of the show ipv6 prefix command is the same after the Cisco Express Forwarding enhancement changes as it was before the changes.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 205
The table below compares the command output before ("Old" heading) and after ("New" heading) the Cisco Express Forwarding enhancements.
Table 53 show ip cef exact-route source destination detail Command Output Before and After Cisco Express Forwarding Enhancements
Old
Router# show ip cef exact-route 172.16.1.1 172.16.1.5 detail 172.16.1.1 -> 172.16.1.5 : FastEthernet0/1 (next hop 172.17.24.1)
New
Router# show ip cef exact-route 172.16.1.3 172.16.1.2 detail
The table below compares the show ip cef exact-route source destinationcommand output before ("Old" heading) and after ("New" heading) the Cisco Express Forwarding enhancements.
Table 54 show ip cef exact-route source destination Command Output Before and After Cisco Express Forwarding Enhancements
Old
Router# show ip cef exact-route 172.16.1.1 172.16.1.5 172.16.1.1 -> 172.16.1.5 (next hop 172.17.24.1) : FastEthernet0/1
New
Router# show ip cef exact-route 172.16.1.3 172.16.1.2
The table below compares the show ip cef adjacency interface next-hopcommand output before ("Old" heading) and after ("New" heading) the Cisco Express Forwarding enhancements.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 206
Table 55
show ip cef adjacency interface next-hopCommand Output Before and After Cisco Express Forwarding Enhancements
Old
Router# show ip cef adjacency FastEthernet0/1 172.17.24.1 Prefix Next Hop Interface 10.10.1.1/32 172.17.24.1 FastEthernet0/1 10.10.1.2/32 172.17.24.1 FastEthernet0/1 10.20.12.0/24 172.17.24.1 FastEthernet0/1
New
Router# show ip cef adjacency FastEthernet0/1 172.17.22.1 10.10.1.2/32 nexthop 172.17.22.1 FastEthernet0/1 10.20.12.0/24 nexthop 172.17.22.1 FastEthernet0/1
The table below compares the show adjacency summary command output before ("Old" heading) and after ("New" heading) the Cisco Express Forwarding enhancements.
Table 56 show adjacency summary Command Output Before and After Cisco Express Forwarding Enhancements
Old
Router# show adjacency summary Adjacency Table has 6 adjacencies 4 IPv4 adjacencies 2 IPv6 adjacencies Table epoch: 0 (6 entries at this epoch) Interface IPv4 Adjacencies Adjacencies FastEthernet0/1 1 1 FastEthernet0/0 2 0 FastEthernet1/1 1
New
Router# show adjacency summary Adjacency table has 9 adjacencies: each adjacency consumes 348 bytes (0 bytes platform extension) 7 complete adjacencies 2 incomplete adjacencies 4 adjacencies of linktype IP 4 complete adjacencies of linktype IP 0 incomplete adjacencies of linktype IP 0 adjacencies with fixups of linktype IP 4 adjacencies with IP redirect of linktype IP 4 adjacencies of linktype IPV6 2 complete adjacencies of linktype IPV6 2 incomplete adjacencies of linktype IPV6 1 adjacency of linktype TAG 1 complete adjacency of linktype TAG 0 incomplete adjacencies of linktype TAG Adjacency database high availability: Database epoch: 0 (9 entries at this epoch) Adjacency manager summary event processing: Summary events epoch is 3 Summary events queue contains 0 events (high water mark 7 events)
IPv6
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 207
The table below compares the show adjacency detail command output before ("Old" heading) and after ("New" heading) the Cisco Express Forwarding enhancements.
Table 57 show adjacency detailCommand Output Before and After Cisco Express Forwarding Enhancements
Old
Router# show adjacency detail Protocol Interface Address IP FastEthernet1/1 20.0.0.2(5) 4 packets, 456 bytes 003085641F11 00055F26F81D0800 ARP 01:47:23 Epoch: 0 IPV6 FastEthernet1/1 2011:41::2(5) 0 packets, 0 bytes 003085641F11 00055F26F81D86DD IPv6 ND never Epoch: 0
New
Router# show adjacency detail Protocol Interface Address IP FastEthernet0/1 172.17.22.1(16) 0 packets, 0 bytes epoch 0 sourced in sev-epoch 3 Encap length 14 00D001E4680000055FAF2C060800 IPV6 FastEthernet0/1 ARP 2001:2:22::1(6) 0 packets, 0 bytes epoch 0 sourced in sev-epoch 3 Encap length 14 IPv6 ND
00D001E4680000055FAF2C0686DD
The table below compares the show adjacency internalcommand output before ("Old" heading) and after ("New" heading) the Cisco Express Forwarding enhancements.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 208
Table 58
show adjacency internal Command Output Before and After Cisco Express Forwarding Enhancements
Old
Router# show adjacency internal Protocol Interface Address IP FastEthernet1/1 20.0.0.2(5) 4 packets, 456 bytes 003085641F11 00055F26F81D0800 ARP 01:32:30 Epoch: 0 Fast adjacency enabled IP redirect enabled IP mtu 1500 (0x0) Fixup disabled Adjacency pointer 0x629E16E0, refCount 5 Adjacency flags 0x000000 Connection Id 0x000000 Bucket 22 IPV6 FastEthernet0/1 FE80::2D0:1FF:FEE4:6800(13) 0 packets, 0 bytes 00D001E46800 00055F26F80686DD IPv6 ND never Epoch: 0 Fast adjacency enabled IPv6 redirect enabled IPv6 mtu 1500 (0x0) Fixup disabled Adjacency pointer 0x629E1CE0, refCount 13 Adjacency flags 0x000000 Connection Id 0x000000
New
Router# show adjacency internal Protocol Interface IP FastEthernet0/0 Address 10.60.17.2(6) 0 packets, 0 bytes epoch 0 sourced in sev-epoch 3 Encap length 14 ARP Fast adjacency enabled [OK] L3 mtu 1500 Flags (0x100E) Fixup disabled HWIDB/IDB pointers 0x63148358/0x63148FD8 IP redirect enabled Switching vector: IPv4 no fixup adj oce Adjacency pointer 0x636F31A0 IPV6 FastEthernet0/1 Next-hop 172.17.13.1 ... 2001:2:22::1(6) 0 packets, 0 bytes epoch 0 sourced in sev-epoch 3 Encap length 14 IPv6 ND Fast adjacency enabled [OK] L3 mtu 1500 Flags (0x100E) Fixup disabled HWIDB/IDB pointers 0x6313AD40/0x6313B9C0 IP redirect enabled Switching vector: IPv6 adjacency oce Adjacency pointer 0x531C738 Next-hop FE80::A8BB:FE00:6500 ...
00000C386D8800055FAF2C080800
00D001E4680000055FAF2C0686DD
Bucket 32
The table below compares the show cef statecommand output before ("Old" heading) and after ("New" heading) the Cisco Express Forwarding enhancements.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 209
Table 59
show cef state Command Output Before and After Cisco Express Forwarding Enhancements
Old
Router# show cef state CEF Status [RP] CEF enabled/running dCEF disabled/not running CEF switching enabled/running CEF default capabilities: Always CEF switching: Always dCEF switching: Default CEF switching: Default dCEF switching: Drop multicast packets: OK to punt packets: NVGEN CEF state: fastsend() used: CEF NSF capable: RPR+/SSO standby capable: IPC delayed func on SSO: FIB auto repair supported: LCs not running at init time: Hardware forwarding supported: Hardware forwarding in use: Load-sharing pr. packet supported:
New
Router# show cef state CEF Status: RP instance common CEF enabled IPv4 CEF Status: CEF enabled/running dCEF disabled/not running CEF switching enabled/running universal per-destination load sharing algorithm, id A189DD49 IPv6 CEF Status: CEF enabled/running dCEF disabled/not running original per-destination load sharing algorithm, id A189DD49 Router# show cef state capabilities CEF Capabilities: Supported address families: IPv4 IPv6 Active address families: IPv4 IPv6 Distributed Platform: no Warm or Hot Standby supported: no CEF NSF capable: no IPC delayed func on SSO: no Hardware forwarding: no Checker auto-repair supported: yes Crashdump on memory failure: no Support load-sharing alg config: yes Blocking STANDBY_HOT until synced: no IPv4 CEF Capabilities: Default CEF switching: yes Always FIB switching: no Default dCEF switching: no Always dCEF switching: no Drop multicast packets: no OK to punt packets: yes NVGEN CEF state: yes fastsend() used: yes Support per packet load sharing: yes Support L4 ports in load sharing: yes Multicast (*,G) groups in CEF: no Install local entries from RIB: no IPv6 CEF Capabilities:2 Default CEF switching: Always FIB switching: Default dCEF switching: Always dFIB switching: Drop multicast packets: OK to punt packets: NVGEN CEF state: fastsend() used: L4 ports in load balancing support:
2 This is the continuation of the output of the show cef state capabilities command.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 210
The table below compares the show cef timerscommand output before ("Old" heading) and after ("New" heading) the Cisco Express Forwarding enhancements.
Table 60 show cef timersCommand Output Before and After Cisco Express Forwarding Enhancements
Old
Router# show cef timers CEF background process Expiration Type | 0.740 (parent) | 0.740 ARP throttle | 0.908 adjacency update hwidb | 0.908 slow resolution | 8.572 <unknown:6240E510/0> CEF FIB scanner process Expiration Type | 5.764 (parent) | 5.764 checker scan-rib | 6.340 checker scan-sw-hw | 49.588 checker scan-hw-sw
New
Router# show cef timers CEF background process Expiration Type | 13.248 (parent) | 13.248 FIB checkers: IPv4 scan-rib-ios scanner | 13.248 FIB checkers: IPv4 scan-ios-rib scanner | 13.248 FIB checkers: IPv6 scan-ios-rib scanner Platform counter polling is not enabled IPv4 CEF background process Expiration Type | 0.600 (parent) | 0.600 ARP throttle | 0.600 adjacency update hwidb
Old
Router# show ip cef epoch CEF epoch information: Table: Default Table epoch: 0 (33 entries at this epoch) Adjacency table
New
Router# show ip cef epoch Table: Default Database epoch: 0 (24 entries at this epoch)
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 211
Table 62
show ipv6 cef epochCommand Output Before and After Cisco Express Forwarding Enhancements
Old
Router# show ipv6 cef epoch CEF epoch information: Table: Default Table epoch: 1 (2 entries at this epoch) Adjacency table Table epoch: 0 (1 entries at this epoch)
New
Router# show ipv6 cef epoch Table: Default Database epoch: 1 (2 entries at this epoch)
The table below compares the show ip cef unresolved detailcommand output before ("Old" heading) and after ("New" heading) the Cisco Express Forwarding enhancements.
Table 63 show ip cef unresolved detail Command Output Before and After Cisco Express Forwarding Enhancements
Old
Router# show ip cef unresolved detail IP CEF with switching (Table Version 59), flags=0x0 34 routes, 0 reresolve, 0 unresolved (0 old, 0 new), peak 2 34 leaves, 22 nodes, 27640 bytes, 80 inserts, 46 invalidations 0 load sharing elements, 0 bytes, 0 references universal per-destination load sharing algorithm, id DF940F94 3(0) CEF resets, 0 revisions of existing leaves Resolution Timer: Exponential (currently 1s, peak 1s) 0 in-place/0 aborted modifications refcounts: 5933 leaf, 5888 node Table epoch: 0 (34 entries at this epoch) Adjacency Table has 7 adjacencies 4 IPv4 adjacencies 3 IPv6 adjacencies
New
Router# show ip cef unresolved detail IPv4 CEF is enabled and running VRF Default 25 prefixes (25/0 fwd/non-fwd) Table id 0x0 Database epoch: 0 (25 entries at this epoch) 101.1.1.1/32, epoch 0, flags rib only nolabel, rib defined all labels recursive via 102.2.2.2, unresolved
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 212
New Commands for the CEF Feature show ipv6 cef non-recursive
The table below compares the show ipv6 cef unresolved detailcommand output before ("Old" heading) and after ("New" heading) the Cisco Express Forwarding enhancements.
Table 64 show ipv6 cef unresolved detail Command Output Before and After Cisco Express Forwarding Enhancements
Old
Router# show ipv6 cef unresolved detail IPv6 CEF is enabled and running Slow processing intvl = 1 seconds backoff level current/max 0/0 0 unresolved prefixes, 0 requiring adjacency update IPv6 CEF default table 20 prefixes
New
Router# show ipv6 cef unresolved detail IPv6 CEF is enabled and running centrally. VRF Default 6 prefixes (6/0 fwd/non-fwd) Table id 0x1E000000 Database epoch: 0 (6 entries at this epoch) 2002::/128, epoch 0, flags rib only nolabel, rib defined all labels recursive via 2003::BEEF, unresolved
The table below compares the show ipv6 cef non-recursivecommand output before ("Old" heading) and after ("New" heading) the Cisco Express Forwarding enhancements.
Table 65 show ipv6 cef non-recursive Command Output Before and After Cisco Express Forwarding Enhancements
Old
Router# show ipv6 cef non-recursive 2001:1:12::/64 nexthop FE80::2D0:1FF:FEE4:6800 FastEthernet0/1 2001:2:13::/64 nexthop FE80::2D0:1FF:FEE4:6800 FastEthernet0/1 2001:2:22::/64 nexthop FE80::2D0:1FF:FEE4:6800 FastEthernet0/1
New
Router# show ipv6 cef non-recursive ::/0 no route ::/127 discard 2003::/128 nexthop 3003::DEAD Ethernet2/0 FE80::/10 receive for Null0 FF00::/8 multicast
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 213
show adjacency detail, page 214 show cef tree, page 215 test cef table consistency detail, page 215
show adjacency
The show adjacency prefix command shows adjacency information for the specified prefix. Following are sample outputs from the show adjacency prefix command for an IPv4 prefix and an IPv6 prefix:
Router# show adjacency 172.17.22.1/24 Protocol Interface Address IP FastEthernet0/1 172.17.22.1(16) Router# show adjacency 2001:2:22::1/64 Protocol Interface IPV6 FastEthernet0/1 Address 2001:2:22::1(6)
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 214
Address 172.17.22.1(16) 0 packets, 0 bytes epoch 0 sourced in sev-epoch 3 Encap length 14 00D001E4680000055FAF2C060800 ARP Router# show adjacency 2001:2:22::1/64 detail Protocol Interface IPV6 FastEthernet0/1 Address 2001:2:22::1(6) 0 packets, 0 bytes epoch 0 sourced in sev-epoch 3 Encap length 14 00D001E4680000055FAF2C0686DD IPv6 ND
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 215
Following is sample output for the test cef table consistency detailcommand:
Router# test cef table consistency detail full-scan-rib-ios: Checking IPv4 RIB to FIB consistency full-scan-rib-ios: FIB checked 12 prefixes, and found 0 missing. full-scan-ios-rib: Checking IPv4 FIB to RIB consistency full-scan-ios-rib: Checked 12 FIB prefixes in 1 pass, and found 0 full-scan-rp-lc: Sent 26 IPv4 prefixes to linecards in 1 pass full-scan-rp-lc: Initiated IPv4 FIB check on linecards..4..1..0.. full-scan-rp-lc: FIB IPv4 check completed on linecards..1..0..4.. full-scan-rp-lc: Linecard 4 checked 26 IPv4 prefixes (ignored 0). full-scan-rp-lc: Linecard 1 checked 26 IPv4 prefixes (ignored 0). full-scan-rp-lc: Linecard 0 checked 26 IPv4 prefixes (ignored 0). full-scan-rib-ios: Checking IPv6 RIB to FIB consistency full-scan-rib-ios: FIB checked 16 prefixes, and found 5 missing. full-scan-ios-rib: Checking IPv6 FIB to RIB consistency full-scan-ios-rib: Checked 11 FIB prefixes in 1 pass, and found 0 full-scan-rp-lc: Sent 11 IPv6 prefixes to linecards in 1 pass full-scan-rp-lc: Initiated IPv6 FIB check on linecards..4..1..0.. full-scan-rp-lc: FIB IPv6 check completed on linecards..1..4..0.. full-scan-rp-lc: Linecard 4 checked 11 IPv6 prefixes (ignored 0). full-scan-rp-lc: Linecard 1 checked 11 IPv6 prefixes (ignored 0). full-scan-rp-lc: Linecard 0 checked 11 IPv6 prefixes (ignored 0). No IPv4 inconsistencies found, check took 00:00:01.444 Warning: 5 IPv6 inconsistencies found, check took 00:00:01.240
extra.
extra.
Additional References
Related Documents Related Topic Cisco IOS commands Description of Cisco Express Forwarding commands Description of Cisco Express Forwarding IPv6 commands Information on MFI enhancements Document Title Cisco IOS Master Commands List, All Releases Cisco IOS IP Switching Command Reference Cisco IOS IPv6 Command Reference MPLS Infrastructure Changes: Introduction of MFI and Removal of MPLS LSC and LC-ATM Features
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 216
Technical Assistance Description The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password. Link http://www.cisco.com/cisco/web/support/ index.html
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 217
Table 66
Feature Name Cisco Express Forwarding Enhancements: Introduction of CLI Changes and Removal of IPv4 Fast Switching
Releases 12.4(20)T
Feature Information The purpose of this document is to describe the changes based on the Cisco Express Forwarding infrastructure scalability enhancements that have been implemented to adapt to the evolution of the Internet and to support new platforms and features. The changes are the removal of IP fast switching and the introduction of command line interface (CLI) modifications. This document lists Cisco Express Forwarding CLI commands that are removed, replaced, changed, and new. To help you transition to the new CLI format, the document illustrates the output for new commands and changed commands. Enhancements to Cisco Express Forwarding enable it to operate with the Multiprotocol Label Switching (MPLS) Forwarding Infrastructure (MFI) and guarantee consistency across Cisco IOS release trains. Cisco Express Forwarding infrastructure changes were introduced and implemented in the Cisco IOS 12.2(25)S-based releases and were added for T releases in Cisco IOS Release 12.4(20)T. Cisco Express Forwarding is an advanced Layer 3 IP switching technology. It optimizes network performance and scalability for all kinds of networks: those that carry small amounts of traffic and those that carry large amounts of traffic in complex patterns, such as the Internet, and networks characterized by intensive web-
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 218
Feature Name
Releases
Feature Information based applications or interactive sessions. In Cisco IOS Release 12.4(20)T, this feature was introduced.
Glossary
adjacency --A relationship formed between selected neighboring routers and end nodes for the purpose of exchanging routing information. Adjacency is based upon the use of a common media segment by the routers and nodes involved. Cisco Express Forwarding --A Layer 3 switching technology. Cisco Express Forwarding can also refer to central Cisco Express Forwarding mode, one of two modes of Cisco Express Forwarding operation. Cisco Express Forwarding enables a Route Processor (RP) to perform express forwarding. Distributed Cisco Express Forwarding is the other mode of Cisco Express Forwarding operation. distributed Cisco Express Forwarding --A type of Cisco Express Forwarding switching in which line cards (such as Versatile Interface Processor (VIP) line cards) maintain identical copies of the forwarding information base (FIB) and adjacency tables. The line cards perform the express forwarding between port adapters; this relieves the Route Switch Processor of involvement in the switching operation. FIB --forwarding information base. A component of Cisco Express Forwarding. The router uses the FIB lookup table to make destination-based switching decisions during Cisco Express Forwarding operation. The router maintains a mirror image of the forwarding information in an IP routing table. IDB --Interface Descriptor Block. An IDB is a special control structure internal to the Cisco IOS software that contains information such as the IP address, interface state, and packet statistics. Cisco IOS software maintains one IDB for each interface present on a platform and one IDB for each subinterface. IPRM --IP Rewrite Manager. The IPRM is a module that manages the interaction between Cisco Express Forwarding, the IP Label Distributions Modules (LDM), and the Multiprotocol Label Switching (MPLS) Forwarding Infrastructure (MFI). Mtrie --multiway tree. The Mtrie is a data structure in which routes are stored. The Mtrie is part of the IP lookup algorithm used in Cisco Express Forwarding. prefix --The network address portion of an IP address. A prefix is specified by a network and mask and is generally represented in the format network/mask. The mask indicates which bits are the network bits. For example, 10.0.0.0/16 means that the first 16 bits of the IP address are masked, making them the network bits. The remaining bits are the host bits. In this example, the network number is 10.0. RIB --Routing Information Base. A central repository of routes that contains Layer 3 reachability information and destination IP addresses or prefixes. The RIB is also known as the routing table. RP --Route Processor. The processor module in the Cisco 7000 series routers that contains the CPU, system software, and most of the memory components that are used in the router. It is sometimes called a supervisory processor. VRF --A Virtual Private Network (VPN) routing/forwarding instance. A VRF consists of an IP routing table, a derived forwarding table, a set of interfaces that use the forwarding table, and a set of rules and routing protocols that determine what goes into the forwarding table. In general, a VRF includes the routing information that defines a customer VPN site that is attached to a provider edge (PE) router.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 219
CEF Enhancements
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1110R) Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 220
Additional References
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 221
Related Documents Related Topic IPv6 addressing and connectivity Tunnels Cisco IOS commands IPv6 commands Cisco IOS IPv6 features Standards and RFCs Standard/RFC RFCs for IPv6 MIBs MIB MIBs Link To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL: http://www.cisco.com/go/mibs Technical Assistance Description The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password. Link http://www.cisco.com/cisco/web/support/ index.html Title IPv6 RFCs Document Title IPv6 Configuration Guide Interface and Hardware Component Configuration Guide Cisco IOS Master Commands List, All Releases Cisco IOS IPv6 Command Reference Cisco IOS IPv6 Feature Mapping
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 222
release train. Unless noted otherwise, subsequent releases of that software release train also support that feature. Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.
Table 67 Feature Information for IPv6 CEF-Switched Tunnels
Feature Information Cisco Express Forwarding switching can be used for IPv6 manually configured tunnels.
IPv6 Switching: CEFv6 Switched 12.2(2)T Automatic IPv4-Compatible 12.2(52)SG Tunnels 12.2(33)SRA 12.2(17a)SX1 IPv6 Switching: CEFv6 Switched 12.2(13)T Configured IPv6 over IPv4 12.2(52)SG Tunnels 12.2(33)SRA 12.2(17a)SX1 IPv6 Switching: CEFv6 Switched 12.2(15)T ISATAP Tunnels 12.2(25)SG 3.2.0SG 15.0(2)SG 12.2(33)SRA 12.2(17a)SX1
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1110R) Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams,
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 223
and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental.
IP Switching Cisco Express Forwarding Configuration Guide, Cisco IOS Release 15.2M&T 224