match dscp

Configures matching based on a Differentiated Services Code Point (DSCP) value or range of values for a route-map sequence number.

Syntax

match dscp { eq | gt | lt } value-1
match dscp neq value-1 [value-32 ]
match dscp range value-1 value-2
no match dscp { eq | gt | lt } value-1
no match dscp neq value-1 [value-32 ]
no match dscp range value-1 value-2

Command Default

Matching based on DSCP value is not configured.

Parameters

eq value-1
Specifies that matching occurs when the packet DSCP value is equal to the specified DSCP value.
gt value-1
Specifies that matching occurs when the packet DSCP value is greater than the specified DSCP value.
lt value-1
Specifies that matching occurs when the packet DSCP value is less than the specified DSCP value.
neq value-1 [value-32 ]
Specifies that matching occurs when the packet DSCP value is not equal to all of the specified DSCP values. You can specify a maximum of 32 values.
range value-1 value-2
Specifies that matching occurs when the packet DSCP value is within the specified range of DSCP values.

Modes

Route-map configuration mode

Usage Guidelines

Up to 128 match dscp statements are allowed per route-map sequence number for the following options:
  • eq
  • range

When multiple match dscp statements of the same type exist, matching occurs when traffic matches any one of the statements.

Only one match dscp statement is allowed per route-map sequence number for the following options:
  • lt
  • gt
  • neq
Note

Note

Configuring the range option may create a lot of TCAM entries (due to rule expansion).

The no form of the command disables the configuration.

Examples

The following example shows how to configure matching based on DSCP value (23) for sequence number 4 under a route map named rm.

device# configure terminal
device(config)# route-map rm permit 4
device(config-route-map-rm/permit/4)# match dscp eq 23