From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Furniss Date: Sat, 25 Feb 2006 11:45:50 +0000 Subject: Re: [LARTC] why isn't 1:1 getting the traffic? [filter question] Message-Id: <4400436E.20901@dsl.pipex.com> List-Id: References: <20060224175729.GF3794@mandriva.com> In-Reply-To: <20060224175729.GF3794@mandriva.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Andreas Hasenack wrote: > With the below script, whenever I ping 10.0.16.10 (which matches the > only filter I have), traffic still get's sent to the default 1:2 class > instead of 1:1 and I don't know why... Any hints? > > (kernel 2.6.12, iproute2-2.6.15) > > tc qdisc del dev eth0 root > /dev/null 2>&1 > tc qdisc add dev eth0 handle 1: root htb default 2 > tc class add dev eth0 classid 1:1 parent 1: htb rate 100kbps ceil 100kbps quantum 1500 > tc class add dev eth0 classid 1:2 parent 1: htb rate 90mbit ceil 90mbit quantum 1500 > tc qdisc add dev eth0 handle 2: parent 1:2 sfq perturb 10 > tc class add dev eth0 classid 1:10 parent 1:1 htb prio 0 rate 30kbps quantum 1500 > tc qdisc add dev eth0 handle 10: parent 1:10 sfq perturb 10 > tc class add dev eth0 classid 1:11 parent 1:1 htb prio 0 rate 70kbps ceil 100kbps quantum 1500 > tc qdisc add dev eth0 handle 20: parent 1:11 sfq perturb 10 > tc class add dev eth0 classid 1:12 parent 1:1 htb rate 60kbps ceil 100kbps quantum 1500 > tc qdisc add dev eth0 handle 30: parent 1:12 sfq perturb 10 > tc filter add dev eth0 parent 1:0 prio 1 protocol ip u32 \ > match ip dst 10.0.16.10/32 \ > flowid 1:1 It's because 1:1 isn't a leaf, you need more filters with parent 1:1 to filter to the leaves. Andy. _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc