From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?T=F3th_N=E1ndor?= Date: Mon, 31 Jan 2005 09:55:53 +0000 Subject: Re: [LARTC] why there is any traffic in default class? Message-Id: <41FE00A9.6050004@sch.bme.hu> List-Id: References: <3cfad9ca05013101435f72a4d9@mail.gmail.com> In-Reply-To: <3cfad9ca05013101435f72a4d9@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Hi! Denis Kot wrote: > I have: >=20 > tc qdisc add dev imq0 root handle 1: htb default 30 > tc class add dev imq0 parent 1: classid 1:1 htb rate 512kbit ceil 512kbit > tc class add dev imq0 parent 1:1 classid 1:30 htb rate 64kbit ceil 512kbit >=20 > then: >=20 > iptables -t mangle -A PREROUTING -i ppp0 -s 192.168.2.2 -j IMQ --todev 0 If i understand you correctly, it should be: iptables -t mangle -A PREROUTING -i ppp0 -j IMQ --todev 0 iptables -t mangle -A PREROUTING -s 192.168.2.2 -j IMQ --todev 0 Your rule means: traffic which came from ppp0 AND has source ip=20 192.168.2.2 go to IMQ. > tc class add dev imq0 parent 1:1 classid 1:22 htb rate 64kbit ceil 128kbit > tc filter add dev imq0 protocol ip parent 1:0 prio 1 u32 match ip src > 192.168.2.2 flowid 1:22 >=20 > so, as I understand any traffic from source 192.168.2.2 and from > interface ppp0 must be going directly in to class 1:22, so default > class 30 must not have any traffic. isn=B4t it? This part may or may not be ok, i do not know. --=20 Udv, Nandor _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/