Reference Guide

match mac
After you create a class-map, FTOS places you in CLASS MAP mode.
Match-any class maps allow up to five access-lists. Match-all class-maps allow only one. You can match against
only one VLAN ID.
4. Link the class-map to a queue.
POLICY MAP mode
service-queue
Determining the Order in Which ACLs are Used to Classify Traffic
When you link class-maps to queues using the service-queue command, FTOS matches the class-maps according
to queue priority (queue numbers closer to 0 have lower priorities).
For example, as described in the previous example, class-map
cmap2
is matched against ingress packets before
cmap1
.
ACLs
acl1
and
acl2
have overlapping rules because the address range 20.1.1.0/24 is within 20.0.0.0/8. Therefore (without
the keyword order), packets within the range 20.1.1.0/24 match positive against
cmap1
and are buffered in queue 7,
though you intended for these packets to match positive against
cmap2
and be buffered in queue 4.
In cases such as these, where class-maps with overlapping ACL rules are applied to different queues, use the keyword
order. FTOS writes to the CAM ACL rules with lower order numbers (order numbers closer to 0) before rules with
higher order numbers so that packets are matched as you intended.
Specify the order in which you want to apply ACL rules using the keyword order.
order
The order can range from 0 to 254.
By default, all ACL rules have an order of 254.
Displaying Configured Class Maps and Match Criteria
To display all class-maps or a specific class map, use the following command.
FTOS Behavior: An explicit “deny any" rule in a Layer 3 ACL used in a (match any or match all) class-map creates a
"default to Queue 0" entry in the CAM, which causes unintended traffic classification. In the following example, traffic is
classified in two Queues, 1 and 2. Class-map ClassAF1 is “match any,” and ClassAF2 is “match all”.
Display all class-maps or a specific class map.
EXEC Privilege mode
show qos class-map
Example of Incorrect Traffic Classifications
FTOS#show running-config policy-map-input
!
policy-map-input PolicyMapIn
service-queue 1 class-map ClassAF1 qos-policy QosPolicyIn-1
service-queue 2 class-map ClassAF2 qos-policy QosPolicyIn-2
FTOS#show running-config class-map
!
class-map match-any ClassAF1
match ip access-group AF1-FB1 set-ip-dscp 10
match ip access-group AF1-FB2 set-ip-dscp 12
match ip dscp 10 set-ip-dscp 14
!
class-map match-all ClassAF2
match ip access-group AF2
match ip dscp 18
FTOS#show running-config ACL
!
647