Project

General

Profile

Feature #746

Using tc To Throttle Bandwidth on Arch

Added by Daniel Curtis about 8 years ago. Updated about 8 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

#1

Updated by Daniel Curtis about 8 years ago

  • Status changed from New to Resolved
  • Start date changed from 02/13/2016 to 02/14/2016
  • % Done changed from 0 to 100
#2

Updated by Daniel Curtis about 8 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF