6509的内容交换模块配置
多台主机负载均衡
6509上的部分配置文件,反正我们是第一次用,看了半天文档
module ContentSwitchingModule 3
vlan 5 server
ip address 192.168.5.254 255.255.255.0
!
vlan 20 client
ip address 202.99.20.220 255.255.255.0
gateway 202.99.20.254
!
probe HTTPPROBE http
interval 2
!
map HTTPMAP header
match protocol http header Host header-value *.XXX.com.cn
match protocol http header Accept header-value *.XXXX.com.cn
!
map XXXXX header
match protocol http header Host header-value *.XXXX.com.cn
!
map XXXXX header
match protocol http header Host header-value *.XXXXX.com.cn
!
serverfarm WEB
nat server
no nat client
predictor leastconns
real 192.168.5.1
inservice
real 192.168.5.2
inservice
real 192.168.5.3
inservice
real 192.168.5.4
inservice
real 192.168.5.5
inservice
real 192.168.5.6
inservice
real 192.168.5.7
inservice
real 192.168.5.8
inservice
.
.
.
probe HTTPPROBE
!
serverfarm XXX
nat server
no nat client
predictor leastconns
real 192.168.5.11 80
inservice
probe HTTPPROBE
!
policy PEOPLE-SITE
header-map XXXX
serverfarm XXXX
!
policy HTTPPOLICY
header-map HTTPMAP
serverfarm XXXX
!
vserver PEOPLECOUNT
virtual 公网IP tcp 8000
serverfarm XXXX
advertise active
idle 120
persistent rebalance
inservice