class-map config with asterisk (*)

Answered Question
Dec 15th, 2008
User Badges:
  • Blue, 1500 points or more

all,


in the configuration of class-map with expressions, what are the differences between placing the asterisk (*) on the examples below?


class-map class1

match protocol http mime "*.jpeg"


class-map class2

match protocol http host cisco*


class-map class3

match protocol fasttrack file-transfer "*cisco*"


Correct Answer by royalblues about 8 years 6 months ago

match protocol http mime "*.jpeg"

All http mime files having an extension *.jpeg will be matched


match protocol http host cisco*

Will match the http packets with the hostname string. The * at the end of the string match cisco at the beginning of the string


match protocol fasttrack file-transfer "*cisco*"

This matches all the fast track protocols with the character Cisco. * at both ends means match if it is present anywhere in the string


HTH

Narayan

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
royalblues Mon, 12/15/2008 - 01:28
User Badges:
  • Green, 3000 points or more

match protocol http mime "*.jpeg"

All http mime files having an extension *.jpeg will be matched


match protocol http host cisco*

Will match the http packets with the hostname string. The * at the end of the string match cisco at the beginning of the string


match protocol fasttrack file-transfer "*cisco*"

This matches all the fast track protocols with the character Cisco. * at both ends means match if it is present anywhere in the string


HTH

Narayan

Actions

This Discussion