04-12-2011 08:35 AM
Hi, I have a CSS 11503 version 8.20 and want to see if I can balance based on content, ie two web services to point to a VIP (same IP and port) and based on the content (or URL typed by user ) is sent to one grange or to another grange. I can do this with CSS or an ACE? Does anyone have some guide about how do it?
Regards
Solved! Go to Solution.
04-12-2011 05:42 PM
Please try to use persistence reset feature
Sample config is as below.
---
configure
!*************************** GLOBAL ***************************
persistence reset remap
!************************* INTERFACE *************************
interface 1/1
bridge vlan 774
interface 1/2
bridge vlan 775
!************************** CIRCUIT **************************
circuit VLAN774
ip address 192.168.74.200 255.255.255.0
circuit VLAN775
ip address 192.168.75.200 255.255.255.0
!************************** SERVICE **************************
service server1
ip address 192.168.75.1
active
service server2
ip address 192.168.75.2
active
!*************************** OWNER ***************************
owner test
content a.jpg
vip address 192.168.74.100
port 80
protocol tcp
url "/a.jpg"
add service server1
no persistent
active
content b.jpg
vip address 192.168.74.100
port 80
protocol tcp
url "/b.jpg"
add service server2
no persistent
active
---
+-- server1(a.jpg)
|
client -- CSS --+
|
+-- server2(b.jpg)
1) establish the connection between client and CSS(vip:192.168.74.100)
2) send 'GET /a.jpg' from client
3) send 'GET /b.jpg' from client
If client sends above requests in order and 'persistence reset remap' is enabled,
CSS sends first get request(GET /a.jpg) to server1. After 2nd get request is received
from client, CSS sends RST to server1 and then establishes connection with server2
to get b.jpg.
Regards,
Yuji
04-12-2011 05:42 PM
Please try to use persistence reset feature
Sample config is as below.
---
configure
!*************************** GLOBAL ***************************
persistence reset remap
!************************* INTERFACE *************************
interface 1/1
bridge vlan 774
interface 1/2
bridge vlan 775
!************************** CIRCUIT **************************
circuit VLAN774
ip address 192.168.74.200 255.255.255.0
circuit VLAN775
ip address 192.168.75.200 255.255.255.0
!************************** SERVICE **************************
service server1
ip address 192.168.75.1
active
service server2
ip address 192.168.75.2
active
!*************************** OWNER ***************************
owner test
content a.jpg
vip address 192.168.74.100
port 80
protocol tcp
url "/a.jpg"
add service server1
no persistent
active
content b.jpg
vip address 192.168.74.100
port 80
protocol tcp
url "/b.jpg"
add service server2
no persistent
active
---
+-- server1(a.jpg)
|
client -- CSS --+
|
+-- server2(b.jpg)
1) establish the connection between client and CSS(vip:192.168.74.100)
2) send 'GET /a.jpg' from client
3) send 'GET /b.jpg' from client
If client sends above requests in order and 'persistence reset remap' is enabled,
CSS sends first get request(GET /a.jpg) to server1. After 2nd get request is received
from client, CSS sends RST to server1 and then establishes connection with server2
to get b.jpg.
Regards,
Yuji
04-13-2011 08:08 AM
Tks Yuji, I' ll try to configure this way.
Regards
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide