tc qdisc add dev eth0 root handle 1: prio
tc qdisc add dev eth0 parent 1:3 handle 30: netem delay 50ms 10ms distribution normal loss 10%
tc filter add dev eth0 protocol ip parent 1:0 prio 3 u32 match ip dst 10.0.0.138/32 flowid 1:3
tc qdisc add dev eth0 parent 1:3 handle 30: netem delay 50ms 10ms distribution normal loss 10%
tc filter add dev eth0 protocol ip parent 1:0 prio 3 u32 match ip dst 10.0.0.138/32 flowid 1:3
tc filter add dev eth0 protocol ip parent 1:0 prio 3 u32 match ip dst 10.0.7.12/32 flowid 1:3
参考资料
http://www.cnblogs.com/shipfi/archive/2008/01/04/1025593.html