27-49
Software Configuration Guide—Release 12.2(25)SG
OL-7659-03
Chapter27 Configuring Quality of Service
Configuring QoS
This example shows how to map DSCP values to transit queue 2.
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# qos map dscp 50
to
tx-queue 2
Switch(config)# end
Switch#
This example shows how to verify the configuration.
Switch# show qos maps dscp tx-queue
DSCP-TxQueue Mapping Table (dscp = d1d2)
d1 :d2 0 1 2 3 4 5 6 7 8 9
-------------------------------------
0 : 02 02 02 01 01 01 01 01 01 01
1 : 01 01 01 01 01 01 02 02 02 02
2 : 02 02 02 02 02 02 02 02 02 02
3 : 02 02 03 03 03 03 03 03 03 03
4 : 03 03 03 03 03 03 03 03 04 04
5 : 04 04 04 04 04 04 04 04 04 04
6 : 04 04 04 04
Switch#
Allocating Bandwidth Among Transmit Queues
To configure the transmit queue bandwidth, perform this task:
The bandwidth rate varies with the interface.
Bandwidth can only be configured on these interfaces:
Uplink ports on Supervisor Engine III (WS-X4014)
Ports on the WS-X4306-GB module
The 2 1000BASE-X ports on the WS-X4232-GB-RJ module
The first 2 ports on the WS-X4418-GB module
The two 1000BASE-X ports on the WS-X4412-2GB-TX module
Step2 Switch(config)# end Exits configuration mode.
Step3 Switch# show qos maps dscp tx-queues Verifies the configuration.
Command Purpose
Command Purpose
Step1 Switch(config)# interface gigabitethernet
slot/interface
Selects the interface to configure.
Step2 Switch(config-if)# tx-queue
queue_id
Selects the transmit queue to configure.
Step3 Switch(config-if-tx-queue)# [no] [bandwidth
rate
| percent
percent
]
Sets the bandwidth rate for the transmit queue.
Use the no keyword to reset the transmit queue
bandwidth ratios to the default values.
Step4 Switch(config-if-tx-queue)# end Exits configuration mode.
Step5 Switch# show qos interface Verifies the configuration.