Send comments to nx5000-docfeedback@cisco.com
5-18
Cisco Nexus 5000 Series Command Reference
OL-16599-01
Chapter 5 Quality of Service Commands
service-policy
service-policy
To attach a policy map to an interface, VLAN, or tunnel, use the service-policy command. To remove a
service-policy from an interface, VLAN or tunnel, use the no form of this command.
service-policy [type {qos | queuing|network-qos}] {input | output} policy-map-name
no service-policy [type {qos | queuingg|network-qos}] {input | output} policy-map-name
Syntax Description
Defaults type default is qos.
No policies of type qos are active on an interface until the service-policy command is issued. The
system-defined type queuing class maps are attached to each interface unless you specifically attach a
different class map.
Command Modes Interface configuration
VLAN configuration
Command History
Usage Guidelines No policies of type qos are active on an interface until you enter the service-policy command. The
system-defined type queuing class maps are attached to each interface unless you specifically attach a
different class map.
You can attach one ingress and one egress type qos policy map to port, port channel, tunnel, and VLANs.
You can attach one ingress and one egress type queuing policy map to an interface of type port, port
channel, tunnel, and VLAN.
Only one policy map can be attached to the input and one to the output of a given interface for each of
the policy type qos and queuing.
Note For more information on using service policies, see the Cisco Nexus 5000 Series Configuration Guide,
Cisco NX-OS Release 4.1.
type (Optional) Specifies whether the policy map is of type qos or queuing.
qos Specifies a policy map of type qos.
queuing Specifies a policy map of type queuing.
input Applies this policy map to packets coming into this interface.
output Applies this policy map to packets going out of this interface.
policy-map-name Name of the policy map to attach to this interface. Only one policy map can
be attached to the input and one to the output of a given interface for each
of the policy type qos and queuing.
Release Modification
4.1(3)N1(1) This command was introduced.