LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-29-2010, 05:18 AM   #1
Deewanagan
Member
 
Registered: Sep 2008
Posts: 57

Rep: Reputation: 15
Bandwidth Management with TC


Hi everybody,

I am trying to do some bandwidth management testing, so i have developed a small script for doing so. When i try to run it it gives the error <error> RTNETLINK answers: invalid argument</error>

can anyone point out the problem? i have searched the net, and so far they say it has to do something with the kernel support.

the script:
<code>
tc qdisc add dev eth1 root handle 1: htb
tc class add dev eth1 parent 1: classid 1:1 htb rate 2mbit ceil 2mbit
tc class add dev eth1 parent 1:1 classid 1:10 htb rate 600kbit ceil 2mbit prio 2
tc class add dev eth1 parent 1:1 classid 1:20 htb rate 1400kbit ceil 2mbit
tc class add dev eth1 parent 1:20 classid 20:100 htb rate 700kbit ceil 2mbit prio 0 #when running this command it gives the error
tc class add dev eth1 parent 1:20 classid 20:200 htb rate 700kbit ceil 2mbit pro 1
</code>

P.S: i am running this script on a virtual machine that has ubuntu 9.04 installed.

Last edited by Deewanagan; 11-29-2010 at 05:20 AM.
 
Old 12-04-2010, 07:37 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Hi there,

are you still stuck on this problem? If so, it may be as little as a typo, if your #comment refers to the following line:
Code:
tc class add dev eth1 parent 1:20 classid 20:200 htb rate 700kbit ceil 2mbit pro 1
Note the bold part - that should read prio, no?

By the way, for using the code tags, you must use [square] brackets around the word "code".

Kind regards.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bandwidth management deepaklukose Linux - Networking 3 01-30-2006 02:45 AM
IP bandwidth management RandomLinuxNewb Linux - Networking 1 07-23-2005 11:48 PM
bandwidth management ,, apenguinlinux Debian 1 02-18-2005 05:01 AM
bandwidth management . sam007 Linux - Distributions 0 12-16-2003 05:31 AM
bandwidth management louies Linux - Networking 0 12-11-2003 06:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration