Configuring Rate Shaping

Follow these steps to configure outbound rate shaping on an Ethernet or a link aggregation group (LAG) port.
  1. Enter global configuration mode.
    device# configure terminal
    
  2. Enter interface configuration mode.
    device(config)# interface ethernet 1/1/2
    
  3. Configure the maximum rate at which outbound traffic is sent out on a port.
    device(config-if-e1000-1/1/2)# rate-limit output shaping 1300
    Outbound Rate Shaping on Port 1/1/2 Config: 1300 Kbps, Actual: 1304 Kbps
    
  4. Configure the maximum rate at which outbound traffic is sent out on a port priority queue.
    device(config-if-e1000-1/1/2)# rate-limit output shaping 500 priority 7
    Outbound Rate Shaping on Port 1/1/2 for Priority 7
             Config: 500 Kbps, Actual: 500 Kbps
    device(config-if-e1000-1/1/2)# end
    
  5. Verify the configuration.
    device# show rate-limit output-shaping
    Outbound Rate Shaping Limits in Kbps:
    Port   PortMax Prio0 Prio1 Prio2 Prio3 Prio4 Prio5 Prio6 Prio7
    1/1/2     1304     -     -     -     -     -     -     -   500
    1/1/3     1302     -     -     -     -     -     -     -     -
    1/1/4      651     -     -     -     -     -     -     -     -
    

Outbound Rate Shaping Configuration Example

device# configure terminal
device(config)# interface ethernet 1/1/2
device(config-if-e1000-1/1/2)# rate-limit output shaping 500 priority 7
device(config-if-e1000-1/1/2)# exit
device(config)# show rate-limit output-shaping