TC Skript Fehler?!?
Posted: 2006-07-15 13:02
Hallo,
nachdem ich mich in einem anderen Thread über QoS ein wenig informiert habe, habe ich mich mal an TC versucht, nur leider will das nicht so ganz, wie ich möchte...
Hier mal meine Anweisungen:
Was mir wichtig ist, dass ich Port 80 beschränken kann auf ~40 Mbit
leider rennt Port80 weiter mit ~95 Mbit.
Weiß jemand, wo mein Fehler liegt?
Grüße und Danke schonmal
nachdem ich mich in einem anderen Thread über QoS ein wenig informiert habe, habe ich mich mal an TC versucht, nur leider will das nicht so ganz, wie ich möchte...
Hier mal meine Anweisungen:
Code: Select all
## Delete all rules
/sbin/tc qdisc del dev eth0 root
/sbin/tc qdisc add dev eth0 root handle 1:0 htb default 15
/sbin/tc class add dev eth0 parent 1:0 classid 1:1 htb rate 38000kbit
/sbin/tc class add dev eth0 parent 1:1 classid 1:5 htb rate 72kbit ceil 240kbit prio 2
/sbin/tc class add dev eth0 parent 1:1 classid 1:10 htb rate 120kbit ceil 38000kbit prio 6
/sbin/tc qdisc add dev eth0 parent 1:5 handle 5:0 sfq perturb 10
/sbin/tc qdisc add dev eth0 parent 1:10 handle 10:0 sfq perturb 10
/sbin/tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip dport 22 0xffff flowid 1:5
/sbin/tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip sport 22 0xffff flowid 1:5
/sbin/tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip dport 80 0xffff flowid 1:10
leider rennt Port80 weiter mit ~95 Mbit.
Weiß jemand, wo mein Fehler liegt?
Grüße und Danke schonmal