match
To configure QoS class map match criteria, use the match command in class map configuration submode. Remove QoS class map match criteria, use the no form of the command.
match {any | destination-address fc-id [mask address-mask] | destination-device-alias name | destination-wwn wwn-id | input-interface fc slot/port | source-address fc-id [mask address-mask] | source-device-alias name | source-wwn wwn-id}
nomatch {any | destination-address fc-id [mask address-mask] | destination-device-alias name | destination-wwn wwn-id | input-interface fc slot/port | source-address fc-id [mask address-mask] | source-device-alias name | source-wwn wwn-id}
Syntax Description
any |
Enables matching of any frame. |
destination-address fc-id |
Specifies the destination FCID to match frames. |
mask address-mask |
(Optional) Specifies an address mask to match frames. The range is 0x0 to 0xffffffff. |
destination-device-alias name |
Specifies the destination device alias to match frames. Maximum length is 64 characters. |
destination-wwn wwn-id |
Specifies the destination WWN to match frames. |
input-interface fc slot / port |
Specifies the source Fibre Channel interface to match frames. |
source-address fc-id |
Specifies the source FCID to match frames. |
source-device-alias name |
Specifies the source device alias to match frames. Maximum length is 64 characters. |
source-wwn wwn-id |
Specifies the source WWN to match frames. |
Command Default
None.
Command Modes
Class map configuration submode.
Command History
Release |
Modification |
---|---|
1.3(1) |
This command was introduced. |
2.0(x) |
Added the destination-device-alias and source-device-alias options. |
Usage Guidelines
You can access this command only if you enable the QoS data traffic feature using the qos enable command.
Examples
The following example creates a class map called MyClass1 and places you in the class map configuration submode to match any (default) criteria specified for this class:
switch# config terminal
switch(config)# qos class-map MyClass1 match-any
switch(config-cmap)# match any
The following example specifies a destination address match for frames with the specified destination FCID:
switch(config-cmap)# match destination-address 0x12ee00
The following example specifies a source address and mask match for frames with the specified source FCID. Mask refers to a single or entire area of FCIDs:
switch(config-cmap)# match source-address 0x6d1090 mask 0
The following example specifies a destination WWN to match frames:
switch(config-cmap)# match destination-wwn 20:01:00:05:30:00:28:df
Operation in progress. Please check class-map parameters
The following example specifies a source WWN to match frames:
switch(config-cmap)# match source-wwn 23:15:00:05:30:00:2a:1f
Operation in progress. Please check class-map parameters
The following example specifies a source interface to match frames:
switch(config-cmap)# match input-interface fc 2/1
Operation in progress. Please check class-map parameters
The following example removes a match based on the specified source interface:
switch(config-cmap)# no match input-interface fc 3/5