Configuring the port-based shaper

Use port-based shaping to rate-limit all outgoing traffic to a specific rate.

Procedure

  1. Enter GigabitEthernet Interface Configuration mode:

    enable

    configure terminal

    interface GigabitEthernet {slot/port[/sub-port][-slot/port[/sub-port]][,...]}

    Note

    Note

    If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.

  2. Configure port-based shaping:

    qos if-shaper [port {slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}] shape-rate <shape-rate>

Variable definitions

Use the data in the following table to use the qos if-shaper command.

Variable

Value

port {slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}

Specifies the slot and port number to which to apply shaping. This variable is optional.

Identifies the slot and port in one of the following formats: a single slot and port (slot/port), a range of slots and ports (slot/port-slot/port), or a series of slots and ports (slot/port,slot/port,slot/port). If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.

shape-rate <shape-rate>

Specifies the shaping rate in Kb/s. Different hardware platforms support different egress rate limits, depending on the port with the highest speed available on the platform. If you try to configure a limit that is too high for the port speed, the switch displays the following message: Error: port slot/port, The QOS Egress shaper rate can not exceed the port capability.

The default is 0, which means shaping is disabled on the port.