1 # Limiting traffic rate to 1mbit to Amazon US-West data center (204.246.0.0/16)
2 tc qdisc add dev eth0 root handle 1: cbq avpkt 1000 bandwidth 1000mbit
3 tc class add dev eth0 parent 1: classid 1:1 cbq rate 1mbit allot 1500 prio 5 bounded isolated
4 tc filter add dev eth0 parent 1: protocol ip prio 16 u32 match ip dst 204.246.0.0/16 flowid 1:1
6 # List traffic classifier state
9 tc filter show dev eth0
12 tc qdisc del dev eth0 root