LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-26-2012, 04:23 AM   #1
progammer
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Rep: Reputation: Disabled
How to limit speed of venet


I am googling from last 2 days but didn't find anything useful to me.

I am running centos 5.4 32bit under openvz vps.

server is running on ip: 123.23.23.39 - just an example

According to ifconfig this ip is under venet0:1 adapter

I need to know how to limit the speed of this adapter?
 
Old 03-26-2012, 06:17 AM   #2
cgtueno
Member
 
Registered: Jul 2003
Posts: 363

Rep: Reputation: 50
Hi

Would this information be of some assistance ?

http://wiki.openvz.org/Traffic_shaping_with_tc

C.
 
Old 03-26-2012, 06:41 AM   #3
progammer
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by cgtueno View Post
Hi

Would this information be of some assistance ?

http://wiki.openvz.org/Traffic_shaping_with_tc

C.
I tried this one but didn't work.
 
Old 03-26-2012, 06:55 AM   #4
cgtueno
Member
 
Registered: Jul 2003
Posts: 363

Rep: Reputation: 50
Hmm
I'll keep digging
 
Old 03-26-2012, 06:58 AM   #5
cgtueno
Member
 
Registered: Jul 2003
Posts: 363

Rep: Reputation: 50
Could you please cut and paste the command line code you tried, and the resulting output,
so I can get an idea of the approach you are using
 
Old 03-26-2012, 07:59 AM   #6
progammer
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by cgtueno View Post
Could you please cut and paste the command line code you tried, and the resulting output,
so I can get an idea of the approach you are using
Following is the code and after executing second line I got an error.
Code:
root@server [~]# DEV=venet0
root@server [~]# tc qdisc del dev $DEV root
RTNETLINK answers: Invalid argument

Last edited by progammer; 03-26-2012 at 08:00 AM.
 
Old 03-27-2012, 09:19 AM   #7
cgtueno
Member
 
Registered: Jul 2003
Posts: 363

Rep: Reputation: 50
According to:

http://linux.die.net/man/8/tc

tc has no "del" option - very strange

Can you check your implementation's man pages
for tc and see if it has a "del" parameter ?

Did you try (just thinking out loud) dropping
the first command line in the example entirely
("del" line), and making the next line
"replace" or "change" (instead of "add"),
and then enter the rest of the lines as
shown in the example ?

C.
 
Old 03-27-2012, 09:49 AM   #8
progammer
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Same Error again.

Code:
root@server [~]# DEV=venet0
root@server [~]# tc qdisc add dev $DEV root handle 1: cbq avpkt 1000 bandwidth 100mbit
RTNETLINK answers: Invalid argument
Code:
root@server [~]# DEV=venet0
root@server [~]# tc qdisc add dev $DEV root
RTNETLINK answers: Invalid argument
root@server [~]#

Last edited by progammer; 03-27-2012 at 09:51 AM.
 
Old 03-27-2012, 08:16 PM   #9
cgtueno
Member
 
Registered: Jul 2003
Posts: 363

Rep: Reputation: 50
Hmmm

Have you checked the command line syntax in the example against the
man entry for 'tc' in your distribution ?

Because it sounds like your distribution's implementation of tc
is not the same as openvz

C.
 
Old 03-30-2012, 12:23 AM   #10
progammer
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Here is output for only tc commnad:

Code:
root@server [~]# tc
Usage: tc [ OPTIONS ] OBJECT { COMMAND | help }
       tc [-force] -batch file
where  OBJECT := { qdisc | class | filter | action | monitor }
       OPTIONS := { -s[tatistics] | -d[etails] | -r[aw] | -b[atch] [file] }
root@server [~]#
 
  


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
Speed limit Itaaki Linux - Networking 2 01-21-2011 04:51 AM
Limit speed X.Cyclop Linux - Wireless Networking 3 12-18-2010 12:56 PM
Limit speed for slackpkg slackass Slackware 2 08-21-2009 06:23 PM
Limit Apache2's Speed NightShade737 Linux - Software 1 02-08-2004 03:42 PM
any possible way to limit wget d/l speed? ziggie216 Linux - Software 3 10-13-2003 04:27 PM

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

All times are GMT -5. The time now is 07:55 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