- Code: Select all
#!/bin/bash
DEV=eth1
SPEED=128kbit
tc qdisc add dev $DEV root handle 1: cbq avpkt 1000 bandwidth 10mbit
tc class add dev $DEV parent 1: classid 1:1 cbq rate $SPEED allot 1500 prio 5 bounded isolated
tc filter add dev $DEV parent 1: protocol ip prio 16 u32 match ip dst $IP flowid 1:1
I've never really used tc before, and can't find too much info on the options. Any ideas for how to limit an individual rather than the network?


