1 Jun 2007 01:53
Re: IFB & 802.1q
Andy Furniss <lists <at> andyfurniss.entadsl.com>
2007-05-31 23:53:04 GMT
2007-05-31 23:53:04 GMT
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.
, my fault, not looking at headers, my wish was always to write to
the list.
> If you had done that, I wouldn't have had to do the "Top-Posting". Take
> a look at the archives please.
There is no reason to do Top-Posting, if i've missed the cc to the list, you
still can do a normal innline reply. But all this is getting OT in this list.
> On Wednesday 30 May 2007 00:58:18 you wrote:
[snip]
> Yessir. 3 bags full.
> If you had read my post c l e a r l y, before you felt obliged to show
> off your knowledge, you might have understood that I was talking about
> the so-called 'special-protocols'.
You mention online gaming and IM protocols, and there is nothing special about
that. What im triyng to say is that CONNTRACK+CONNMARK solves that problem
for you. You can have IM(msn,jabber,yahoo,aol) connected all day long without
problems, or you can do online gamming too, or have an ssh session for weeks.
CONNTRACK has the avility to track tcp(ammong others) flows and to remember
an ESTABLISHED connection. Then you can use CONNMARK to MARK an ESTABLISHED
connection with an unique tag based on the provider that it use.
Then, every time you see the same MARK on that ESTABLISHED connection you
assure that it will be routed over the same original provider.
RSS Feed