On Tue, 3 Dec 2002 22:03:39 +0100 Stef Coene <stef.coene@docum.org> wrote.... > It all depends on what you want to do. Have you read my docs on > www.docum.org ?? But you are on the right track. Ok, starting from scratch (again).. This loads and runs just fine: tc qdisc del dev eth0 root tc qdisc del dev eth1 root tc qdisc add dev eth0 root handle 10: htb tc class add dev eth0 parent 10: classid 10:1 htb rate 10mbit # tc class add dev eth0 parent 10:1 classid 10:10 htb rate 256kbit tc qdisc add dev eth0 parent 10:1 sfq perturb 10 tc filter add dev eth0 parent 10: protocol ip \ u32 match ip dst 208.191.32.254 flowid 10:1 # exit tc qdisc add dev eth1 root handle 20: htb tc class add dev eth1 parent 20: classid 20:1 htb rate 10mbit # tc class add dev eth1 parent 20:1 classid 20:10 htb rate 256kbit tc qdisc add dev eth1 parent 20:1 sfq perturb 10 tc filter add dev eth1 parent 20: protocol ip \ u32 match ip src 208.191.32.254 flowid 20:1 Whereas this doesn't... tc qdisc del dev eth0 root tc qdisc del dev eth1 root tc qdisc add dev eth0 root handle 10: htb tc class add dev eth0 parent 10: classid 10:1 htb rate 10mbit tc class add dev eth0 parent 10:1 classid 10:10 htb rate 256kbit tc qdisc add dev eth0 parent 10:10 sfq perturb 10 tc filter add dev eth0 parent 10: protocol ip \ u32 match ip dst 208.191.32.254 flowid 10:10 # exit tc qdisc add dev eth1 root handle 20: htb tc class add dev eth1 parent 20: classid 20:1 htb rate 10mbit tc class add dev eth1 parent 20:1 classid 20:10 htb rate 256kbit tc qdisc add dev eth1 parent 20:10 sfq perturb 10 tc filter add dev eth1 parent 20: protocol ip \ u32 match ip src 208.191.32.254 flowid 20:10 When i say does and doesn't work, the first on passes data, the second one doesn't, and the pings I was testing with showed up as dropped packets when I ran "tc -s class ls dev eth1", which I thought odd... Especially since they showed up in the root class... Welp, it's 4am (again), time to get a nap... --- Homer Parker http://www.homershut.net telnet://bbs.homershut.net
Attachment:
pgp00067.pgp
Description: PGP signature