<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Hi all I have following script in my server. Now I want to restrict ip
192.168.3.2 to 128kbps (downlink). But in this case client can download upto
500kbps and upload cannot exceed more than 20kbps. Now what should I do to
restrict client 192.168.3.2 within 128kbps downlink and 64kbps uplink.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>tc qdisc <st1:State w:st="on"><st1:place w:st="on">del</st1:place></st1:State>
dev eth0 root<br>
tc qdisc add dev eth0 root handle 1:0 htb<br>
tc class add dev eth0 parent 1:0 classid 1:1&nbsp; htb rate 300kbit<br>
tc class add dev eth0 parent 1:0 classid 1:11 htb rate 128kbit ceil 300kbit<br>
tc class add dev eth0 parent 1:0 classid 1:12 htb rate 128kbit ceil 300kbit<br>
tc class add dev eth0 parent 1:0 classid 1:13 htb rate 50kbit ceil 300kbit<br>
tc qdisc add dev eth0 parent 1:11 handle 210: pfifo limit 10<br>
tc qdisc add dev eth0 parent 1:12 handle 220: pfifo limit 10<br>
tc qdisc add dev eth0 parent 1:13 handle 230: pfifo limit 10<br>
tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip dst
192.168.3.1 match ip sport 20 0xfff flowid 1:11<br>
tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip dst
192.168.3.1 match ip sport 21 0xfff flowid 1:11<br>
tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip dst
192.168.3.2&nbsp; flowid 1:12<br>
tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip dst
192.168.3.3 flowid 1:13<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Regards, <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Umesh<o:p></o:p></span></font></p>

</div>

</body>

</html>