* [LARTC] 4 Users no Bandwidth Borrowing
@ 2003-05-21 15:57 Osgaldo Suanzes
2003-05-21 17:12 ` Stef Coene
0 siblings, 1 reply; 2+ messages in thread
From: Osgaldo Suanzes @ 2003-05-21 15:57 UTC (permalink / raw)
To: lartc
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
#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
Regards Osgaldo.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] 4 Users no Bandwidth Borrowing
2003-05-21 15:57 [LARTC] 4 Users no Bandwidth Borrowing Osgaldo Suanzes
@ 2003-05-21 17:12 ` Stef Coene
0 siblings, 0 replies; 2+ messages in thread
From: Stef Coene @ 2003-05-21 17:12 UTC (permalink / raw)
To: lartc
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-05-21 17:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-21 15:57 [LARTC] 4 Users no Bandwidth Borrowing Osgaldo Suanzes
2003-05-21 17:12 ` Stef Coene
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.