20-8
Cisco 10000 Series Router Quality of Service Configuration Guide
OL-7433-09
Chapter 20 Configuring Quality of Service for MPLS Traffic
MPLS QoS
For more information about other QoS actions you can define in the policy map, see the
“Types of QoS
Actions” section on page 3-4
.
Configuration Example for Setting the MPLS EXP Field Using a Policy Map
The following example shows how to set the MPLS EXP field using the
set mpls experimental
imposition
command. The sample configuration creates a policy map named
set_experimental_5
and
defines the traffic class named
IP_prec4
. The router sets the MPLS EXP bits to 5 for all of the packets
belonging to the IP_prec4 class.
Router(config)#
policy-map set_experimental_5
Router(config-pmap)#
class IP_prec4
Router(config-pmap-c)#
set mpls experimental imposition 5
Router(config-pmap-c)#
end
Attaching an MPLS QoS Service Policy to an Interface
An MPLS QoS service policy is a policy map that sets the MPLS EXP field of packets belonging to a
specific traffic class.
To attach an MPLS QoS service policy to an interface, enter the following commands beginning in global
configuration mode:
Configuration Example for Attaching an MPLS QoS Service Policy to an Interface
The following example applies the MPLS QoS service policy named
set_experimental_5
to the Gigabit
Ethernet interface 1/0/0 for inbound packets.
Router(config)#
interface GigabitEthernet1/0/0
Router(config-if)#
service-policy input set_experimental_5
Router(config-if)#
end
Configuration Examples for MPLS QoS
This section provides example configurations for the following:
•
Configuration Example for Short Pipe Mode, page 20-9
•
Configuration Example for Pipe Mode, page 20-10
Command
Purpose
Step 1
Router(config)#
interface
type number
Creates or modifies an interface. Enters interface configuration
mode.
type
is the type of interface (for example, serial).
number
is the number of the interface (for example, 1/0/0).
Step 2
Router(config-if)#
service-policy input
policy-map-name
Attaches the specified policy map to the input interface.
policy-map-name
is the name of the policy map you want to
attach to the interface.