> Is the cache inside or outside the point where the router is fitted
 outside..

Cache-Server
       |
internet Gateway ---> L2 switch   --> LInux router with cake - - [ pppoe connection ]  --> customer



>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
i have put the ingress commands, i did not mention them as i did not have any need of changes there.
                         


On Sun, Mar 27, 2016 at 3:44 AM, Jonathan Morton <chromatix99@gmail.com> wrote:

> On 26 Mar, 2016, at 17:14, Allan Pinto <allan316@gmail.com> wrote:
>
> 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.
>
> /usr/sbin/tc qdisc add dev $pppdev root cake bandwidth ${BURST_DOWN}bit
>
> 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 .
>
> 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.

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?

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.

 - Jonathan Morton




--
Thanx and regd's.

Allan.