match

Configures match criteria rules used to classify traffic

Access lists, IP precedence, DSCP values, or VLANs are commonly used to classify traffic. Access lists select traffic based on layer 2, layer 3, or layer 4 information contained in each packet.

Supported in the following platforms:

  • Service Platforms — NX 7510, NX 95XX, NX 96XX

Syntax

match [access-list [ex3500-ext-access-list|ex3500-std-access-list|mac-acl] 
<ACL-NAME>|cos <0-7>|ip [dscp <0-63>|precedence <0-7>]|ipv6 dscp <0-63>|vlan <1-4094>]

Parameters

match [access-list [ex3500-ext-access-list|ex3500-std-access-list|mac-acl] 
<ACL-NAME>|cos <0-7>|ip [dscp <0-63>|precedence <0-7>]|ipv6 dscp <0-63>|vlan <1-4094>]
match Configures the match criteria.

The options are: access-list, cos, ip, ipv6, vlan Incoming packets matching the specified criteria are included in this QoS class map.

access-list [ex3500-ext-access-list| ex3500-std-access-list| mac-acl] <ACL-NAME> Uses access lists to provide the match criteria. You can use any one the following ACL types to classify traffic:
  • ex3500-ext-access-list – Uses an IPv4 EX3500 extended ACL
  • ex3500-std-access-list – Uses an IPv4 EX3500 standard ACL
  • mac-acl – Uses a MAC EX3500 ACL
The following keyword is common to all of the above ACL types:
  • <ACL-NAME> – Specify the ACL name (should be existing and configured).
cos <0-7> Configures the class of service (CoS) value used to apply user priority. CoS is a form of QoS applicable only to layer 2 Ethernet frames. It uses 3-bits (8 values) of the 802.1Q tag to differentiate and shape network traffic.
  • <0-7> – Specify the CoS value from 0 - 7.
    Following are the 8 traffic classes based on the CoS value:
    • 000 (0) - Routine
    • 001 (1) - Priority
    • 010 (2) - Immediate
    • 011 (3) - Flash
    • 100 (4) - Flash Override
    • 101 (5) - Critical
    • 110 (6) - Internetwork Control
    • 111 (7) - Network Control
ip [dscp <0-63>| precedence <0-7>] Configures the IPv4 DSCP value to match and/or the IP precedence value to match.
  • <0-63> – Specify the DSCP value from 0 - 63. Use this option to specify the type of service (ToS) field values included in the IP header. The ToS field exists between the header length and the total length fields. The DSCP constitutes the first 6 bits of the ToS field.
  • precedence <0-7> – Configures the IP precedence to match. Following are the 8 traffic classes based on the IP precedence values:
    • 000 (0) - Routine
    • 001 (1) - Priority
    • 010 (2) - Immediate
    • 011 (3) - Flash
    • 100 (4) - Flash Override
    • 101 (5) - Critical
    • 110 (6) - Internetwork Control
    • 111 (7) - Network Control
ipv6 dscp <0-63> Configures the IPv6 DSCP value to match
  • <0-63> – Specify the DSCP value from 0 - 63.
vlan <1-4094> Configures the VLAN to match
  • <1-4094> – Specify the VLAN ID.

Usage Guidelines

When configuring match entries, take into consideration the following points:
  • Deny rules included in an ACL (associated with a vEX3500 QoS class map policy) are ignored whenever an incoming packet matches the ACL.
  • A class map policy cannot include both IP ACL or IP precedence rule and a VLAN rule.
  • A class map policy containing a MAC ACL or VLAN rule cannot include either an IP ACL or a IP precedence rule.
  • A class map policy can include a maximum of 16 match entries.

Examples

nx9500-6C8809(config-ex3500-qos-class-map-policy-dscp)#match ip dscp 3
nx9500-6C8809(config-ex3500-qos-class-map-policy-dscp)#show context
ex3500-qos-class-map-policy dscp
 description "Matches packets marked for DSCP service 3"
 match ip dscp 3
nx9500-6C8809(config-ex3500-qos-class-map-policy-dscp)#
nx9500-6C8809(config-ex3500-qos-class-map-policy-test2)#match ip precedence 1

Related Commands

no (ex3500-qos-class-map-policy-config-commands) Removes match criteria rules configured for this EX3500 QoS class map policy