Project

General

Profile

Feature #746

Using tc To Throttle Bandwidth on Arch

Added by Daniel Curtis almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Workstation
Target version:
Start date:
02/14/2016
Due date:
% Done:

100%

Estimated time:
0.10 h

Description

This is a guide on how to use the tc command to reduce the available bandwidth of a given interface on Arch Linux.

  • Configure enp0s3 to never use more than 64kbps regardless of port or application:
    sudo tc qdisc add dev enp0s3 handle 1: root htb default 11
    sudo tc class add dev enp0s3 parent 1: classid 1:1 htb rate 64kbps
    sudo tc class add dev enp0s3 parent 1:1 classid 1:11 htb rate 64kbps
    
  • To delete all traffic control throttling rules and to return to normal speeds:
    sudo tc qdisc del dev eth0 root
    

Resources

Also available in: Atom PDF