Advertisement
Guest User

Untitled

a guest
Aug 18th, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. DEV=em1
  2. RATE=99mbit
  3.  
  4. # Remove any current flow control
  5. tc qdisc del dev $DEV root >/dev/null 2>&1
  6.  
  7. # Base qdisc on the interface is htb
  8. tc qdisc add dev $DEV root handle 1: htb default 1
  9.  
  10. # Limit all sending to $RATE
  11. tc class add dev $DEV parent 1: classid 1:1 htb rate $RATE burst 6k
  12.  
  13. # Provide per-flow fairness 'cause we're nice like that
  14. tc qdisc add dev $DEV parent 1:1 handle 10: sfq perturb 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement