
33-7
Catalyst 3550 Multilayer Switch Software Configuration Guide
78-11194-09
Chapter 33 Configuring Web Cache Services By Using WCCP
Configuring WCCP
To disable the web cache service, use the no ip wccp web-cache global configuration command. To
disable inbound packet redirection, use the no ip wccp web-cache redirect in interface configuration
command.
This example shows how to configure routed interfaces and to enable the web cache service. Fast
Ethernet interface 0/1 is connected to the cache engine, is configured as a routed port with an IP address
of 172.20.10.30, and is re-enabled. Gigabit Ethernet interface 0/1 is connected through the Internet to
the web server, is configured as a routed port with an IP address of 175.20.20.10, and is re-enabled. Fast
Ethernet interfaces 0/2 to 0/5 are connected to the clients and are configured as routed ports with IP
addresses 175.20.30.20, 175.20.40.30, 175.20.50.40, and 175.20.60.50. The switch redirects HTTP
packets received from the client interfaces to the cache engine.
Switch# configure terminal
Switch(config)# ip wccp web-cache
Switch(config)# interface fastethernet0/1
Switch(config-if)# no switchport
Switch(config-if)# ip address 172.20.10.30 255.255.255.0
Switch(config-if)# no shutdown
Switch(config-if)# exit
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# no switchport
Switch(config-if)# ip address 175.20.20.10 255.255.255.0
Switch(config-if)# no shutdown
Switch(config-if)# exit
Switch(config)# interface fastethernet0/2
Switch(config-if)# no switchport
Switch(config-if)# ip address 175.20.30.20 255.255.255.0
Switch(config-if)# no shutdown
Switch(config-if)# ip wccp web-cache redirect in
Switch(config-if)# exit
Switch(config)# interface fastethernet0/3
Switch(config-if)# no switchport
Switch(config-if)# ip address 175.20.40.30 255.255.255.0
Switch(config-if)# no shutdown
Switch(config-if)# ip wccp web-cache redirect in
Switch(config-if)# exit
Switch(config)# interface fastethernet0/4
Switch(config-if)# no switchport
Switch(config-if)# ip address 175.20.50.40 255.255.255.0
Switch(config-if)# no shutdown
Switch(config-if)# ip wccp web-cache redirect in
Switch(config-if)# exit
Step 12
ip wccp web-cache redirect in
Redirect packets received from the client to the cache engine.
Step 13
exit
Return to global configuration mode. Repeat Steps 8 through 13 for each
client.
Step 14
end
Return to privileged EXEC mode.
Step 15
show ip wccp web-cache
and
show running-config
Verify your entries.
Step 16
copy running-config startup-config
(Optional) Save your entries in the configuration file.
Command
Purpose