All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] help needed using filters
@ 2002-11-16 18:34 Abraham van der Merwe
  2002-11-16 19:57 ` Stef Coene
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Abraham van der Merwe @ 2002-11-16 18:34 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 1212 bytes --]

Hi!

I'm trying to shape a traffic to/from a few different subnets using TBF. The
way I understand it all I have to do is create a few queueing disciplines
and attach a filter to each queueing discipline.

So for instance if I want to shape traffic going to 192.168.1.0/24 via eth0 to
64kbit then it should look like this:

------------< snip <------< snip <------< snip <------------
tc qdisc add dev eth0 root handle 1:0 tbf rate 64kbit burst 4kb latency
100ms peakrate 128kbit mtu 1500

tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip dst
192.168.1.0/24
------------< snip <------< snip <------< snip <------------

I can't add the filter above and I suspect it is due to

a) i can't add filters to tbf queueing disciplines? if so, why not?

b) i'm confused be the parent x:y and flowid a:b terminology in the filter.
When do I use what?

-- 

Regards
 Abraham

Anyone can hold the helm when the sea is calm.
		-- Publius Syrus

___________________________________________________
 Abraham vd Merwe [ZR1BBQ] - Frogfoot Networks
 P.O. Box 3472, Matieland, Stellenbosch, 7602
 Cell: +27 82 565 4451 Http: http://www.frogfoot.net
 Email: abz@frogfoot.net


[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

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

end of thread, other threads:[~2002-11-16 20:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-16 18:34 [LARTC] help needed using filters Abraham van der Merwe
2002-11-16 19:57 ` Stef Coene
2002-11-16 20:16 ` Abraham van der Merwe
2002-11-16 20:45 ` 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.