[LARTC] Simple Beginner Question - allocating 64k

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Have an internet connection on eth0 - 64K
> so  eth0 =3D 216.139.165.7
> and eth1 =3D 192.168.0.1
>
> have 4 pcs connected to a hub on eth1
> the pc's are 192.168.0.11 and 22 and 33 and 44
>
> I want to allocate  4kb to 192.168.0.11
>                and  4kb to 192.168.0.22
>                and  8kb to 192.168.0.33
>                and 32kb=09to 192.168.0.44
>
> so this is a total of 48kb and the rest is used on the server 10.0.0.80
>
> Also - want to make sure that 192.168.0.11 never takes more than 4kb at
> any time.
>
> No fancy stuff like separating http and smtp and things.
>
> What's the simple most elegant way of doing this on eth1.
Create a HTB qdisc, add a ceiled class of 64K, add 5 classes with the=20
appropriated rate (4 for the LAN's : 4,4,8,32 kb and 1 for the server 16k=
b)=20
with ceil =3D 64kb.  But ceil 192.68.0.11 to 4kbit.   Mark the packets on=
 eht1=20
for all ip's with a different mark and use the fw filter on eth0 to put t=
he=20
traffic in the right class.
You can do the same with CBQ of you want.  You need to patch the kernel=20
before you can use the HTB qdisc.

Stef

--=20

stef.coene@docum.org
 More QOS info : http://www.docum.org/
 Title : "Using Linux as bandwidth manager"


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux