A-26
Catalyst 6500 Series Content Switching Module Configuration Note
OL-4612-01
Appendix A Configuration Examples
Layer 7 Load Balancing
max parse len = 2000, persist rebalance = TRUE
ssl sticky offset = 0, length = 32
conns = 0, total conns = 6
Default policy:
server farm = WEBFARM, backup = <not assigned>
sticky: timer = 0, subnet = 0.0.0.0, group id = 0
Policy Tot matches Client pkts Server pkts
-----------------------------------------------------
SOURCE-IP-50 6 36 30
(default) 0 0 0
# This example shows that SERVER3 and SERVER4 have received 3 connections each.
Cat6k-2# show mod csm 5 real detail
SERVER1, WEBFARM, state = OPERATIONAL
address = 10.20.220.10, location = <NA>
conns = 0, maxconns = 4294967295, minconns = 0
weight = 8, weight(admin) = 8, metric = 0, remainder = 0
total conns established = 0, total conn failures = 0
SERVER2, WEBFARM, state = OPERATIONAL
address = 10.20.220.20, location = <NA>
conns = 0, maxconns = 4294967295, minconns = 0
weight = 8, weight(admin) = 8, metric = 0, remainder = 0
total conns established = 0, total conn failures = 0
SERVER3, WEBFARM2, state = OPERATIONAL
address = 10.20.220.30, location = <NA>
conns = 0, maxconns = 4294967295, minconns = 0
weight = 8, weight(admin) = 8, metric = 0, remainder = 0
total conns established = 3, total conn failures = 0
SERVER4, WEBFARM2, state = OPERATIONAL
address = 10.20.220.40, location = <NA>
conns = 0, maxconns = 4294967295, minconns = 0
weight = 8, weight(admin) = 8, metric = 0, remainder = 0
total conns established = 3, total conn failures = 0
Cat6k-2#
Layer 7 Load Balancing
This example shows how to make load-balancing decisions based on Layer 7 information. In this case,
the CSM terminates the TCP connection, buffers the request, and parses it to see if the request matches
the policy conditions. When a load-balancing decision is made, the CSM opens the connection to the
selected server and splices the two flows together.
The configuration in this example requires the use of maps and policies. A policy is a list of conditions
and actions that are taken if all the conditions are true.
Cat6k-2(config-module-csm)# policy test
Cat6k-2(config-slb-policy)# ?
SLB policy config
client-group define policy client group
cookie-map define policy cookie map
default Set a command to its defaults
exit exit slb policy submode
header-map define policy header map
no Negate a command or set its defaults
reverse-sticky define sticky group for reverse traffic
serverfarm define policy serverfarm
set set policy parameters
sticky-group define policy sticky group
url-map define policy URL map