linux poison RSS
linux poison Email

Bandwidth Shaping using wondershaper

Traffic shaping on Linux system used to require knowledge of lot of things like iptables, qdiscs & networking protocols. Things have changed and now there are couple of tools which handle all of this complexity without requiring much knowledge. And one of them is wondershaper.

First install wondershper before using any of the command mentioned below also, you need to be root.

1) Use ifconfig to determine which of your networkcards is connected to internet.

# ifconfig

2) Time to shape the bandwidth--

# wondershaper

Where interface name is your network interface name like eth0 or eth1 or wifi0 and down speed , up speed are specified in kilo bits per second.

So sample command will look like

# wondershaper eth0 128 64

3) To disable wondershaper from controlling particular interface use following command.

# wondershaper clear eth0

4) To make these changes permanent add following lines to network file

up /sbin/wondershaper
down /sbin/wondershaper clear


Post a Comment

Related Posts with Thumbnails