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.
There are no specific requirements for this document.
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.
For more information on document conventions, refer to the Cisco Technical Tips Conventions.
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) .
This document uses this network setup:
This document uses these configurations:
| Content Engine
user add admin uid 0 capability admin-access
interface ethernet 0
ip address 10.1.1.2 255.255.255.0
ip broadcast-address 10.1.1.255
interface ethernet 1
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.*
| WCCPv2 with L2 Redirection on the Content Engine
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
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
Enter configuration commands, one per line. End with CNTL/Z.
cat(config)#ip wccp web-cache
cat(config-if)#ip wccp web-cache redirect out
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
Initial Hash Info: 00000000000000000000000000000000
Assigned Hash Info: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
Hash Allotment: 256 (100.00%)
Packets Redirected: 0
Connect Time: 15:37:58
WCCP only works with Cisco Express Forwarding enabled on software release 12.1(1)E2 and later. For more information, refer to Cisco bug ID CSCdr10156 (registered customers only) .