配置ROUTED INTERFACE并启用WEB CACHE服务。
f0/2连接一台PC,f0/11连接web cache.

Switch

conf t
ip wccp web-cache                 /*启用WEB CACHE服务
int f 0/11
no switchport
ip ad 10.1.1.7 255.255.255.0
no shut
exit
int f 0/2
no switchport
ip ad 10.1.2.7 255.255.255.0
no shut
ip wccp web-cache redirect in   /*在交换机只有in关键字,在路由器上既有in,又有out
end
在SVI端口启用WEB CACHE服务。
f0/12连接WEB 服务器,属于VLAN 3.IP 地址为10.1.10.7/24。f0/17连接WEB CACHE,属于VLAN 4,IP地址为10.1.11.7/24。f0/13~f0/16连接4台PC,属于VLAN 5,IP地址为10.1.12.7/24

switch

conf t
vlan 3
exit
vlan 4
exit
vlan 5
exit
int f 0/12
switchport mo a
switchport a vlan 3
exit
int f 0/17
switchport mo a
switchport a vlan 4
exit
int range f 0/13 -16
switchport mo a
switchport a vlan 5
exit
ip wccp web-cache
int vlan 3
ip ad 10.1.10.7 255.255.255.0
exit
int vlan 4
ip ad 10.1.11.7 255.255.255.0
exit
int vlan 5
ip ad 10.1.12.7 255.255.255.0
ip wccp web-cache redirect in
end