[LARTC] Re: Simple shaping question
Jonas Jasas
jonas.jasas at gmail.com
Wed Jan 11 16:05:10 CET 2006
Thank you for your help!
This is my modified rules, but that work exactly as before :~/
/sbin/tc qdisc del dev eth0 root
/sbin/tc qdisc add dev eth0 root handle 1 htb default 20 r2q 100
/sbin/tc class add dev eth0 parent 1: classid 1:2 htb rate 900Kbit burst 15k
/sbin/tc class add dev eth0 parent 1:2 classid 1:10 htb rate 890Kbit
ceil 900Kbit
/sbin/tc class add dev eth0 parent 1:2 classid 1:20 htb rate 10Kbit ceil 900Kbit
/sbin/tc qdisc add dev eth0 parent 1:10 handle 10: sfq perturb 10
/sbin/tc qdisc add dev eth0 parent 1:20 handle 20: sfq perturb 10
/sbin/tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match
ip sport 80 0xffff flowid 1:10
/sbin/tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match
ip dport 80 0xffff flowid 1:10
Are these rules OK or I am missing something again? Can anyone show me
working example of similar rules.
Thanks again for help!
More information about the LARTC
mailing list