So to get the active network interface’s name (with Internet access), open your Terminal and enter the below command. Now to keep the article as simple as possible, I’ll try not to explain everything. If you have a Wi-Fi router based network setup (such as mine) then the Wi-Fi adapter is called “wlan0” (“wlan0, wlan1, wlan2” etc if you have more than one).īut luckily, in GNU/Linux you can easily identify the currently used network interface name using a command-line tool called “route”. If you have more than one, then they’re named “eth0, eth1, eth2” etc. And depending on your hardware the network interface name changes.įor instance, if you use an Ethernet adapter/card then usually it’s called “eth0”. In simple terms, a network interface in GNU/Linux is an Alias assigned by the OS to easily identify the network hardware. So after figuring that out, now we need to know the network interface used by GNU/Linux OS. But if you don’t know it, then you can use some sort of an online test or you can use QSpeed test (desktop based app that supports both GNU/Linux and Windows) or any other tool that you’re aware of.įiguring out the network interface name … Now I assume that you already know the speed of your Network connection. The required (throttled) download/upload speeds. The network interface or the hardware “id”.Ĭ. It’s real speed (as claimed by the ISP).ī. Either temporarily or permanently.īefore doing anything there are few things that you have to know such as:Ī. Please replace ‘download-speed’ and ‘upload-speed’ with your preferred values (has to be in “Kilobits per second”, kbps).įor my needs, I’ll use something like the below command.Īs said earlier, we can setup Wondershaper in two ways. Sudo wondershaper your-network-interface-id download-speed upload-speed To limit a network traffic with Wondershaper, you can use something like the below command in your Terminal window. You can install “Wondershaper” in Ubuntu 12.10, 12.04 Precise Pangolin, 11.10 Oneiric Ocelot, 11.04 Natty Narwhal, 10.10 and 10.04 by first using the below command in your Terminal window. Easily remove the traffic shaping anytime you want. After a successful throttle down of a 2Mbps connection to 512kbps … As said, you can add bandwidth throttling temporarily or can let it run when the system boots up so the network speed will be throttled every time automatically. Can be applied to each network interface manually (if you have more than one network connection). It’s a command-line one and lets you apply network traffic throttling temporarily or permanently. If you use Ubuntu Linux OS, though there aren’t that many we can use (or at least that I’m aware of) but for its simplicity and ease of use, “Wondershaper” is a very handy utility. So to save unnecessary bandwidth consumptions by applications (Web Browser or VOIP tools such as Skype etc), there can be situations where limiting the network speed by yourself is a necessity. If my monthly network usage exceeds this limit, then the ISP slows it down (pretty hard). For instance, I have an ADSL connection setup with a wireless router and it has a monthly bandwidth limit of 20GB. Traffic shaping or limiting the download & upload speeds of a network is usually performed by the ISPs for maintaining a QoS (“Quality of service”).
0 Comments
Leave a Reply. |