Displaying 1 result from an estimated 1 matches for "create_tree".
2004 Nov 03
0
Download ratio unstable
...25 KB. Perhaps
there''s something wrong in my script ?
I paste it, thx.
---------------------------------------------------------------------
#!/bin/bash
RATE=100
LOCALIF=eth1
clear_all() {
tc qdisc del dev $LOCALIF root >/dev/null 2>&1
iptables -t mangle -F
}
create_tree() {
tc qdisc add dev $LOCALIF root handle 1: htb default 1
tc class add dev $LOCALIF parent 1: classid 1:1 htb rate
${RATE}kbit ceil ${RATE}kbit
tc qdisc add dev $LOCALIF parent 1:1 handle 2: prio bands 4
tc qdisc add dev $LOCALIF parent 2:1 handle 10: sfq perturb 20...