Step 1 |
configure
|
|
Step 2 | policy-map
policy-name
Example:
RP/0/0/CPU0:router(config)# policy-map policy1
|
Creates or
modifies a policy map that can be attached to one or more interfaces to specify
a service policy and enters the policy map configuration mode.
|
Step 3 | class
class-name
Example:
RP/0/0/CPU0:router(config-pmap)# class class1
|
Specifies the
name of the class whose policy you want to create or change and enters the
policy class map configuration mode.
|
Step 4 | set
precedence
[tunnel]
number
Example:
RP/0/0/CPU0:router(config-pmap-c)# set precedence 1
|
Sets the
precedence value in the IP header.
|
Step 5 | set dscp
[tunnel]
number
Example:
RP/0/0/CPU0:router(config-pmap-c)# set dscp 5
|
Marks a packet by
setting the DSCP in the ToS byte.
|
Step 6 | set
qos-group
qos-group-value
Example:
RP/0/0/CPU0:router(config-pmap-c)# set qos-group 31
|
Sets the QoS
group identifiers on IPv4 or MPLS packets.
The
set qos-group
command is supported only on an ingress policy.
|
Step 7 | set cos
cos-value
Example:
RP/0/0/CPU0:router(config-pmap-c)# set cos 7
|
Sets the specific
IEEE 802.1Q Layer 2 CoS value of an outgoing packet. Values are from 0 to7.
Sets the Layer 2
CoS value of an outgoing packet.
-
This command
should be used by a router if a user wants to mark a packet that is being sent
to a switch. Switches can leverage Layer 2 header information, including a CoS
value marking.
-
Packets
entering an interface cannot be set with a CoS value.
|
Step 8 | set cos
[inner]
cos-value
Example:
RP/0/0/CPU0:router(config-pmap-c)# set cos 7
|
Sets the
specific IEEE 802.1Q Layer 2 CoS value of an outgoing packet. Values are from 0
to7.
Sets the Layer
2 CoS value of an outgoing packet.
-
This command
should be used by a router if a user wants to mark a packet that is being sent
to a switch. Switches can leverage Layer 2 header information, including a CoS
value marking.
-
For Layer 2
interfaces, the set cos command:
Is rejected on
ingress or egress policies on a main interface.
Is accepted but
ignored on ingress policies on a subinterface.
Is supported on
egress policies on a subinterface.
-
For Layer 3
interfaces, the set cos command:
Is ignored on
ingress policies on a main interface.
Is rejected on
ingress policies on a subinterface.
Is supported on
egress policies on main interfaces and subinterfaces.
|
Step 9 | set mpls experimental
{imposition |
topmost}
exp-value
Example:
RP/0/0/CPU0:router(config-pmap-c)# set mpls experimental imposition 3
|
Sets the
experimental value of the MPLS packet top-most or imposition labels.
Note
| The
imposition keyword can be used only in service
policies that are attached in the ingress policy.
|
|
Step 10 | set srp-priority
priority-value
Example:
RP/0/0/CPU0:router(config-pmap-c)# set srp-priority 3
|
Sets the
spatial reuse protocol (SRP) priority value of an outgoing packet.
Note
| This
command can be used only in service policies that are attached in the output
direction of an interface.
|
|
Step 11 | set
discard-class
discard-class-value
Example:
RP/0/0/CPU0:router(config-pmap-c)# set discard-class 3
|
Sets the
discard class on IP Version 4 (IPv4) or Multiprotocol Label Switching (MPLS)
packets.
Note
| This
command can be used only in service policies that are attached in the ingress
policy.
|
|
Step 12 | set atm-clp
Example:
RP/0/0/CPU0:router(config-pmap-c)# set atm-clp
|
Sets the cell
loss priority (CLP) bit.
|
Step 13 | exit
Example:
RP/0/0/CPU0:router(config-pmap-c)# exit
|
Returns the router to
policy map configuration mode.
|
Step 14 | exit
Example:
RP/0/0/CPU0:router(config-pmap)# exit
|
Returns the router to
global configuration
mode.
|
Step 15 | interface
type
interface-path-id
Example:
RP/0/0/CPU0:router(config)# interface pos 0/2/0/0
|
Configures an
interface and enters the interface configuration mode.
|
Step 16 | service-policy {input |
output]}
policy-map
Example:
RP/0/0/CPU0:router(config-if)# service-policy output policy1
|
Attaches a
policy map to an input or output interface to be used as the service policy for
that interface. In this example, the traffic policy evaluates all traffic
leaving that interface.
|
Step 17 |
commit
|
|
Step 18 | show policy-map
interface
type
interface-path-id
[input |
output]
Example:
RP/0/0/CPU0:router# show policy-map interface pos 0/2/0/0
|
(Optional)
Displays policy configuration information for all classes configured for all
service policies on the specified interface.
|