Send document comments to nexus7k-docfeedback@cisco.com.
5-10
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
OL-20002-02
Chapter 5 Configuring WCCPv2
Configuring WCCPv2
This example shows how to configure a router to redirect web-related packets without a destination of
19.20.2.1 to the web cache:
switch(config)# access-list 100
switch(config-acl)# deny ip any host 192.0.2.1
switch(config-acl)# permit ip any any
switch(config-acl)# exit
switch(config)# ip wccp web-cache redirect-list 100
switch(config)# interface ethernet 2/1
switch(config-if)# ip wccp web-cache redirect out
Configuring WCCPv2 in a VRF
You can configure WCCPv2 redirection on an interface in a VRF.
Note The WCCPv2 VRF must match the VRF configured on the interface.
SUMMARY STEPS
1. config t
2. vrf-context vrf-name
3. ip wccp {service-number | web-cache} [mode {open [redirect-list acl-name] | closed service-list
acl-name}]] [password [0-7] pwstring]
4. show ip wccp [vrf vrf-name]
5. copy running-config startup-config
Command Purpose
ip wccp
service-number
redirect {in | out}
Example:
switch(config-if)# ip wccp 10 redirect in
Applies WCCPv2 redirection on the ingress or
egress traffic for this interface.
ip wccp web-cache
redirect {in | out}
Example:
switch(config-if)# ip wccp web-cache
redirect out
Applies WCCPv2 redirection on the ingress or
egress web cache traffic for this interface.
ip wccp redirect exclude in
Example:
switch(config-if)# ip wccp redirect
exclude in
Excludes ingress traffic from WCCP redirection on
this interface.