From: Diego Almeida <diego.sl@email.com.br>
To: lartc@vger.kernel.org
Subject: [LARTC] How to share limited link ...
Date: Fri, 05 Apr 2002 14:42:16 +0000 [thread overview]
Message-ID: <marc-lartc-101801812608665@msgid-missing> (raw)
Hello , i have one 128kbit link , and i need share this link with 2 clients ,
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 your 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 rate
128kbit allot 1514 maxburst 20 avpkt 1000 bounded prio 1
./tc class add dev eth0 parent 1:2 classid 1:4 cbq bandwidth 10mbit rate
64kbit allot 1514 maxburst 20 avpkt 1000 prio 1
./tc class add dev eth0 parent 1:2 classid 1:5 cbq bandwidth 10mbit rate
64kbit allot 1514 maxburst 20 avpkt 1000 prio 1
./tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dst
10.100.100.2 flowid 1:4
./tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dst
10.100.100.3 flowid 1:5
Thank's a lot.....
Sorry my poor english ....
--
Diego Almeida
diego dot sl at email dot com dot br
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next reply other threads:[~2002-04-05 14:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-05 14:42 Diego Almeida [this message]
2002-04-05 15:52 ` [LARTC] How to share limited link Stef Coene
2002-04-05 16:03 ` Diego Almeida
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-lartc-101801812608665@msgid-missing \
--to=diego.sl@email.com.br \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.