From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stef Coene Date: Mon, 17 Mar 2003 17:20:29 +0000 Subject: Re: [LARTC] IMQ ingress shaping Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org On Monday 17 March 2003 01:22, Jirka Pirko wrote: > is here anybody successfully running HTB + IMQ for ingress traffic?? i > can't do it :( > > i'm using following commands: > > # ifconfig imq0 up > # iptables -A PREROUTING -t mangle -i eth2 -j IMQ --todev imq0 > # tc qdisc add dev imq0 root handle 1 htb default 0 > # tc class add dev imq0 parent 1: classid 1:2 htb rate 11Mbit > # tc class add dev imq0 parent 1:2 classid 1:10 htb rate 128Kbit prio 50 > # tc filter add dev imq0 parent 1:0 protocol ip prio 100 u32 match ip dst > 192.168.1.1 classid 1:10 > # tc class add dev imq0 parent 1:2 classid 1:20 htb rate 128Kbit prio 60 > # tc filter add dev imq0 parent 1:0 protocol ip prio 100 u32 match ip dst > 192.168.1.2 classid 1:20 > > then > > # tc qdisc show dev imq0 > qdisc htb 1: r2q 10 default 0 direct_packets_stat 0 > > it seems to me like no pakets are coming thru imq0 but why? i thing i have > iptables set right. > > anybody see mistake? Can you check with iptables -L -v -n -t mantgle that your iptables counters are increasing? 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/