Configuring Port Shaping
To configure port-shaping:
- 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
- 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
- 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
- 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
- qos-profile
- scheduler-profile
- shaping-rate
Hide Navigation Pane
Show Navigation Pane
SHA1