Cisco Nexus 5000 Series Switch CLI Software Configuration Guide (OL-16597-01, July 2009)

Configuring Interface Service Policy
An input qos policy is a service policy applied to incoming traffic on an Ethernet interface for classification.
For type queuing, the output policy is applied to all outgoing traffic that matches the specified class. When
you configure an input queuing policy on an interface or EtherChannel, the switch sends the configuration
data to the adapter using the DCBX protocol.
Type qos policies can be activated only on Cisco Nexus 5000 Series interfaces and Cisco Nexus 2000
Series Fabric Extender interfaces. Type qos policies on Fabric Extender fabric interfaces or Fabric Extender
fabric EtherChannel interfaces are ineffective, though the Cisco NX-OS CLI does not reject the
configuration.
We recommend that you do not configure type qos policy-maps on Fabric Extender fabric interfaces or
Fabric Extender fabric EtherChannel interfaces to avoid wasting hardware resources.
Note
Procedure
PurposeCommand or Action
Enters configuration mode.switch# configure terminal
Step 1
Enters 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 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
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
446 OL-16597-01
Configuring QoS on Interfaces
Configuring Interface Service Policy