On Wednesday 21 May 2003 17:57, Osgaldo Suanzes wrote:> Hi,
>
> How can I assign 4 users bandwidth, and not allow them to borrow
> bandwidth to others when someone is not using it?
>
> As you see below I tried to assign each class the same ceil like its
> rate,
> It didnt worked. but Im not sure if this is the way to go..... Maybe
> I did something wrong any ideas?
>
> #tc qdisc del dev eth1 root
>
> #tc qdisc add dev eth1 root handle 1: htb
>
> #tc class add dev eth1 parent 1: classid 1:1 htb rate 100kbps ceil 100kbps
>
> #tc class add dev eth1 parent 1:1 classid 1:10 htb rate 15kbps ceil 15kbps
> #tc class add dev eth1 parent 1:1 classid 1:11 htb rate 25kbps ceil 25kbps
> #tc class add dev eth1 parent 1:1 classid 1:12 htb rate 10ps ceil 10ps
What''s "ps" ? Shouldn''t that be kbps ?
> #tc class add dev eth1 parent 1:1 classid 1:13 htb rate 50kbps ceil 50kbps
>
> #tc filter add dev eth1 protocol ip parent 1:1 prio 1 u32 match ip src
> 10.3.0.2 flowid 1:10
> #tc filter add dev eth1 protocol ip parent 1:1 prio 1 u32 match ip src
> 10.3.0.3 flowid 1:11
> #tc filter add dev eth1 protocol ip parent 1:1 prio 1 u32 match ip src
> 10.3.0.4 flowid 1:12
> #tc filter add dev eth1 protocol ip parent 1:1 prio 1 u32 match ip src
> 10.3.0.5 flowid 1:13
We need some more information. Is this on a natting firewall? And is eth1
connected to that LAN or the internet? And I suppose 10.3.0.2 is an internal
ip-address?
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/