WCCP Configuration Examples
Example: Performing a General WCCP Configuration
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
The following example shows a general IPv6 WCCP configuration where GigabitEthernet 0/1/0 is the
client interface and GigabitEthernet 0/2/0 is the content engine interface:
Switch# configure terminal
Switch(config)# ipv6 wccp interface GigabitEthernet 0/1/0
Switch(config)# ipv6 wccp check services all
Switch(config)# interface GigabitEthernet 0/1/0
witch(config-if)# ipv6 wccp redirect in
Switch(config)# interface GigabitEthernet 0/2/0
Example: Running a Web Cache Service
The following example shows a web cache service configuration session with ingress redirection, for
IPv4:
Switch# configure terminal
Switch(config)# ip wccp web-cache
Switch(config)# interface vlan 20
Switch(config-if)# ip wccp web-cache redirect in
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
The following example shows a web-cache service configuration session with ingress redirection, for an
IPv4 VRF interface:
Switch#configure terminal
Switch(config)#ip wccp vrf test web-cache
Switch(config)#interface vlan 10
Switch(config-if)#vrf forwarding test
Switch(config-if)#ip wccp vrf test web-cache redirect in
Switch# copy running-config startup-config
Example: Running a Reverse Proxy Service
Note
The WCCP reverse proxy service is not supported for IPv6 traffic.
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
81-10
Chapter 81
Configuring WCCP Version 2 Services