[leaf-wisp] Re: bandwidth manage, thank you

Vladimir Ivaschenko <[email protected]> Wed, 09 Feb 2005 19:26:45 +0200
Newsgroups gmane.linux.leaf.wisp-dist
Message-ID <[email protected]>
set_shaper is a function. You don't need to put IP address inside it.

Instead, you call it - like "set_shaper 192.168.1.1 128kbit 100". See 
examples in ifup.local.

I see that you commented out calls to set shaping on netcs0. That means 
that shaping of traffic will only work on one direction - for packets 
sent to 192.168.1.1 via eth0.

[email protected] wrote:
> thank you for the help, but i've a question, my file conf is:
> 
> # Function to set HTB/SFQ shaper with fixed bandwidth on an IP address
> set_shaper() {
>     IP=192.168.1.11
>     SPEED=128kbit
>     ID=100
> 
>     tc class add dev eth0 parent 1:1 classid 1:$ID htb rate $SPEED ceil $SPEED
>     tc qdisc add dev eth0 parent 1:$ID handle $ID: sfq perturb 10
>     tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip dst$IP/32
>    #tc class add dev netcs0 parent 1:1 classid 1:$ID htb rate $SPEED ceil$SPEED
>    #tc qdisc add dev netcs0 parent 1:$ID handle $ID: sfq perturb 10
>    #tc filter add dev netcs0 protocol ip parent 1:0 prio 1 u32 match ip src
> }
> 
> is good?, sorry is my firts time with this file.
> 
> Atte.
> 
> Eder M. Gutierrez Alarcon
> 
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
> 
> 


-- 
Best Regards,
Vladimir Ivashchenko
ThunderWorx - www.thunderworx.com
Senior Systems Designer/Engineer



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click