Document ID: 4074
Contents
Introduction
Prerequisites
Requirements
Components Used
Conventions
Configure
Network Diagram
Configurations
Configure WCCPv2 on the Content Engine and Switch
Verify
Troubleshoot
Related Information
Introduction
The Web Content Communication Protocol (WCCP) Layer 2 (L2) Policy Feature Card (PFC) redirection feature allows Cisco Content Engines to perform a L2/MAC address rewrite redirection method when directly connected to compatible Cisco switches. The redirection processing is accelerated in the switching hardware, which makes this method more efficient than Layer 3 (L3) redirection with Generic Routing Encapsulation (GRE). L2 redirection takes place on the switch, and is not visible to the Multilayer Switch Feature Card (MSFC). The WCCP L2 PFC redirection feature requires no configuration on the MSFC.
This document provides basic instructions for how to configure L2 Web Cache Communication Protocol Version 2 (WCCPv2) redirection on both the Cisco Content Engine and a Cisco Catalyst 6000 switch.
Prerequisites
Requirements
There are no specific requirements for this document.
Components Used
Cisco Content Engines running v2.2 code and later support L2 WCCP redirection when connected directly to a Catalyst 6000 series switch with a MFSC routing card. Catalyst 4840g support is to be added in the future, however, was not available when this document was created.
The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command.
Conventions
For more information on document conventions, refer to the Cisco Technical Tips Conventions.
Configure
In this section, you are presented with the information to configure the features described in this document.
Note: For more information on the commands used in this document, use the Command Lookup Tool (registered customers only) .
Network Diagram
This document uses this network setup:

Configurations
This document uses these configurations:
|
Content Engine |
|---|
Current configuration: ! ! ! user add admin uid 0 capability admin-access ! ! ! hostname ce-4 ! interface ethernet 0 ip address 10.1.1.2 255.255.255.0 ip broadcast-address 10.1.1.255 exit ! ! interface ethernet 1 exit ! cron file /local/etc/crontab !--- Configure various router lists for use with WCCPv2 services. ! wccp router-list 1 10.1.1.1 !--- Instruct the router to run the Web Content service with WCCPv2. wccp web-cache router-list-num 1 l2-redirect !--- Specify the verion of WCCP the Content Engine should use. wccp version 2 ! authentication login local enable authentication configuration local enable rule no-cache url-regex .*cgi-bin.* rule no-cache url-regex .*aw-cgi.* ! ! end |
Configure WCCPv2 on the Content Engine and Switch
|
WCCPv2 with L2 Redirection on the Content Engine |
|---|
ce-4#config Enter configuration commands, one per line. End with CNTL/Z ce-4(config)#wccp router-list 1 10.1.1.1 ce-4(config)#wccp web-cache router-list-num 1 l2-redirect ce-4(config)#wccp version 2 ce-4(config)#^Z |
The L2 redirect specification resides on the Content Engine. The switch configuration only requires that the WCCPv2 is enabled, and a redirect statement on the outbound Ethernet interface is added.
|
WCCPv2 Redirection on the Catalyst 6000 Switch |
|---|
cat#config t Enter configuration commands, one per line. End with CNTL/Z. cat(config)#ip wccp web-cache cat(config)#interface fastEthernet2/2 cat(config-if)#ip wccp web-cache redirect out cat(config-if)#^Z |
Verify
This section provides information you can use to confirm your configuration is working properly.
Certain show commands are supported by the Output Interpreter Tool (registered customers only) , which allows you to view an analysis of show command output.
-
show ip wccp web-cache detail — displays statistics for only the first packet of a L2 redirected flow, which provides an indication of how many flows, rather than packets, are using L2 redirection.
cat#sh ip wccp web-cache detail
WCCP Cache-Engine information:
IP Address: 10.1.1.2
Protocol Version: 2.0
State: Usable
Redirection: L2
Initial Hash Info: 00000000000000000000000000000000
00000000000000000000000000000000
Assigned Hash Info: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
Hash Allotment: 256 (100.00%)
Packets Redirected: 0
Connect Time: 15:37:58
Troubleshoot
WCCP only works with Cisco Express Forwarding enabled on software release 12.1(1)E2 and later. For more information, refer to Bug ID CSCdr10156 (registered customers only) .
Related Information
- Web Cache Communication Protocol Version 2
- Download Cisco Application and Content Networking System (ACNS) Software
- Content Networking Devices Technical Support
- Technical Support - Cisco Systems
| Updated: Jan 31, 2006 | Document ID: 4074 |
