Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

CSS stickiness

please find the attached network connection topo:

there are 2 CSS: 1 with virtual IP: 10.1.1.3 (A)and servicing 2 servers: 10.1.1.1 and 10.1.1.2; another with VIP: 11.1.1.3(B), servicing 2 servers: 11.1.1.1 and 11.1.1.2

A is used for internal server and 2 servers in B, B is used for external users only. they are all working in bridging-mode

please find the config:

A:

ip route 0.0.0.0 0.0.0.0 10.1.1.254 1

!************************* INTERFACE *************************

interface 1/1

bridge vlan 100

!************************** CIRCUIT **************************

circuit VLAN100

description "Application VLAN"

ip address 10.1.1.11 255.255.255.0

!************************** SERVICE **************************

service Server1

ip address 10.1.1.1

active

service Server2

ip address 10.1.1.2

active

!*************************** OWNER ***************************

owner L3_Owner

content L3_Rule

add service Server1

add service Server2

balance aca

vip address 10.1.1.3

active

!*************************** GROUP ***************************

group server1

vip address 10.1.1.3

add destination service Server1

add destination service Server2

active

B:

*************************** GLOBAL ***************************

ip route 0.0.0.0 0.0.0.0 11.1.1.254 1

!************************* INTERFACE *************************

interface 1/1

bridge vlan 110

!************************** CIRCUIT **************************

circuit VLAN110

ip address 11.1.1.11 255.255.255.0

!************************** SERVICE **************************

service Server1

ip address 11.1.1.1

active

service Server2

ip address 11.1.1.2

active

!*************************** OWNER ***************************

owner L3_Owner

content L3_Rule

add service Server1

add service Server2

vip address 11.1.1.3

balance aca

active

!*************************** GROUP ***************************

group server1

vip address 10.1.1.3

add destination service Server1

add destination service Server2

active

they are just basic configuration, now I need to add stickiness in them, can someone showe me how to modify the configuration?

thanks!

2 REPLIES
Community Member

Re: CSS stickiness

okease find the attached network topology

Re: CSS stickiness

What type of stickinss are you looking for?

Any ways following are the three commonly persistence examples

If you want SRC IP based stickiness then use the following command under content rule config

advanced-balance sticky-srcip-dstport

If your real servers are serviing cookies and you want sessions to stick based on the cookie values served by the real servers then use the following example

(Assumption Server1 is sending "Cookie:Mycookie=Iamserver1" & server2 is setting "Cookie:Mycookie=Iamserver2")

service server1

ip address 10.10.10.1

string Iamserver1 <-- Server is serving this cookie value

active

service server2

ip address 10.10.10.2

string Iamserver2 <-- Server is serving this cookie value

active

content sticky-cookie

vip address 192.168.0.1

url “/*”

advanced-balance cookie

string prefix “Mycookie= “ <-- name of the cookie

add service server1

add service server2

active

If your servers don't set any cookies but you want CSS to insert a cookie on behalf of servers then use the following command under content rule config.

advanced-balance arrowpoint-cookie

Syed Iftekhar Ahmed

241
Views
0
Helpful
2
Replies
CreatePlease to create content