1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

added two shell scripts for tc debugging

git-svn-id: https://zerberus.eonerc.rwth-aachen.de:8443/svn/s2ss/trunk@83 8ec27952-4edc-4aab-86aa-e87bb2611832
This commit is contained in:
Steffen Vogel 2014-06-25 01:53:54 +00:00
parent 69149c596a
commit a62373b28a
2 changed files with 27 additions and 0 deletions

9
contrib/dump.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
for if in lo eth1; do
for p in qdisc filter class; do
echo "======= $if: $p ========"
tc $p show dev $if
done
echo
done

18
contrib/netem.sh Executable file
View file

@ -0,0 +1,18 @@
#!/bin/bash
IF=eth1
# Reset everything
tc qdisc del dev $IF root
# Root qdisc
tc qdisc add dev $IF root handle 4000 prio bands 3 priomap 0 0 0
# Netem qdsics
tc qdisc add dev $IF parent 4000:2 handle 4020 netem delay 500000
tc qdisc add dev $IF parent 4000:3 handle 4030 netem delay 1000000
# Filters
tc filter add dev $IF protocol ip u32 match ip dst 172.23.157.1 classid 4000:2
tc filter add dev $IF protocol ip u32 match ip dst 172.23.157.3 classid 4000:3