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
_______________________________________________
leaf-wisp-dist mailing list
leaf-wisp-dist@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-wisp-dist

Reply via email to