cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
442
Views
0
Helpful
2
Replies

Balance with the same IP to two services

g.pinzon
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

yushimaz
Cisco Employee
Cisco Employee

Please try to use persistence reset feature

http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/css11500series/v8.20/configuration/content_lb/guide/ContRule.html#wp1038458

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

View solution in original post

2 Replies 2

yushimaz
Cisco Employee
Cisco Employee

Please try to use persistence reset feature

http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/css11500series/v8.20/configuration/content_lb/guide/ContRule.html#wp1038458

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

Tks Yuji, I' ll try to configure this way.

Regards