680 QoS Commands
Example
The following example shows how to redirect incoming packets to port 1/0/1.
console(config-policy-classmap)#redirect 1/0/1
service-policy
Use the service-policy command in either Global Configuration mode (for all
system interfaces) or Interface Configuration mode (for a specific interface)
to attach a policy to an interface. To return to the system default, use the no
form of this command.
Syntax
service-policy {in|out}
policymapname
no service-policy {in|out}
policymapname
Parameter Description
Default Configuration
This command has no default configuration.
Command Mode
Global Configuration mode (for all system interfaces)
Interface Configuration (Ethernet, Port-channel) mode (for a specific
interface)
Parameter Description
policymapname Specifies the DiffServ policy name as a unique case-sensitive
alphanumeric string. (Range: 1–31 alphanumeric characters.)
in Apply the policy on ingress.
out Apply the policy on egress.
2CSPC4.XCT-SWUM2XX1.book Page 680 Monday, October 3, 2011 11:05 AM