4.2 Configuring Credit Based Shaper using CLI Commands

To configure the Credit Based Shaper instance, execute following commands.

! Enable a 800 kbps credit based shaper on port 1, queue 6.
# configure terminal
(config)# interface GigabitEthernet 1/1
(config-if)# qos queue-shaper queue 6 800 kbps credit
! Disable the shaper on port 1, queue 6.
# configure terminal
(config)# interface GigabitEthernet 1/1
(config-if)# no qos queue-shaper queue 6
! Show configuration using 'show running-config'.
# show running-config
[...]
qos queue-shaper queue 6 800 kbps credit
! Show status using 'show qos'.
# show qos[...]
qos queue-shaper queue 0: disabled, rate 500 kbps, mode: line-rate, excess:disabled, credit: disabled
qos queue-shaper queue 1: disabled, rate 500 kbps, mode: line-rate, excess:disabled, credit: disabled
qos queue-shaper queue 2: disabled, rate 500 kbps, mode: line-rate, excess:disabled, credit: disabled
qos queue-shaper queue 3: disabled, rate 500 kbps, mode: line-rate, excess:disabled, credit: disabled
qos queue-shaper queue 4: disabled, rate 500 kbps, mode: line-rate, excess:disabled, credit: disabled
qos queue-shaper queue 5: disabled, rate 500 kbps, mode: line-rate, excess:disabled, credit: disabled
qos queue-shaper queue 6: enabled, rate 800 kbps, mode: line-rate, excess: disabled,credit: enabled
qos queue-shaper queue 7: disabled, rate 500 kbps, mode: line-rate, excess:disabled, credit: disabled