I did what I should have in the beginning and read the QOS section of the
Bering Users Guide (RTFM). As a result I saw that I needed to load the
modules you specified James. Thanks.
I loaded all the modules and had a bit more success. The wondershaper
script still errors out on these lines:
tc class add dev $DEV parent 1:1 classid 1:20 htb rate
$[9*$UPLINK/10]kbit burst 6k prio 2
tc class add dev $DEV parent 1:1 classid 1:30 htb rate
$[8*$UPLINK/10]kbit burst 6k prio 2
The problem is the rate calculation "$[9*$UPLINK/10]kbit ". TC errors
with: Illegal "rate". Since Wondershaper was written for Bash not Ash
I'm sure the problem is a difference in syntax. Can one of our Ash experts
can tell me what needs to be changed?
Can anyone else using Wondershaper on Bering give me any tips for adding
additional ports/protocols to the script?
Thanks
Roger
"James Neave" <JNeave
@spursolutions.com>
09/02/2004 09:31 AM
To: Roger E McClurg/CEG/[EMAIL PROTECTED],
<[EMAIL PROTECTED]>
cc:
Subject: RE: [leaf-user] Traffic Shaping
Hi,
Yes, there are lots of modules that you need to load.
They are in <Your modules>/kernel/net/sched.
I can't remember how I found out which ones I needed. Either I loaded
all of them or I used trial and error.
If you look carefully in the script, there is a comment on how to put it
into debug mode, you add an X to one of the very first lines. Can't
remember which though.
If that was helpful, I'll eat my cat.
Regards,
James.
-----Original Message-----
From: Roger E McClurg [mailto:[EMAIL PROTECTED]
Sent: 02 September 2004 14:10
To: [EMAIL PROTECTED]
Subject: [leaf-user] Traffic Shaping
I'm trying to setup traffic shaping in Bering 1.2, but I'm running into
difficulties. I've loaded the tc.lrp package, and the wondershaper htb
script. When run by Shorewall the script gets errors. In attempting to
debug the script I entered the commands manually. Even though the
command
is right out of the Linux Advanced Routing documentation it fails:
# tc qdisc add dev eth0 root handle 1: htb default 30
RTNETLINK answers: Invalid argument
Is there an additional package or module needed to make tc work
properly?
Thanks for your help.
Roger
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html