29-39
Software Configuration Guide—Release 12.2(25)EW
OL-6696-01
Chapter 29 Configuring QoS
Configuring QoS
Enabling or Disabling QoS on an Interface
The qos interface command reenables any previously configured QoS features. The qos interface
command does not affect the interface queueing configuration.
To enable or disable QoS features for traffic from an interface, perform this task:
This example shows how to disable QoS on interface VLAN 5:
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# interface vlan 5
Switch(config-if)# no qos
Switch(config-if)# end
Switch#
This example shows how to verify the configuration:
Switch# show qos | begin QoS is disabled
QoS is disabled on the following interfaces:
Vl5
<...Output Truncated...>
Switch#
Configuring VLAN-Based QoS on Layer 2 Interfaces
By default, QoS uses policy maps attached to physical interfaces. For Layer 2 interfaces, you can
configure QoS to use policy maps attached to a VLAN. (See the “Attaching a Policy Map to an Interface”
section on page 29-34.)
To configure VLAN-based QoS on a Layer 2 interface, perform this task:
Command Purpose
Step 1
Switch(config)# interface {vlan
vlan_ID
|
{fastethernet | gigabitethernet |
tengigabitethernet}
slot/interface
| Port-channel
number
}
Selects the interface to configure.
Step 2
Switch(config-if)# [no] qos
Enables QoS on the interface.
Use the no keyword to disable QoS on an interface.
Step 3
Switch(config-if)# end
Exits configuration mode.
Step 4
Switch# show qos interface
Verifies the configuration.
Command Purpose
Step 1
Switch(config)# interface {fastethernet |
gigabitethernet | tengigabitethernet}
slot/interface
| Port-channel
number
Selects the interface to configure.
Step 2
Switch(config-if)# [no] qos vlan-based
Configures VLAN-based QoS on a Layer 2 interface.
Use the no keyword to disable VLAN-based QoS on an
interface.
Step 3
Switch(config-if)# end
Exits configuration mode.
Step 4
Switch# show qos
Verifies the configuration.