Configuring Port Shaping
- Configure the scheduler profile and the shaping rate.
host1(config)#scheduler-profile 80mbpshost1(config-scheduler-profile)#shaping-rate 80000000host1(config-scheduler-profile)#exit- Configure a QoS profile, specify the node command, and reference the scheduler-profile.
host1(config)#qos-profile 80mbpshost1(config-qos-profile)#ethernet node scheduler-profile 80mbpshost1(config-qos-profile)#exit- Attach the QoS profile to the port.
host1(config)#interface fastethernet 2/0host1(config-if)#qos-profile 80mbpsThe 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 20mbpshost1(config-scheduler-profile)#shaping-rate 20000000host1(config-scheduler-profile)#exithost1(config)#qos-profile 20mbpshost1(config-qos-profile)#serial node scheduler-profile 20mbpshost1(config-qos-profile)#exithost1(config)#interface serial 2/0:1/1host1(config-if)#qos-profile 20mbps
- Rate Shaping and Port Shaping Overview
- Configuring a Scheduler Profile for a Scheduler Node or Queue
- For more information about specifying an expression that you can reference within a scheduler profile, see Using Expressions for Bandwidth and Burst Values in a Scheduler Profile
- node command
- qos-profile command
- scheduler-profile command
- shaping-rate command