From: Thor Kopp (thorkopp@googlemail.com)
Date: Sun May 25 2008 - 10:39:58 ART
If you wanted to match a url as you have in your example then use 'match
protocol http url www.yahoo.com/finance' under your class-map. if you want
to match anything beyond a hostname then use url or mime, depending on what
you want to match.
- Thor
On Sat, May 24, 2008 at 11:25 PM, Athaide, Dwayne <DAthaide@epco.com> wrote:
> Please clarify
> So if we were to match the host and url we would need a match-all statement
> in the class-map one for the host and one for the directory ?
> Like the example below
> www.yahoo.com/finance
>
> class-map match-all TEST
> match protocol http host www.yahoo.com
> match protocol http url "finance"
>
> -----Original Message-----
> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
> Thor Kopp
> Sent: Saturday, May 24, 2008 6:40 AM
> To: Joseph Brunner
> Cc: ccie; Cisco certification
> Subject: Re: What would be the difference between these two class-maps
>
> Correct, even though you specify anything after the /, nbar strips that and
> only matches the host portion of your string so with your second statement
> you would match anything from www.cisco.com regardless of what directory
> it
> came from.
>
> From the doc url
>
> Host specification is identical to URL specification. NBAR performs a
> regular expression match on the host field contents inside an HTTP packet
> and classifies all packets from that host. For example, for the URL
> www.cisco.com/latest/whatsnew.html, include only www.cisco.com.
>
>
> http://www.cisco.com/en/US/docs/ios/qos/configuration/guide/clsfy_traffic_nbar_ps6350_TSD_Products_Configuration_Guide_Chapter.html#wp1055866
>
> - Thor
> On Sat, May 24, 2008 at 12:24 PM, Joseph Brunner <joe@affirmedsystems.com>
> wrote:
>
> > Im not behind my 2811 right now, but I don't expect the second one to
> work.
> >
> > The http host feature identifies the site, while the directory identifies
> > the content on that host. I have never seen both work in the one host
> line.
> >
> > -Joe
> >
> > -----Original Message-----
> > From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
> > ccie
> > Sent: Saturday, May 24, 2008 6:59 AM
> > To: 'Cisco certification'
> > Subject: What would be the difference between these two class-maps
> >
> > Experts,
> >
> >
> >
> > What would be the difference between these two class-maps
> >
> >
> >
> > class-map match-all TEST
> >
> > match protocol http host "www.XYZ.com <http://www.xyz.com/> <
> http://www.xyz.com/>"
> >
> > match protocol http url "/directory/"
> >
> >
> >
> > vs
> >
> >
> >
> > class-map match-all TEST
> >
> > match protocol http host "www.XYZ.com/directory<http://www.xyz.com/directory>
> <http://www.xyz.com/directory>
> > "
> >
> >
> >
> >
> >
> > Regards,
> >
> > Amin
> >
> >
> > _______________________________________________________________________
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
> >
> >
> > _______________________________________________________________________
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
>
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
This archive was generated by hypermail 2.1.4 : Mon Jun 02 2008 - 06:59:18 ART