Cisco Systems WSC4500X24XIPB Switch User Manual


 
27-50
Software Configuration Guide—Release 12.2(25)SG
OL-7659-03
Chapter 27 Configuring Quality of Service
Configuring QoS
This example shows how to configure the bandwidth of 1 Mbps on transmit queue 2.
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# interface gigabitethernet 1/1
Switch(config-if)# tx-queue 2
Switch(config-if-tx-queue)#bandwidth 1000000
Switch(config-if-tx-queue)# end
Switch#
Configuring Traffic Shaping of Transmit Queues
To guarantee that packets transmitted from a transmit queue do not exceed a specified maximum rate,
perform this task:
This example shows how to configure the shape rate to 1 Mbps on transmit queue 2.
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# interface gigabitethernet 1/1
Switch(config-if-tx-queue)# tx-queue 2
Switch(config-if-tx-queue)# shape 1000000
Switch(config-if-tx-queue)# end
Switch#
Configuring a High Priority Transmit Queue
To configure transmit queue 3 at a higher priority, perform this task:
Command Purpose
Step 1
Switch(config)# interface {fastethernet |
gigabitethernet}
slot/interface
Selects the interface to configure.
Step 2
Switch(config-if)# tx-queue
queue_id
Selects the transmit queue to configure.
Step 3
Switch(config-if-tx-queue)# [no] [shape
rate
|
percent
percent
]
Sets the transmit rate for the transmit queue.
Use the no keyword to clear the transmit queue maximum
rate.
Step 4
Switch(config-if-tx-queue)# end
Exits configuration mode.
Step 5
Switch# show qos interface
Verifies the configuration.
Command Purpose
Step 1
Switch(config)# interface {fastethernet |
gigabitethernet}
slot/interface
Selects the interface to configure.
Step 2
Switch(config-if)# tx-queue 3
Selects transmit queue 3 to configure.
Step 3
Switch(config-if)# [no] priority high
Sets the transmit queue to high priority.
Use the no keyword to clear the transmit queue priority.
Step 4
Switch(config-if)# end
Exits configuration mode.
Step 5
Switch# show qos interface
Verifies the configuration.