HP StorageWorks Enterprise File Services WAN Accelerator Deployment Guide (November 2005)

78 7 - WCCP DEPLOYMENTS
NOTE: You do not need to configure source and destination ports on the router.
To configure TCP port
redirection
On the client-side HP EFS WAN Accelerator, at the system prompt, enter
the following command:
client-SH (config) # wccp service-group 90 routers 10.1.0.1 flags ports-
destination ports 135,139,445,21,80
Specific Traffic
Redirection
If redirection is based on traffic characteristics other than ports, Access Control
Lists (ACLs) on the router can define what traffic is redirected.
For example, if you only want the traffic destined for IP address 10.2.0.0/16 to
be redirected to the HP EFS WAN Accelerator, you would configure the router
in the following manner.
To configure specific
traffic redirection on
the router
On the router, enter the following set of commands:
Router> enable
Router# configure terminal
Router(config)# ip wccp version 2
Router(config)# access-list 101 permit tcp any 10.2.0.0 255.255.0.0
Router(config)# ip wccp 90 redirect-list 101
Router(config)# interface fastEthernet 0/0
Router(config-if)# ip wccp 90 redirect in
Router(config-if)# end
Router#
TIP: Enter configuration commands, one per line. End each command with CTRL-Z.
Load Balancing You can load-balance using WCCP. Traffic is redirected based on a hashing
scheme and the weight of the HP EFS WAN Accelerators. You can hash on a
combination of the source IP address, destination IP address, source port, or
destination port. The default weight is based on the HP EFS WAN Accelerator
model (for example, for the Model 5010 the weight would be 5010). You can
modify the default weight.
For example, to configure load balancing, you change the hashing scheme to
hash on a destination IP and port and specify a weight on the HP EFS WAN
Accelerator. (You do not need to configure the router.)
To change the hashing
scheme and assign a
weight
1. On the client-side HP EFS WAN Accelerator, enter the following
command:
client-SH (config) # wccp service-group 90 routers 10.1.0.1 flags dst-
ip-hash,dst-port-hash
2. To change the weight on the client-side HP EFS WAN Accelerator, enter
the following command:
client-SH (config) # wccp service-group 90 routers 10.1.0.1 weight 20