Configuring Port Shaping

To configure port-shaping:

  1. Configure the scheduler profile and the shaping rate.
    host1(config)#scheduler-profile 80mbps host1(config-scheduler-profile)#shaping-rate 80000000 host1(config-scheduler-profile)#exit
  2. Configure a QoS profile, specify the node command, and reference the scheduler-profile.
    host1(config)#qos-profile 80mbps host1(config-qos-profile)#ethernet node scheduler-profile 80mbps host1(config-qos-profile)#exit
  3. Attach the QoS profile to the port.
    host1(config)#interface fastethernet 2/0 host1(config-if)#qos-profile 80mbps

The sample configuration shapes Fast Ethernet port 2/0 to a rate no higher than 80 Mbps.

Using the following configuration, you can shape the corresponding HDLC channel down to 20 Mbps:

host1(config)#scheduler-profile 20mbps host1(config-scheduler-profile)#shaping-rate 20000000 host1(config-scheduler-profile)#exit host1(config)#qos-profile 20mbps host1(config-qos-profile)#serial node scheduler-profile 20mbps host1(config-qos-profile)#exit host1(config)#interface serial 2/0:1/1 host1(config-if)#qos-profile 20mbps

Related Documentation