On 26 August 2010 21:12, Eugen Dedu <Eugen.Dedu@xxxxxxxxxxxxxxxxxxxx> wrote: > We have a working environment, but maybe there is some useful stuff in your scripts, send them to us if it does not take you much time. > > Thank you, > Eugen > To turn rate limiting and delay on I do: /sbin/tc qdisc add dev lan0 root handle 1:0 netem delay $1ms /sbin/tc qdisc add dev lan1 root handle 1:0 netem delay $1ms /sbin/tc qdisc add dev lan0 parent 1:1 handle 10: tbf rate $2kbit buffer 10000 limit 30000 and off: /sbin/tc qdisc del dev lan0 parent 1:1 /sbin/tc qdisc del dev lan0 root /sbin/tc qdisc del dev lan1 root To turn on packet loss and delay I do: /sbin/tc qdisc add dev lan1 root netem delay $1ms loss $3% /sbin/tc qdisc add dev lan0 root netem delay $1ms loss $2% and off: /sbin/tc qdisc del dev lan1 root netem /sbin/tc qdisc del dev lan0 root netem These are all from the box in the middle. Regards Ian -- To unsubscribe from this list: send the line "unsubscribe dccp" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html