Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
#Setup the rate control and delay
sudo tc qdisc add dev lo root handle 1: htb default 12
sudo tc class add dev lo parent 1:1 classid 1:12 htb rate 56kbps ceil 128kbps
sudo tc qdisc add dev lo parent 1:12 netem delay 200ms
#Remove the rate control/delay
sudo tc qdisc del dev lo root
#To see what is configured on an interface, do this
sudo tc -s qdisc ls dev lo
#Replace lo with eth0/wlan0 to limit speed from wide lan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment