LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-11-2011, 12:04 PM   #1
cpaman
LQ Newbie
 
Registered: Nov 2011
Posts: 3

Rep: Reputation: Disabled
traffic shaping


Hi
I have a traffic shaping issue. I have a 50 Mbps connection and I am trying to shape traffic for my virtual machines. I found this url http://wiki.openvz.org/Traffic_shaping_with_tc and it has helped me shape the traffic for one VM but I don't know how to shape traffic for multiple VMs.

I have the following code:

Code:
DEV=eth0
tc qdisc del dev $DEV root
tc qdisc add dev $DEV root handle 1: cbq avpkt 1000 bandwidth 100mbit
tc class add dev $DEV parent 1: classid 1:1 cbq rate 4096kbit allot 1500 prio 5 bounded isolated
tc filter add dev $DEV parent 1: protocol ip prio 16 u32 match ip dst 192.168.100.1 flowid 1:1
tc qdisc add dev $DEV parent 1:1 sfq perturb 10
How do I adapt the above

to limit traffic for 192.168.100.1 with 4096 kbits
to limit traffic for 192.168.100.2 with 1024 kbits
to limit traffic for 192.168.100.3 with 2048 kbits

and more ip and speed pairs?
 
Old 11-12-2011, 02:20 PM   #2
Lexus45
Member
 
Registered: Jan 2010
Distribution: Debian, Centos, Ubuntu, Slackware
Posts: 361
Blog Entries: 3

Rep: Reputation: 48
I hope this site will help you http://luxik.cdi.cz/~devik/qos/htb/manual/userg.htm
 
  


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
Traffic Shaping VoiP using TC (Traffic Control) is this working? Nemus Linux - Networking 0 05-16-2011 01:45 PM
Traffic Shaping netguy2000 Linux - Networking 1 05-13-2009 07:48 AM
Problem with Traffic Shaping and HTTP Traffic. redvivi Linux - Networking 1 11-29-2008 12:23 PM
Traffic shaping (limiting outgoing bandwidth of all TCP-traffic except FTP/HTTP) ffkodd Linux - Networking 3 10-25-2008 12:09 AM

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

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