64-10
Software Configuration Guide—Release 15(02)SG
OL-23818-01
Chapter 64 Configuring WCCP Version 2 Services
WCCP Configuration Examples
WCCP Configuration Examples
This section provides the following configuration examples:
Performing a General WCCP Configuration Example, page 64-10
Running a Web Cache Service Example, page 64-10
Running a Reverse Proxy Service Example, page 64-10
Running TCP-Promiscuous Service Example, page 64-11
Running Redirect Access-List Example, page 64-11
Using Access Lists Example, page 64-11
Setting a Password for a Switch and Content Engines Example, page 64-11
Verifying WCCP Settings Example, page 64-12

Performing a General WCCP Configuration Example

The following example shows a general WCCP configuration session. VLAN 20 is for the client
interface. VLAN 50 is for the content engine interface.
Switch# configure terminal
Switch(config)# ip wccp web-cache group-address 224.1.1.100 password alaska1
Switch(config)# interface vlan 20
Switch(config-if)# ip wccp web-cache redirect in
Switch(config)# interface vlan 50
Switch(config-if)# ip wccp web cache group-listen

Running a Web Cache Service Example

The following example shows a web cache service configuration session with ingress redirection:
Switch# configure terminal
Switch(config)# ip wccp web-cache
Switch(config)# interface vlan 20
Switch(config-if)# ip wccp web-cache redirect in
Switch(config-if)# ^Z
Switch# copy running-config startup-config
Switch# show ip interface vlan 20 | include WCCP Redirect
WCCP Redirect inbound is enabled
WCCP Redirect exclude is disabled

Running a Reverse Proxy Service Example

The following example assumes you a configuring a service group using Cisco Content Engines, which
use dynamic service 99 to run a reverse proxy service. The following example illustrates how to
configure egress redirection, where VLAN 40 reflects the server interface and VLAN 50 reflects the
content engine interface:
Switch# configure terminal
Switch(config)# ip wccp 99
Switch(config)# interface vlan 40
Switch(config-if)# ip wccp 99 redirect in
Switch(config# interface vlan 50
Switch(config-if)# ip wccp redirect exclude in