<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Layer 7 class-map with different match types in Application Networking</title>
    <link>https://community.cisco.com/t5/application-networking/layer-7-class-map-with-different-match-types/m-p/1472446#M30458</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sean,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for your precise answer. You can find the configuration example I mentionned in the ACE Load Balancing Configuration Guide on page 3-49. Thank you for a quick feedback.In the meantime, I managed to make it working with the policy map method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yves&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jun 2010 15:15:09 GMT</pubDate>
    <dc:creator>yves.haemmerli</dc:creator>
    <dc:date>2010-06-23T15:15:09Z</dc:date>
    <item>
      <title>Layer 7 class-map with different match types</title>
      <link>https://community.cisco.com/t5/application-networking/layer-7-class-map-with-different-match-types/m-p/1472443#M30455</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am fighting with a problem on an ACE-4710 version A3(2.4) configuation. I just want to configure a layer 7 class-map that matches if one of two conditions is true. The problem is that these conditions are not from the same type and the ACE refuses the second match statement. However, in the configuration guide, it is clearly defined that it should be possible :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what the configuration guides says :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;host1/Admin(config)# class-map type http loadbalance match-any CLASS3&lt;BR /&gt;host1/Admin(config-cmap-http-lb)# 100 match http url .*.gif&lt;BR /&gt;host1/Admin(config-cmap-http-lb)# 200 match http header Host header-value XYZ&lt;BR /&gt;host1/Admin(config-cmap-http-lb)# exit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I test exactly the same configuration in a context of my ACE, I receive an error message :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CH01AC03/P-104-A(config)# class-map type http loadbalance match-any CLASS3&lt;BR /&gt;CH01AC03/P-104-A(config-cmap-http-lb)# 100 match http url .*.gif&lt;BR /&gt;CH01AC03/P-104-A(config-cmap-http-lb)# 200 match http header Host header-value XYZ&lt;BR /&gt;&lt;STRONG style="color: #ff0000; "&gt;Error: Match-any classmap can not have different type of match&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use nested class-maps, I receive the same error message !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it a known problem or is it a solution for it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yves&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2010 11:28:57 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/layer-7-class-map-with-different-match-types/m-p/1472443#M30455</guid>
      <dc:creator>yves.haemmerli</dc:creator>
      <dc:date>2010-06-23T11:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Layer 7 class-map with different match types</title>
      <link>https://community.cisco.com/t5/application-networking/layer-7-class-map-with-different-match-types/m-p/1472444#M30456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Yves,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The command error is correct.&amp;nbsp; I'll take a look at the docs and see about getting them corrected, if necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, for a match-all, you would have to use different types.&amp;nbsp; For example, there will only be one Host header, so you would only specify it once using regex or a fixed string.&amp;nbsp; As you found out, the match-any requires that they all be of the same type.&amp;nbsp; See my example below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;class-map type http loadbalance &lt;STRONG&gt;match-all&lt;/STRONG&gt; HEADER-AND-URL&lt;BR /&gt;&amp;nbsp; 100 match http url /login.*&lt;BR /&gt;&amp;nbsp; 200 match http header Host header-value "XYZ"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;class-map type http loadbalance &lt;STRONG&gt;match-any&lt;/STRONG&gt; URLS&lt;BR /&gt;&amp;nbsp; 100 match http url .*\.gif&lt;BR /&gt;&amp;nbsp; 200 match http url .*\.jpg&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;class-map type http loadbalance &lt;STRONG&gt;match-any&lt;/STRONG&gt; HEADER&lt;BR /&gt;&amp;nbsp; 200 match http header Host header-value "CISCO"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;policy-map type loadbalance first-match SLB_LOGIC&lt;BR /&gt;&amp;nbsp; class HEADER-AND-URL&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; serverfarm LOGIN-FARM&lt;BR /&gt;&amp;nbsp; class URLS&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; serverfarm IMAGES-FARM&lt;BR /&gt;&amp;nbsp; class HEADER&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; serverfarm CISCO-FARM&lt;BR /&gt;&amp;nbsp; class class-default&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; serverfarm WWW-FARM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So let's say you want to match requests for URLs ending in .jpg or for requests with Host header XYZ, and if it matches either one, then send to the same serverfarm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;class-map type http loadbalance match-any URL-JPG&lt;BR /&gt;&amp;nbsp; 2 match http url .*\.jpg&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;class-map type http loadbalance match-any HOST-XYZ&lt;BR /&gt;&amp;nbsp; 2 match http header Host header-value "XYZ"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;policy-map type loadbalance first-match SLB_LOGIC&lt;BR /&gt;&amp;nbsp; class URL-JPG&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; serverfarm SERVER-FARM&lt;BR /&gt;&amp;nbsp; class HOST-XYZ&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; serverfarm SERVER-FARM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you wanted to send these requests to the farm only if they matched BOTH matches, then you could do it as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;class-map type http&amp;nbsp; loadbalance &lt;STRONG&gt;match-all&lt;/STRONG&gt; HEADER-AND-URL&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 100 match http url /login.*&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 200 match http header Host header-value "XYZ"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;policy-map type&amp;nbsp; loadbalance first-match SLB_LOGIC&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; class HEADER-AND-URL&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; serverfarm LOGIN-FARM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jun 2010 12:33:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/layer-7-class-map-with-different-match-types/m-p/1472444#M30456</guid>
      <dc:creator>Sean Merrow</dc:creator>
      <dc:date>2010-06-23T12:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Layer 7 class-map with different match types</title>
      <link>https://community.cisco.com/t5/application-networking/layer-7-class-map-with-different-match-types/m-p/1472445#M30457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Yves,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/ace_appliances/vA3_1_0/configuration/slb/guide/classlb.html#wp1131739"&gt;Here&lt;/A&gt;&lt;/STRONG&gt; is the desciption in the docs explaining the match-all and match-any.&amp;nbsp; It looks good to me.&amp;nbsp; Can you point me to the spot in the docs where you got that example from so that I can see about getting it fixed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jun 2010 12:40:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/layer-7-class-map-with-different-match-types/m-p/1472445#M30457</guid>
      <dc:creator>Sean Merrow</dc:creator>
      <dc:date>2010-06-23T12:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Layer 7 class-map with different match types</title>
      <link>https://community.cisco.com/t5/application-networking/layer-7-class-map-with-different-match-types/m-p/1472446#M30458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sean,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for your precise answer. You can find the configuration example I mentionned in the ACE Load Balancing Configuration Guide on page 3-49. Thank you for a quick feedback.In the meantime, I managed to make it working with the policy map method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yves&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jun 2010 15:15:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/layer-7-class-map-with-different-match-types/m-p/1472446#M30458</guid>
      <dc:creator>yves.haemmerli</dc:creator>
      <dc:date>2010-06-23T15:15:09Z</dc:date>
    </item>
  </channel>
</rss>

