CANOGA PERKINS 9175 Configuration Guide User Manual
Page 213
CanogaOS Configuration Guide
31-7
The following shows mapping queue to different class and configuring bandwidth. Follow
these steps from Privileged Exec mode.
• configure
terminal.
• interface IFNAME to specify the interface to match to the policy map. IFNAME =
name of interface.
• queue <0-7> class <0-3> to map queue to specified class.
• queue-bandwidth to set egress queues’ bandwidth.
The following example shows configuring schedule parameters for egress queues. In
this example, queue 5 6 7 belongs to class 3, which is highest priority. The bandwidth is
1:1:1:1:1:2:3:4.
DUT(config)# interface eth-0-1
DUT(config-if)# queue 5 class 3
DUT(config-if)# queue-bandwidth 1 1 1 1 1 2 3 4
Configure port policing
All traffic received or transmitted in the physical interface can be limited rate, and all the
exceeding traffic will be dropped.
The following shows creating a port-policer to limit bandwidth. Follow these steps from
Privileged Exec mode.
• configure
terminal.
• interface IFNAME to specify the interface to match to the policy map. IFNAME =
name of interface
• port-policer ingress|egress color-blind|color-aware cir <1-1000000> cbs
<0-4000000> ebs <0-4000000>| pir <1-1000000> pbs <0-4000000> drop-color
red|yellow (use-l3-length) to specify a port policer.
Note: The no port-polcier ingress|egress command deletes a port policer.
The following example shows creating an ingress port policer. In this example, if the
received traffic exceeds a 48000-kbps average traffic rate, it is dropped.
DUT(config)# interface eth-0-1
DUT(config-if)# port-policer ingress color-blind cir 48000 cbs 10000 ebs 20000
drop-color red
31.4.3 Configure
shaping
Port shaping
All traffic transmitted in the physical interface can be shaped, and all the exceeding traffic
will be buffered. If no buffer, it is dropped.
The following shows creating a port shaping to shape traffic. Follow these steps from
Privileged Exec mode.
• configure
terminal.
• interface IFNAME to specify the interface to match to the policy map. IFNAME =
name of interface
• shape average percent <0-99> to specify a port shaping.
Note: The no shape command deletes a port shaping.
The following example shows creating a port shaping. In this example, if the received
traffic exceeds a 50 percent of the whole interface bandwidth, it is buffered.
DUT(config)# interface eth-0-1
DUT(config-if)# shape average percent 50