class-map – match protocol http url command
Hey team, good evening.
I am having doubts about my configs in a lab I am trying tonight. I could use another set of eyes (and brain … I am exhausted) …
The task says to provide everything from the URL below a certain BW. No biggie on the policy-maps, QoS, etc … I am having doubts related to the match protocol command and have pasted the two options I see below. Here are the options for the configs:
1) class-map match-all url match protocol http url “www.lmnop.com”
2) class-map match-all url match protocol http host “www.lmnop.com”
I have read this link from Arden, thanks Arden: http://ardenpackeer.com/qos-voip/tutorial-how-to-use-cisco-mqc-nbar-to-filter-websites-like-youtube/
I have some confusion still with the variations of the URLs and the use of the host keyword as part of the command … these two options equal the same? Your thoughts? Many TIA and have a great night / weekend,
Andrew Lee Lissitz all.from.nj@gmail.com
AFN, From the way I under stand this, the HOST keyword would be the best match for your match protocol command. The URL keyworj you generally be matching something inside the url, and not the host portion.
HOST –> “www.cisco.com” URL –> /qos/configuration/guide/
The other part of this is that you can use wildcards/regexp to match parts in both types as well.
Anyone please correct me if not saying this quite right.
HTH
Hi, I agree with Dennis absolutely except small point. URL –> /qos/configuration/guide/* <– Do not forget asterisk to mark sub-links.
Cheer. But Nguyen
yeah, you want option 2 man : ) The URL keyword matches things AFTER the host portion.
Thanks very much!!!
Much appreciate it! I was thinking today that I needed to do some better testing and it really helped. Appreciate the guidance and second set of eyes …
Have a good night!
On Sat, Aug 15, 2009 at 12:40 AM, Joe Astorinowrote:
Hey Andrew,
On Sat, Aug 15, 2009 at 2:03 PM, ALL From_NJ wrote: > > I have some confusion still with the variations of the URLs and the use of > the host keyword as part of the command … these two options equal the > same? Your thoughts? Many TIA and have a great night / weekend,
I see you’ve subsequently figured it out, but here’s a link to a GS thread where “match protocol http [...]” was covered in quite a lot of detail back in February:
http://www.groupstudy.com/archives/ccielab/200906/msg00714.html
cheers, Dale