Re: LARTC] IFB & 802.1q

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you so much Marek and Andy
Your solutions work great!

Now my complete configuration is setup by the following commands:

ip link set up dev ifb0

tc qdisc add dev ifb0 root handle 1: htb default 3
tc class add dev ifb0 parent 1: classid 1:1 htb rate 2000kbit quantum
1514
tc class add dev ifb0 parent 1:1 classid 1:2 htb rate 1000kbit
ceil2000kbit quantum 1514
tc class add dev ifb0 parent 1:1 classid 1:3 htb rate 1000kbit ceil
2000kbit quantum 1514

tc filter add dev ifb0 parent 1: protocol ip priority 10 u32 match
ipsport 80 0xffff flowid 1:2

qdisc add dev eth0.10 root handle 1: htb
qdisc add dev eth0.20 root handle 1: htb

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

On Thu, 2007-05-31 at 16:41 +0200, Marek Kierdelewicz wrote:
> Hi,
> 
> >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
> 
> Try to add htb qdisc and attach your filter to qdisc instead of root. I
> think I used such configuration some time ago. As for filter rule,
> something like that worked for me:
> 
> tc filter add dev ethX.X protocol ip parent 1: prio 4 u32 match ip
> dst 0.0.0.0/0 flowid :1 action mirred egress redirect dev ifbX
> 
> cheers,
> Marek Kierdelewicz
> KoBa ISP
> _______________________________________________
> LARTC mailing list
> LARTC@xxxxxxxxxxxxxxx
> http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
> 
-- 
Afshin Tajvidi
IT Technical Architect

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

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux