Configure 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 WORD<1000-100000000>

Variable Definitions

The following table defines parameters for 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 WORD<1000-100000000>

Specifies the shaping rate in Kb/s. 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.