Configuration Commands : qos-map match

qos-map match
Description
Use the qos-map match command to create a QoS map entry that uses match criteria to delineate traffic. Also use this command to change the matching conditions associated with an existing entry.
Syntax
qos-map <qos map name> <priority value> match acl <ACL name>
qos-map <qos map name> <priority value> match app {<application name> | <application group>}
qos-map <qos map name> <priority value> match dscp {<dscp value> | any}
qos-map <qos map name> <priority value> match protocol <IP protocol number or name> {<source ip address/netmask> | any} {<destination ip address/netmask> | any} [dscp {<dscp value> | any}] [vlan {any | <1..4094> | <interface.tag> | <any.tag> | <interface.any> | <interface.native>}]
qos-map <qos map name> <priority value> match protocol ip {<source ip address/netmask> | any} {<destination ip address/netmask> | any} [app {<application name> | any}] [dscp {<dscp value> | any}] [vlan {any | <1..4094> | <interface.tag> | <any.tag> | <interface.any> | <interface.native>}]
qos-map <qos map name> <priority value> match protocol {tcp | udp} {<source IP address/netmask> | any} {<destination IP address/netmask> | any} [{<source port number> | any} {<destination port number> | any}] [dscp {<dscp value> | any}] [vlan {any | <1..4094> | <interface.tag> | <any.tag> | <interface.any> | <interface.native>}]
qos-map <qos map name> <priority value> match vlan {any | <1..4094> | <interface.tag> | <any.tag> | <interface.any> | <interface.native>}
Arguments
qos map <qos map name>
Designates a priority value for the map entry. Acceptable values are from 1 to 65534. By default, the appliance reserves 65535 for the default entry.
match acl <ACL name>
Creates an entry that uses an existing ACL to match traffic. Also use this command to change the ACL associated with an existing entry.
match app <application name>
Creates an entry that uses a built-in or user-defined application—or an application group—to match traffic. Also use this command to change the application associated with an existing entry.
match dscp {<dscp value> | any}
Creates or modifies an entry that matches traffic with a specific DSCP marking. You can use any of the following values:
any is a wildcard.
any is a wildcard.
match protocol <IP protocol number or name>
Creates or modifies an entry that matches traffic with a specific protocol that is NOT named specifically as ip, tcp, or udp:
 
 
match protocol ip
When you specify protocol ip, the assumption is that you are allowing any IP protocol. In that case, you also need to specify an application (or application group). If you don’t, the CLI defaults to specifying any application.
If you don’t choose to specify a DSCP value in the full command, then the CLI defaults to specifying any DSCP value in the policy entry.
match protocol {tcp | udp}
If you don’t choose to specify source and destination ports in the full command, then the CLI defaults to specifying 0:0 (any source port and any destination port) in the policy entry.
If you don’t choose to specify a DSCP value in the full command, then the CLI defaults to specifying any DSCP value in the policy entry.
match vlan {any | <1..4094> | <interface.tag> | <any.tag> | <interface.any> | <interface.native>}
<1..4094> the number assigned to a VLAN
<interface.tag> as in lan0.10
<any.tag> as in any.10
<interface.any> as in lan0.any
<interface.native> as in lan0.native
any is a wildcard.
<source ip address/netmask>
Specifies the source IP address and netmask in slash notation. For example, 10.2.0.0 0.0.255.255 should be entered as 10.2.0.0/16.
<destination ip address/netmask>
Defaults
None.
Command Mode
Global Configuration Mode
See Also
See the following related commands:
n
n
n
n
n
n
Usage Guidelines
You can specify one of the following standard (built-in) applications (listed alphabetically left to right):
 
For each qos-map match command with a given priority, you must create a qos-map set command with the same priority. But, you cannot create a set command without having first created the match command.
Examples
To create a match criteria with a priority of “100” for the map, “express”, that filters for all traffic coming from the LAN with a DSCP marking of “best effort”:
(config) # qos-map express 100 match dscp be
To create a match criteria with a priority of “70” for the map, “express”, that filters for the application group, “secure”:
(config) # qos-map express 70 match app secure
To create a match criteria with a priority of “20” for “map2” that filters for all AOL traffic that’s headed from the LAN to 172.34.8.0:
(config) # qos-map map2 20 match protocol ip any 172.34.8.0 aol
Since you haven’t specified a DSCP value, the criteria will include all DSCP values, as if you had written it as follows:
(config) # qos-map map2 20 match protocol ip any 172.34.8.0 aol any
To create a match criteria with a priority of “30” for the map, “arthouse” that filters for all UDP traffic coming from port 41 and having a destination of 122.33.44.0/24:
(config) # qos-map arthouse 30 match protocol udp any 122.33.4.0/24 41:0
Since you haven’t specified a DSCP value, the criteria will include all DSCP values, as if you had written it as follows:
(config) # qos-map arthouse 30 match protocol udp any 122.33.4.0/24 41:0 any
To create a match criteria with a priority of “10” for the map, “waldo” that filters for all Interior Gateway Protocol (IGP) traffic that has a DSCP marking of “af11”:
(config) # qos-map waldo 10 match protocol igp any any dscp af11

Please send comments or suggestions regarding user documentation to techpubs@silver-peak.com.