<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>

<META content="MSHTML 6.00.2800.1491" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=619112506-28032007><FONT face=Arial size=2>Hi 
all,</FONT></SPAN></DIV>
<DIV><SPAN class=619112506-28032007><FONT face=Arial size=2>&nbsp;I'm having a 
hell of a time getting my IFB to work. I know I've done this before, so I'm 
missing something stupid. Can anybody tell me what it might 
be?</FONT></SPAN></DIV>
<DIV><SPAN class=619112506-28032007><FONT face=Arial size=2>Configs as 
follows:</FONT></SPAN></DIV>
<DIV><SPAN class=619112506-28032007><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=619112506-28032007><FONT face=Arial 
size=2>--------</FONT></SPAN></DIV>
<DIV><SPAN class=619112506-28032007><FONT face=Arial 
size=2>#!/bin/sh<BR>modprobe ifb numifbs=1000<BR>modprobe act_mirred<BR>modprobe 
8021q</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=619112506-28032007><FONT face=Arial size=2>brctl addbr 
br0<BR>brctl setfd br0 0<BR>brctl stp br0 off<BR>brctl addif br0 eth1<BR>brctl 
addif br0 eth2<BR>ifconfig eth1 up<BR>ifconfig eth2 up<BR>ifconfig br0 
up</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=619112506-28032007><FONT face=Arial size=2>tc qdisc add dev 
eth1 root handle 1:0 cbq bandwidth 100Mbit avpkt 1000 cell 8<BR>tc qdisc add dev 
eth2 root handle 1:0 cbq bandwidth 100Mbit avpkt 1000 cell 8</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=619112506-28032007><FONT face=Arial size=2>ifconfig ifb0 
up</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=619112506-28032007><FONT face=Arial size=2>tc qdisc add dev 
ifb0 root handle 1:0 cbq bandwidth 100Mbit avpkt 1000 cell 8</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=619112506-28032007><FONT face=Arial size=2>tc class add dev 
ifb0 parent 1:0 classid 1:1 cbq bandwidth 100Mbit rate 100Kbit weight 10Kbit 
prio 5 allot 1514 cell 8 maxburst 20 avpkt 1000 bounded 
isolated</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=619112506-28032007><FONT face=Arial size=2>tc qdisc add dev 
eth1&nbsp;ingress<BR>tc qdisc add dev eth2&nbsp;ingress<BR>tc filter add dev 
eth1 parent ffff: protocol ip prio 10 u32 match u32 0 0 action mirred egress 
redirect dev ifb0<BR>tc filter add dev eth2 parent ffff: protocol ip prio 10 u32 
match u32 0 0 action mirred egress redirect dev ifb0</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=619112506-28032007><FONT face=Arial size=2>tc filter add dev 
ifb0 parent 1:0 protocol ip prio 1 u32 match u32 0 0 flowid 
1:1</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=619112506-28032007>--------------</SPAN></FONT></DIV>
<DIV><SPAN class=619112506-28032007><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=619112506-28032007><FONT face=Arial size=2>By my reckoning, 
this should redirect all packets passing through eth2 and eth1 through the IFB, 
and put a rate limit on the IFB of 100Kbits/sec.</FONT></SPAN></DIV>
<DIV><SPAN class=619112506-28032007><FONT face=Arial size=2>What have I 
missed?</FONT></SPAN></DIV>
<DIV><SPAN class=619112506-28032007></SPAN>&nbsp;</DIV>
<DIV><SPAN class=619112506-28032007><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=619112506-28032007><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV align=left>
<DIV align=left><FONT face=Arial 
size=2>Regards,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Leigh</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Leigh Sharpe<BR>Network Systems Engineer<BR>Pacific 
Wireless<BR>Ph +61 3 9584 8966<BR>Mob 0408 009 502</FONT></DIV>
<DIV><FONT face=Arial size=2>Helpdesk 1300 300 616<BR>email <A 
title=mailto:lsharpe@pacificwireless.com.au 
href="blocked::mailto:lsharpe@pacificwireless.com.au">lsharpe@pacificwireless.com.au</A><BR>web 
<A title=http://www.pacificwireless.com.au/ 
href="blocked::http://www.pacificwireless.com.au/">www.pacificwireless.com.au</A></FONT></DIV></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>