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.
This document uses this network setup:
This document uses these configurations:
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
|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
This section provides information you can use to confirm your configuration is working properly.
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
The Cisco Support Community is a forum for you to ask and answer questions, share suggestions, and collaborate with your peers.
Refer to Cisco Technical Tips Conventions for information on conventions used in this document.