mikrotik_snippets/delay-jitter-packetloss.sh

14 lines
523 B
Bash
Raw Normal View History

2016-05-07 05:17:19 +03:00
#
# Add output delay, jitter and packet loss.
#
# +-- delay +-- lost percent
# +-- interface | +-- jitter | +-- burst
# v v v v v
tc qdisc add dev eth1 root netem delay 10ms 1ms distribution normal loss 4% 10%
# Change.
tc qdisc change dev eth1 root netem delay 10ms 1ms distribution normal loss 4% 10%
# Delete.
tc qdisc del dev eth1 root netem