LARTC
[Top] [All Lists]

Re: [LARTC] IFB & 802.1q

To: afshin.tajvidi@cacheguard.com
Subject: Re: [LARTC] IFB & 802.1q
From: Andy Furniss <lists@andyfurniss.entadsl.com>
Date: Fri, 01 Jun 2007 00:53:04 +0100
Cc: lartc@mailman.ds9a.nl
Delivered-to: sp-com-lists@consult.net
Delivered-to: lartc-list@securepoint.com
Delivered-to: lartc@outpost.ds9a.nl
In-reply-to: <1180621375.2571.4.camel@mahler.onetec>
List-archive: <http://mailman.ds9a.nl/pipermail/lartc>
List-help: <mailto:lartc-request@mailman.ds9a.nl?subject=help>
List-id: "Mailinglist of the Linux Advanced Routing &amp; Traffic Control project" <lartc.mailman.ds9a.nl>
List-post: <mailto:lartc@mailman.ds9a.nl>
List-subscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=subscribe>
List-unsubscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=unsubscribe>
References: <1180621375.2571.4.camel@mahler.onetec>
Reply-to: lists@andyfurniss.entadsl.com
Sender: lartc-bounces@mailman.ds9a.nl
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.1.2) Gecko/20070227 SeaMonkey/1.1.1
Afshin Tajvidi wrote:

So more precisely my question is which commands are to be used to
redirect flows outgoing from eth0.10 and eth0.20 to ifb0 ? (I don't want
to create separate QoS trees for eth0.10 and eth0.20 because the
borrowing feature of HTB interests me).

I've used :

tc filter add dev eth0.10 parent root protocol ip priority 10 u32 match
u32 0 0 flowid 1: action mirred egress redirect dev ifb0
tc filter add dev eth0.20 parent root protocol ip priority 10 u32 match
u32 0 0 flowid 1: action mirred egress redirect dev ifb0

But this do not work! (the ifb0 is always empty) Maybe I miss something
or simply IFB does not allow to do global limitation as IMQ does.

You need a classfull qdisc on the egress interface to get the redirect to work. If you redirect from eth0.X then protocol ip should be OK.
Try -

tc qdisc add dev eth0.10 root handle 1:0 prio

tc filter add dev eth0.10 parent 1:0 protocol ip priority 10 u32 match u32 0 0 flowid 1: action mirred egress redirect dev ifb0

Andy.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

<Prev in Thread] Current Thread [Next in Thread>