<div dir="ltr">><span style="font-size:12.8px"> Is the cache inside or outside the point where the router is fitted</span><div><span style="font-size:12.8px"> outside..</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Cache-Server</span></div><div><span style="font-size:12.8px">       |</span></div><div><span style="font-size:12.8px">internet Gateway ---> L2 switch   --> LInux router with cake - - [ pppoe connection ]  --> customer</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">></span><span style="font-size:12.8px">Also, the command shown will apply a limit to *egress* traffic on the given port.  If you need to do *ingress* shaping, there’s a different sequence of commands</span></div><div><span style="font-size:12.8px">i have put the ingress commands, i did not mention them as i did not have any need of changes there.</span></div><div><span style="font-size:12.8px">                         </span></div><div><span style="font-size:12.8px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 27, 2016 at 3:44 AM, Jonathan Morton <span dir="ltr"><<a href="mailto:chromatix99@gmail.com" target="_blank">chromatix99@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On 26 Mar, 2016, at 17:14, Allan Pinto <<a href="mailto:allan316@gmail.com">allan316@gmail.com</a>> wrote:<br>
><br>
> I'm experimenting in replacing a mikrotik router with plain linux. by following the instructions on the cake page, i have setup the following line in the /etc/ppp/ip-ip script so that the user will be limited to bandwidth using cake.<br>
><br>
> /usr/sbin/tc qdisc add dev $pppdev root cake bandwidth ${BURST_DOWN}bit<br>
><br>
> but i have certain lan traffic available to the customer which should be available at higher speed, for eg. cache traffic and i want to set that speed to 20mbit default .<br>
><br>
> if i understand correctly i will have to mark traffic coming in from that lan source using iptables, can someone guide me how to set bandwidth only for that source to be higher.<br>
<br>
</span>I’m not certain what your topology is here.  Is the cache inside or outside the point where the router is fitted, or is it within the router, or off to the side on a separate port?<br>
<br>
Also, the command shown will apply a limit to *egress* traffic on the given port.  If you need to do *ingress* shaping, there’s a different sequence of commands.<br>
<span class="HOEnZb"><font color="#888888"><br>
 - Jonathan Morton<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Thanx and regd's.<br><br>Allan.<br><br></div></div>
</div>