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

ACE 4710 Class-maps - IF and OR logic

grichardson661
Level 1
Level 1

Hi,

I'm currently looking at doing some re-design work for a platform we manage on the ACE.

I want to be able to run a single VIP and only do a sticky session based around specific URL's not all.

I've got the following configuration to apply a sticky session to a URL.

class-map type http loadbalance match-all WEB-CLASS-MAP-L7
  2 match http url /urltobedefined.co.uk/test
class-map match-all WEB-CLASS-MAP-80
  2 match virtual-address 192.168.1.1 tcp eq www

policy-map type loadbalance http first-match WEB-POLICY-L7
  class WEB-CLASS-MAP-L7
    sticky-serverfarm CORPORATE-HTTP-vFARM-STICKY
class class-default

    Serverfarm - none sticky

policy-map multi-match VIP-POLICY

class WEB-CLASS-MAP-80
    loadbalance vip inservice
    loadbalance policy WEB-POLICY-L7
    loadbalance vip icmp-reply

Notice, under the Policy-map type loadbalance http first-match WEB-POLICY-L7 i have two class statements, one that matches the URL L7 policy and applies a sticky farm and the second class falls into the default.

Am i right in saying with this configuration, any http traffic hitting the VIP 192.168.1.1 that does NOT match /urltobedefined.co.uk/test sticky sessions are NOT applied. But traffic hitting 192.168.1.1 that does match /urltobedefined.co.uk/test will apply the sticky policy?   

Any feedback would be appreciated.

Cheers,

1 Accepted Solution

Accepted Solutions

sivaksiv
Cisco Employee
Cisco Employee

Hi,

Your understanding is correct.

Regards,

Siva

View solution in original post

2 Replies 2

sivaksiv
Cisco Employee
Cisco Employee

Hi,

Your understanding is correct.

Regards,

Siva

Cool, cheers Sivaksiv i'll give it a go.

Review Cisco Networking for a $25 gift card