Add a qdisc to class 1:1234 with bandwidth=rate=128Kbit and attach the
tbf to that qdisc.
For fw-filter and other examples : http://users.belgacom.net/staf/
--
Staf
More QOS info : http://users.belgacom.net/staf/
johan@pinguind.co.id wrote:>
> I had tried this
> #iptables -t mangle -A PREROUTING -p tcp --sport 20 -j MARK --set-mark 1
>
> #tc qdisc add dev eth0 root handle 1:0 cbq bandwidth 10Mbit avpkt 1000 cell
> 8
>
> #tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth 10Mbit rate
> 10Mbit weight 1Mbit prio 8 allot 1514 cell 8 maxburst 20 avpkt 1000
>
> #tc class add dev eth0 parent 1:1 classid 1:1234 cbq bandwidth 10Mbit rate
> 128Kbit weight 12Kbit prio 5 allot 1514 cell 8 maxburst 20 avpkt 1000
> bounded isolated
>
> #tc qdisc add dev eth0 parent 1:1234 tbf rate 128Kbit buffer 10Kb/8 limit
> 15Kb mtu 1500
>
> #tc filter add dev eth0 parent 1:0 proto ip handle 1 fw classid 1:1234
>
> And, we tested with ftp, we didn''t get result that I would
expected.
>
> any suggest ?
> let me know your example for fw classifier ....
>
> Best Regards
>
> Johan
>
> --
> -''-
> (o o)
> ---------ooO--(_)--Ooo-------------------------------------------------
> ( )/ \( )( ) ( ) ( \( ) Visit us at http://www.pinguind.co.id
> __)(( () ))__( /__\ ) ( Feel free to contact me at ICQ #47240718
> (___/ \__/(_)(_)(_)(_)(_)\_) email:johan@pinguind.co.id
> -----------------------------------------------------------------------
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO:
http://ds9a.nl/2.4Routing/