Cisco ACE Module New Farm - 2 Servers http/https - w/ sticky

Download Template
Create Rservers Create Serverfarm Create VIP This is specific to my environment and doesn't create the probes but should be easy enough or enough of a baseline for most simple configs.

February 16, 2012

rserver host %{RSERVER01_HOST}%
description %{RSERVER01_DESC}%
ip address %{RSERVER01_IPADD}%
probe PRB-ICMP

rserver host %{RSERVER02_HOST}%
description %{RSERVER02_DESC}%
ip address %{RSERVER02_IPADD}%
probe PRB-ICMP

serverfarm host SF-%{SERVERFARM_NAME}%
predictor leastconns slowstart 120
rserver %{RSERVER01_HOST}%
probe %{SF_PROBE}%
rserver %{RSERVER02_HOST}%
probe %{SF_PROBE}%

class-map match-all VS-%{VIP_NAME}%
  2 match virtual-address %{VIP_IPADDRESS}% tcp eq www
  3 match virtual-address %{VIP_IPADDRESS}% tcp eq https

sticky ip-netmask address source STKY-SRC-IP-$[VIP_NAME}%
  timeout 720
  replicate sticky
  serverfarm SF-%{SERVERFARM_NAME}%

policy-map type loadbalance first-match VS-%{VIP_NAME}%
  class class-default
    sticky-serverfarm STKY-SRC-IP-%{VIP_NAME}%
class VS-%{VIP_NAME}%
   loadbalance vip inservice
    loadbalance policy VS-%{VIP_NAME}%
    loadbalance vip icmp-reply active

You must be logged in to comment.