linux traffic control - setting global bandwidth limit on a single vlan interface

Posted on 2012-09-05
Last Modified: 2013-01-30
First time looking at linux traffic controls.  It appears much more complicated than I'm qualified for.

I have a library with a 10mbps cable Internet connection.  Have segmented the internal network to a couple of internal vlans via my linux server (operating as a router).  

The problem: The public computer lab vlan is using all the internet access and the staff vlan then has problems using their internet.   Would like to limit the computer lab vlan to 6 or 7mbps.   We don't care about any specific qos for voip or ssh etc.

Does anyone have a tc set of command lines to setup a limit on traffic to and from a vlan interface on this linux router?

I see that zeroshell does this but I can't figure the end tc htb from the scripts zeroshell uses......

Appreciate any assistance you can give.
Question by:kcgroup
    LVL 39

    Assisted Solution

    There is a script out there called the wondershaper, that should make it a lot simpler to handle.

    Accepted Solution

    found a newer copy of wondershaper via debian package. much newer and better functionality

    Author Comment

    I've requested that this question be closed as follows:

    Accepted answer: 0 points for kcgroup's comment #a38835850

    for the following reason:

    Finally found a very good bandwidth control script.
    LVL 39

    Expert Comment

    I disagree with better, as the script is essentially the same as the original, changes that are there are mainly for DEBIAN packaging purposes, and some usability in a DEBIAN context.
    [ The original script could not run by itself, id needed to be edited on purpose ].

    Besides the defaults, if you want some other prioritization the script still needs to be edited.
    It is still required to read the readme's etc.

    For the non-debian user there is more work involved.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
    Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now