Ok, I''ve went and confused myself again :( With the following rules: tc qdisc add dev eth0 root handle 1: htb default 255 tc class add dev eth0 parent 1: classid 1:1 htb rate 10mbit tc class add dev eth0 parent 1:1 classid 1:255 htb rate 64kbit ceil 128kbit tc qdisc add dev eth0 parent 1:255 sfq perturb 10 tc class add dev eth0 parent 1:1 classid 1:10 htb rate 4Mbit ceil 5Mbit tc class add dev eth0 parent 1:10 classid 1:11 htb rate 256kbit \ ceil 512kbit prio 1 tc class add dev eth0 parent 1:10 classid 1:12 htb rate 256kbit \ ceil 512kbit prio 2 tc class add dev eth0 parent 1:10 classid 1:13 htb rate 256kbit \ ceil 512kbit prio 3 tc qdisc add dev eth0 parent 1:11 handle 11: sfq perturb 10 tc qdisc add dev eth0 parent 1:12 handle 12: sfq perturb 10 tc qdisc add dev eth0 parent 1:13 handle 13: sfq perturb 10 tc filter add dev eth0 parent 1:10 protocol ip handle 11 fw classid 1:11 tc filter add dev eth0 parent 1:10 protocol ip handle 12 fw classid 1:12 tc filter add dev eth0 parent 1:10 protocol ip handle 13 fw classid 1:13 And the folowing fmarks: pkts bytes target prot opt in out source destination 33 3308 MARK udp -- eth1 * 0.0.0.0/0 0.0.0.0/0 MARK set 0xb 0 0 MARK tcp -- eth1 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:53 MARK set 0xb 288 44869 MARK tcp -- eth1 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 MARK set 0xc 1204 133K MARK ah -- eth1 * 0.0.0.0/0 0.0.0.0/0 MARK set 0xd Why is it everything goes to 1:255, the default? --- Homer Parker /"\ ASCII Ribbon Campaign \ / No HTML/RTF in email http://www.homershut.net x No Word docs in email telnet://bbs.homershut.net / \ Respect for open standards This e-mail message is 100% Microsoft free! WARNING: THIS ACCOUNT BELONGS TO A RABID ANTI-SPAMMER NET-NAZI DOT-COMMUNIST!!
On Tuesday 24 December 2002 05:47, Homer Parker wrote:> Ok, I''ve went and confused myself again :( With the following rules: > > tc filter add dev eth0 parent 1:10 protocol ip handle 11 fw classid 1:11 > tc filter add dev eth0 parent 1:10 protocol ip handle 12 fw classid 1:12 > tc filter add dev eth0 parent 1:10 protocol ip handle 13 fw classid 1:13Shouldn''t this be parent 1: ????? Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Tue, 24 Dec 2002 09:37:48 +0100 Stef Coene <stef.coene@docum.org> wrote....> On Tuesday 24 December 2002 05:47, Homer Parker wrote: > > Ok, I''ve went and confused myself again :( With the following > > rules: > > > > tc filter add dev eth0 parent 1:10 protocol ip handle 11 fw classid > > 1:11 tc filter add dev eth0 parent 1:10 protocol ip handle 12 fw > > classid 1:12 tc filter add dev eth0 parent 1:10 protocol ip handle 13 > > fw classid 1:13 > Shouldn''t this be parent 1: ?????That got it, thanks! --- Homer Parker /"\ ASCII Ribbon Campaign \ / No HTML/RTF in email http://www.homershut.net x No Word docs in email telnet://bbs.homershut.net / \ Respect for open standards This e-mail message is 100% Microsoft free! WARNING: THIS ACCOUNT BELONGS TO A RABID ANTI-SPAMMER NET-NAZI DOT-COMMUNIST!!