From mboxrd@z Thu Jan 1 00:00:00 1970 From: Homer Parker Date: Wed, 04 Dec 2002 10:08:39 +0000 Subject: Re: [LARTC] Multiple classes MIME-Version: 1 Content-Type: multipart/mixed; boundary="=.cA.5)pFEKyO7E3" Message-Id: List-Id: References: In-Reply-To: To: lartc@vger.kernel.org --=.cA.5)pFEKyO7E3 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 3 Dec 2002 22:03:39 +0100 Stef Coene wrote.... > It all depends on what you want to do. Have you read my docs on > www.docum.org ?? But you are on the right track. Ok, starting from scratch (again).. This loads and runs just fine: tc qdisc del dev eth0 root tc qdisc del dev eth1 root tc qdisc add dev eth0 root handle 10: htb tc class add dev eth0 parent 10: classid 10:1 htb rate 10mbit # tc class add dev eth0 parent 10:1 classid 10:10 htb rate 256kbit tc qdisc add dev eth0 parent 10:1 sfq perturb 10 tc filter add dev eth0 parent 10: protocol ip \ u32 match ip dst 208.191.32.254 flowid 10:1 # exit tc qdisc add dev eth1 root handle 20: htb tc class add dev eth1 parent 20: classid 20:1 htb rate 10mbit # tc class add dev eth1 parent 20:1 classid 20:10 htb rate 256kbit tc qdisc add dev eth1 parent 20:1 sfq perturb 10 tc filter add dev eth1 parent 20: protocol ip \ u32 match ip src 208.191.32.254 flowid 20:1 Whereas this doesn't... tc qdisc del dev eth0 root tc qdisc del dev eth1 root tc qdisc add dev eth0 root handle 10: htb tc class add dev eth0 parent 10: classid 10:1 htb rate 10mbit tc class add dev eth0 parent 10:1 classid 10:10 htb rate 256kbit tc qdisc add dev eth0 parent 10:10 sfq perturb 10 tc filter add dev eth0 parent 10: protocol ip \ u32 match ip dst 208.191.32.254 flowid 10:10 # exit tc qdisc add dev eth1 root handle 20: htb tc class add dev eth1 parent 20: classid 20:1 htb rate 10mbit tc class add dev eth1 parent 20:1 classid 20:10 htb rate 256kbit tc qdisc add dev eth1 parent 20:10 sfq perturb 10 tc filter add dev eth1 parent 20: protocol ip \ u32 match ip src 208.191.32.254 flowid 20:10 When i say does and doesn't work, the first on passes data, the second one doesn't, and the pings I was testing with showed up as dropped packets when I ran "tc -s class ls dev eth1", which I thought odd... Especially since they showed up in the root class... Welp, it's 4am (again), time to get a nap... --- Homer Parker http://www.homershut.net telnet://bbs.homershut.net --=.cA.5)pFEKyO7E3 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE97dQrrgrN227HZ+8RAv+GAKCJRa+OmJsbJHFWHdlBjHbceAX0xQCgvVxI ufvnRb/QjReZQC9d+iQ9+cI= =8ma3 -----END PGP SIGNATURE----- --=.cA.5)pFEKyO7E3-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/