Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
* [LARTC] good bandwith example?
@ 2001-04-04 23:00 Joost A. Schildwacht
  2001-04-05  5:26 ` Fw: " Chris Sellers
  0 siblings, 1 reply; 2+ messages in thread
From: Joost A. Schildwacht @ 2001-04-04 23:00 UTC (permalink / raw)
  To: lartc

didn't get any response to my message with subject 'bandwith limit does not
work', that means either it just should work or the message was too long.

So I change my question;

does somebody have a working tc commandlist with bandwith limit for
internet>lan use?

- Am I correct to assume that after giving the tc commands the commands are
active, right? or do I have to configure/activate something else before
bandwith limit is working?

thank you in advance for your reply,

Joost Schildwacht.



_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Fw: [LARTC] good bandwith example?
  2001-04-04 23:00 [LARTC] good bandwith example? Joost A. Schildwacht
@ 2001-04-05  5:26 ` Chris Sellers
  0 siblings, 0 replies; 2+ messages in thread
From: Chris Sellers @ 2001-04-05  5:26 UTC (permalink / raw)
  To: lartc



> does somebody have a working tc commandlist with bandwith limit for
> internet>lan use?

The following is a snippet that I got from my linux router vendor. I will be
putting it in place this week. They
ensure me that it will work. This takes an IP block that uses eth0 and
limits the bw for that IP block to 3Mbit.
I hope this is what you are after, as I am fairly new to this as well, I
cannot garantee this will go. It seems to
conform to what I have read thus far.

#tc qdisc add dev eth0 root handle 10: cbq bandwidth 100Mbit avpkt 1000
#tc class add dev eth0 parent 10:0 classid 10:1 cbq bandwidth 100Mbit rate
100Mbit allot 1514 weight 10Mbit prio 7 maxburst 100 avpkt 1000
#tc class add dev eth0 parent 10:1 classid 10:200 cbq bandwidth 100Mbit rate
3Mbit allot 1514 weight 300Kbit prio 7 maxburst 20 avpkt 1000 bounded
#tc filter add dev eth0 parent 10:0 protocol ip prio 100 u32 match ip src
<ip/nm> flowid 10:200



> - Am I correct to assume that after giving the tc commands the commands
are
> active, right? or do I have to configure/activate something else before
> bandwith limit is working?

The should take affect when you issue them. I have them in a script file
that I can addto/modify on the fly and will be loaded on boot.


Cheers,
Chris




_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-04-05  5:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-04 23:00 [LARTC] good bandwith example? Joost A. Schildwacht
2001-04-05  5:26 ` Fw: " Chris Sellers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox