| To: | lartc <lartc@mailman.ds9a.nl> |
|---|---|
| Subject: | [LARTC] (no subject) |
| From: | "Leigh Sharpe" <lsharpe@pacificwireless.com.au> |
| Date: | Wed, 28 Mar 2007 16:27:53 +1000 |
| Delivered-to: | sp-com-lists@consult.net |
| Delivered-to: | lartc-list@securepoint.com |
| Delivered-to: | lartc@outpost.ds9a.nl |
| 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 & 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> |
| Sender: | lartc-bounces@mailman.ds9a.nl |
|
Hi
all,
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?
Configs as
follows:
--------
#!/bin/sh
modprobe ifb numifbs=1000 modprobe act_mirred modprobe 8021q brctl addbr
br0
brctl setfd br0 0 brctl stp br0 off brctl addif br0 eth1 brctl addif br0 eth2 ifconfig eth1 up ifconfig eth2 up ifconfig br0 up tc qdisc add dev
eth1 root handle 1:0 cbq bandwidth 100Mbit avpkt 1000 cell 8
tc qdisc add dev eth2 root handle 1:0 cbq bandwidth 100Mbit avpkt 1000 cell 8 ifconfig ifb0
up
tc qdisc add dev
ifb0 root handle 1:0 cbq bandwidth 100Mbit avpkt 1000 cell 8
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
tc qdisc add dev
eth1 ingress
tc qdisc add dev eth2 ingress tc filter add dev eth1 parent ffff: protocol ip prio 10 u32 match u32 0 0 action mirred egress redirect dev ifb0 tc filter add dev eth2 parent ffff: protocol ip prio 10 u32 match u32 0 0 action mirred egress redirect dev ifb0 tc filter add dev
ifb0 parent 1:0 protocol ip prio 1 u32 match u32 0 0 flowid
1:1
--------------
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.
What have I
missed?
Regards,
Leigh Leigh Sharpe
Network Systems Engineer Pacific Wireless Ph +61 3 9584 8966 Mob 0408 009 502 _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [LARTC] Re: [LARTC} how can I compile tc, Andy Furniss |
|---|---|
| Next by Date: | [LARTC] modprobe ifb, Ruben Porras |
| Previous by Thread: | [LARTC] HTB: is root a class really necessary?, brick |
| Next by Thread: | [LARTC] Re: IFB setup was no subject, Andy Furniss |
| Indexes: | [Date] [Thread] [Top] [All Lists] |