From mboxrd@z Thu Jan 1 00:00:00 1970 From: Abraham van der Merwe Date: Sat, 16 Nov 2002 18:34:55 +0000 Subject: [LARTC] help needed using filters MIME-Version: 1 Content-Type: multipart/mixed; boundary="d6Gm4EdcadzBjdND" Message-Id: List-Id: To: lartc@vger.kernel.org --d6Gm4EdcadzBjdND Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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? --=20 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 --d6Gm4EdcadzBjdND Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE91o/P0jJV70h31dERAn+pAJ9NHG69TEKwyoxgQhgyMTRQbaFkkQCgqPTf KO8Zjhv2Rs8q3bDOpzK+JpE= =uqdT -----END PGP SIGNATURE----- --d6Gm4EdcadzBjdND-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/