[LARTC] How to share limited link ...

Linux Advanced Routing and Traffic Control

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

 



On Friday 05 April 2002 16:42, Diego Almeida wrote:
> Hello , i have one 128kbit link , and i need share this link with 2 cli=
ents
> , client 1 is 10.100.100.2 and client 2 is 10.100.100.3 , i want limit
> client 1 with 64k and client 2 too. But if client 1 is noting using you=
r
> 64k , forward your link to client 2 and vice-versa. I tried this:
> ./tc qdisc del root dev eth0
> ./tc qdisc add dev eth0 root handle 1: cbq bandwidth 10mbit avpkt 1000
> ./tc class add dev eth0 parent 1:0 classid 1:2 cbq bandwidth 10mbit rat=
e
> 128kbit allot 1514 maxburst 20 avpkt 1000 bounded prio 1
> ./tc class add dev eth0 parent 1:2 classid 1:4 cbq bandwidth 10mbit rat=
e
> 64kbit allot 1514 maxburst 20 avpkt 1000 prio 1
> ./tc class add dev eth0 parent 1:2 classid 1:5 cbq bandwidth 10mbit rat=
e
> 64kbit allot 1514 maxburst 20 avpkt 1000 prio 1
> ./tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip d=
st
> 10.100.100.2 flowid 1:4
> ./tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip d=
st
> 10.100.100.3 flowid 1:5
>
>
> Thank's a lot.....
Euh, the commands seems ok for me.  So, is it not working ????

Stef

--=20

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net


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