cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
544
Views
0
Helpful
5
Replies

Connection to the same real server all the time

Cisco Freak
Level 4
Level 4

There are 2 real servers in a server farm. Is there a way to route a connection from a particular cilent to the a particular real server in the serverfarm through the VIP.

5 Replies 5

Daniel Arrondo Ostiz
Cisco Employee
Cisco Employee

Hi,

On which product are you trying to do this? The answer is different on CSS, CSM or ACE

Daniel

Cisco ACE

CF

On the ACE, there are two possibilities:

If you are using IP stickiness, you can create a static sticky entry. This will force a client to a specific server as long as this server is available. If this server is down, it will send it to a different one. The way to configure this is by using the "static client source x.x.x.x rserver " command inside the sticky group configuration.

The second option would be creating a HTTP load-balance class-map with a "match source-address" statement and then send these to a serverfarm composed of only the server you want to use. This approach is more complex to implement and has the drawback that if the server goes down, connections from this client would be dropped. On the other hand, it doesn't need IP stickiness to work.

If you need more details regarding any of the two solutions, just let me know.

Daniel

Hi Daniel,

sticky ip-netmask 255.255.255.255 address source TEST

  timeout 60

  replicate sticky

  serverfarm TEST-SF

  static client source 1.1.1.1 rserver rs1

Will this config work?

CF

Hi

The configuration of the sticky group itself is fine (including the static entry), but you don't configure the serverfarm inside the sticky group.

For more details and examples of how stickiness is configured, please, check the link below:

http://www.cisco.com/en/US/docs/interfaces_modules/services_modules/ace/vA2_3_0/configuration/slb/guide/sticky.html#wp1096253

Daniel

Review Cisco Networking for a $25 gift card