Skip to content

Instantly share code, notes, and snippets.

@mehmetg
Last active March 26, 2016 06:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mehmetg/1e174e6fc84dc43318b3 to your computer and use it in GitHub Desktop.
Save mehmetg/1e174e6fc84dc43318b3 to your computer and use it in GitHub Desktop.
takes bw limit as argument e.g. 1250kbps
tc qdisc del dev eth0 root
tc qdisc add dev eth0 handle 1: root htb default 11
tc class add dev eth0 parent 1: classid 1:1 htb rate $1
tc class add dev eth0 parent 1:1 classid 1:11 htb rate $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment