Cisco catalyst 6500 series Configuration Note page 181

Content switching module
Hide thumbs Also See for catalyst 6500 series:
Table of Contents

Advertisement

Appendix A
Configuration Examples
# The conditions are:
# -client-group (source IP matches a certain ACL)
# -cookie-map (match based on cookies)
# -header-map (match based on HTTP headers)
# -url-map (match based on URLs)
# The actions are:
# -serverfarm (the most common: use this serverfarm)
# -sticky-group (use sticky)
# -reverse-sticky (use reverse sticky)
# -set (set ip dscp)
\module ContentSwitchingModule 5
vlan 220 server
ip address 10.20.220.2 255.255.255.0
alias 10.20.220.1 255.255.255.0
!
vlan 221 client
ip address 10.20.221.5 255.255.255.0
gateway 10.20.221.1
alias 10.20.221.2 255.255.255.0
!
probe PING icmp
interval 2
retries 2
failed 10
receive 2
!
map TEST header
match protocol http header Host header-value www.test.com
!
map SPORTS url
match protocol http url /sports/*
# The definition of maps is based on the header and the URL. The URL starts right after
# the host. For example, in the URL http://www.test.com/sports/basketball/ the URL portion
# that the URL map applies to is /sports/basketball/.
!
real SERVER1
address 10.20.220.10
inservice
real SERVER2
address 10.20.220.20
inservice
real SERVER3
address 10.20.220.30
inservice
real SERVER4
address 10.20.220.40
inservice
!
serverfarm WEBFARM
nat server
no nat client
real name SERVER1
inservice
real name SERVER2
inservice
probe PING
!
serverfarm WEBFARM2
nat server
OL-4612-01
Catalyst 6500 Series Content Switching Module Configuration Note
Layer 7 Load Balancing
A-27

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 6000 series

Table of Contents