Procedure
Purpose
Command or Action
Enters global configuration mode.
switch#
configure terminal
Step 1
Creates a VLAN and enters VLAN configuration mode.
The
vlan-number
range is from 1 to 4094.
switch(config)#
vlan configuration
vlan-number
Step 2
Assigns a policy map to the VLAN. The
policy-name
is the name assigned to the policy map. The name can
be a maximum of 40 alphanumeric characters.
switch(config-vlan)#
service-policy
type qos input policy-name
Step 3
(Optional)
Saves the change persistently through reboots and
restarts by copying the running configuration to the
startup configuration.
switch(config-vlan)#
copy
running-config startup-config
Step 4
This example shows how to create a service policy and assign it to VLAN 10:
switch#
configure terminal
switch(config)#
class-map type qos cm1
switch(config-cmap-qos)#
match cos 5
switch(config-cmap-qos)#
policy-map type qos pm-vlan
switch(config-pmap-qos)#
class cm1
switch(config-pmap-c-qos)#
set qos-group 4
switch(config-pmap-c-qos)#
exit
switch(config-pmap-qos)#
exit
switch(config)#
vlan configuration 10
switch(config-vlan-config)#
service-policy type qos input pm-vlan
switch(config-vlan-config)#
Removing a Service Policy from a VLAN
Procedure
Purpose
Command or Action
Enters global configuration mode.
switch#
configure terminal
Step 1
Enters VLAN configuration mode for the specified
VLAN. The
vlan-number
range is from 1 to 4094.
switch(config)#
vlan configuration
vlan-number
Step 2
Removes the policy from the VLAN. The
policy-name
is the name assigned to the policy map. The name can
be a maximum of 40 alphanumeric characters.
switch(config-vlan-config)#
no
service-policy type qos input
policy-name
Step 3
(Optional)
Saves the changes persistently through reboots and
restarts by copying the running configuration to the
startup configuration.
switch(config-vlan-config)#
copy
running-config startup-config
Step 4
Cisco Nexus 5000 NX-OS Quality of Service Configuration Guide, Release 5.1(3)N2(1)
OL-26657-01
55
Configuring QoS on VLANs
Removing a Service Policy from a VLAN