Cisco Cisco Content Switching Module Manual Técnica
!−−− This is a transparent redirect; do not change the destination IP address.
no nat client
predictor hash url
!−−− Use URL hashing to make sure the request for a specific URL always goes to the same server.
real 192.168.30.200
inservice
real 192.168.30.201
inservice
!
serverfarm FORWARD
no nat server
no nat client
predictor forward
!−−− This serverfarm tells the CSM not to load balance.
!−−− The CSM instead uses its routing table to forward the traffic.
!
map CACHEABLE url
!−−− In this example, you want to only redirect requests for certain file types.
!−−− This is not mandatory.
!−−− You can also adjust this to something more realistic.
match protocol http url *.html
match protocol http url *.gif
match protocol http url *.jpg
match protocol http url *.exe
match protocol http url *.zip
!
policy CACHEABLE
!−−− The policy is the way to link the map with a serverfarm.
url−map CACHEABLE
serverfarm CACHES
!
vserver FROMCACHE
!−−− This rule is for traffic originating from the caches (when they have
!−−− to retrieve content from the origin server).
virtual 0.0.0.0 0.0.0.0 any
vlan 501
!−−− The VLAN command guarantees that you limit this vserver to the cache VLAN.