Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DEV=em1
- RATE=99mbit
- # Remove any current flow control
- tc qdisc del dev $DEV root >/dev/null 2>&1
- # Base qdisc on the interface is htb
- tc qdisc add dev $DEV root handle 1: htb default 1
- # Limit all sending to $RATE
- tc class add dev $DEV parent 1: classid 1:1 htb rate $RATE burst 6k
- # Provide per-flow fairness 'cause we're nice like that
- tc qdisc add dev $DEV parent 1:1 handle 10: sfq perturb 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement