Classifying Ip Packets Using A Class Map - Cisco 10000 Series Configuration Manual

Quality of service configuration guide
Hide thumbs Also See for 10000 Series:
Table of Contents

Advertisement

MPLS QoS

Classifying IP Packets Using a Class Map

To classify IP packets using a class map, enter the following commands on the ingress LSR beginning
in global configuration mode:
Command
Step 1
Router(config)# class-map class-map-name
Step 2
Router(config-cmap)# match mpls experimental
topmost value
Step 3
Router(config-cmap)# match criteria
Configuration Example for Classifying IP Packets Using a Class Map
The following example creates a class map named exp4 with MPLS EXP 4 defined as the match
criterion. The router classifies all packets whose EXP bits are set to 4 as belonging to the exp4 traffic
class.
Router(config)# class-map match-all exp4
Router(config-cmap)# match mpls experimental topmost 4
Router(config-cmap)# end
The following example creates a class map named IP_prec4 with IP precedence 4 defined as the match
criterion. The router classifies all packets that contain IP precedence 4 as belonging to the IP_prec4
traffic class.
Router(config)# class-map match-all IP_prec4
Router(config-cmap)# match ip precedence 4
Router(config-cmap)# end
The following example creates a class map named http with the access control list (ACL) named http
defined as the match criterion. The router classifies all packets that match the http ACL as belonging to
the http traffic class.
Router(config)# class-map match-all http
Router(config-cmap)# match access-group name http
Router(config-cmap)# end
Cisco 10000 Series Router Quality of Service Configuration Guide
20-6
Chapter 20
Configuring Quality of Service for MPLS Traffic
Purpose
Creates or modifies a class map.
class-map-name is the name of the class map.
(Optional) Specifies the MPLS EXP bits value used to classify
traffic.
You can configure MPLS EXP-based classification on
Note
the ingress provider edge (PE), egress PE, provider
(P), or penultimate P router. This command is
available only on the PRE2.
Defines criteria by which the router matches packets to this
traffic class.
criteria is the match type (for example, precedence or DSCP
level)
For more information about match types, see the
Match Criteria Using the match Commands" section on
page
2-5.
"Defining
OL-7433-09

Advertisement

Table of Contents
loading

Table of Contents