Procedure
Purpose
Command or Action
Enters global configuration mode.
switch#
configure terminal
Step 1
Enters the configuration mode for the specified interface.
switch(config)#
interface
{
ethernet
[
chassis
/]
slot
/
port
|
port-channel channel-number
}
Step 2
The service policy on a port channel applies to all
member interfaces.
Note
Specifies the policy map to use as the service policy for the
system. There are two policy-map configuration modes:
switch(config-if)#
service-policy
[
type
{
qos
|
queuing
}] [
input
|
output
]
policy-name
Step 3
•
qos
—
Classification mode; this is the default mode.
•
queuing
—
Queuing mode.
The
input
keyword specifies that this policy map
should be applied to traffic received on an interface.
The
output
keyword specifies that this policy map
should be applied to traffic transmitted from an
interface. You can only apply
input
to a qos policy;
you can only apply both
input
and
output
to a
queuing policy.
Note
Applies the policy map to the interface.
switch(config-if)#
service-policy
input policy-name
Step 4
There is a restriction that system type qos policy
cannot be the same as any the type qos policy applied
to an interface or EtherChannel.
Note
This example shows how to apply a policy to an Ethernet interface:
switch#
configure terminal
switch(config)#
interface ethernet 1/1
switch(config-if)#
service-policy type qos input policy1
Configuring a Service Policy for a Layer 3 Interface
You can configure a service policy for a Layer 3 interface.
Procedure
Purpose
Command or Action
Enters global configuration mode.
switch#
configure terminal
Step 1
Enters the configuration mode for the specified interface.
switch(config)#
interface
ethernet slot
/
port
Step 2
Selects the Layer 3 interface.
switch(config-if)#
no switchport
Step 3
Cisco Nexus 5000 NX-OS Quality of Service Configuration Guide, Release 5.1(3)N2(1)
46
OL-26657-01
Configuring QoS on Interfaces
Configuring a Service Policy for a Layer 3 Interface