Purpose
Command or Action
Specifies the policy map to use as the service policy for the
Layer 3 interface. There are two policy-map configuration
modes:
switch(config-if)#
service-policy
[
type
{
qos
|
queuing
} [
input
|
output
]
policy-name
Step 4
•
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
The following example shows how to attach a queuing policy map to a Layer 3 interface:
switch#
configure terminal
switch(config)#
interface ethernet 1/5
switch(config-if)#
no switchport
switch(config-if)#
service-policy type queuing output my_output_q_policy
switch(config-if)#
The following example shows how to attach an input qos policy map to a Layer 3 interface:
switch#
configure terminal
switch(config)#
interface ethernet 1/5
switch(config-if)#
no switchport
switch(config-if)#
service-policy type qos input my_input_qos_policy
switch(config-if)#
Verifying the Interface QoS Configuration
Use one of the following commands to verify the configuration:
Purpose
Command
Displays the class maps defined on the switch.
show class-map
Displays the policy maps defined on the switch.
Optionally, you can display the named policy only.
show policy-map
[
name
]
Displays the policy map settings for an interface or
all interfaces.
show policy-map interface
[
interface number
]
Displays the queue configuration and statistics.
show queuing interface [interface slot/\port
]
Displays the detailed listing of the flow control
settings on all interfaces.
show interface flowcontrol
[
module numbef
]
Cisco Nexus 5000 NX-OS Quality of Service Configuration Guide, Release 5.1(3)N2(1)
OL-26657-01
47
Configuring QoS on Interfaces
Verifying the Interface QoS Configuration