Text Size

A problem many of us have in our offices or our homes is the need to have Guest access to our network but not hog all the bandwidth. What I did here is use Vyatta Quality of Service (QoS) settings to limit the bandwidth on a guest network through a traffic shaping policy. You can add other QoS rules like prioritizing VIOP if you wish but as that is more complex, I'm not covering it in this article, I'm just focusing on all bandwidth.

 

First you need to create a policy called GUEST-UL.

#set traffic-policy shaper GUEST-UL

You can also give the policy a description if you wish. (This step is optional)

#set traffic-policy shaper GUEST-UL description “QoS policy for GUEST LAN”

Now we set the max upload bandwidth that we want to allow

#set traffic‐policy shaper GUEST-UL bandwidth 128kbit

We need to set the default bandwidth policy. If you add other QoS settings in the future you can change this to a lower number. This will not limit the default bandwidth unless there are other QoS policies in place but it is required to get the upload cap to work.

#set traffic‐policy shaper GUEST-UL default bandwidth 50%

Now we set the max amount of bandwidth that the default policy can utilize. In this case we're setting it to 100%.

#set traffic‐policy shaper GUEST-UL default ceiling 100%

Now we must bind the policy to the external interface to ensure the policy will limit the bandwidth. If you miss this step your bandwidth will not be limited.

#set interfaces ethernet eth0 traffic‐policy out GUEST-UL

Commit your changes

#commit

Now save them to ensure they will survive a reboot.

#save

Before you continue, test the settings with your favorite speed test site to make sure it works. If it does not, look to see where you went wrong. Now that we have limited the upload, let's limit the download. Create the limiter policy and give it a name.

#set traffic‐policy limiter GUEST-DL

You can also give the policy a description if you wish. (This step is optional)

#set traffic‐policy limiter GUEST-DL default description “Limit inbound guest traffic”

Set the default policy bandwidth. In this command we are limiting the bandwidth to 300kbps.

#set traffic‐policy limiter GUEST-DL default bandwidth 300kbit

As in the upload limiter we must bind the policy to the external interface to ensure the download policy will limit the bandwidth. If you miss this step your bandwidth will not be limited.

#set interfaces ethernet eth0 traffic‐policy in GUEST-DL

Commit your changes

#commit

Now save them to ensure they will survive a reboot.

#save

Before you continue, test the settings with your favorite speed test site to make sure it works. If it does not, look to see where you went wrong.

Tech Stocks


Warning: Invalid argument supplied for foreach() in /home/sohowe5/public_html/tonystech.com/modules/mod_rokstock/lib/googlestock.class.php on line 71

Donations

If you like the site and feel the need to donate to help support the site, you can do it here.



Login Form