Samuel Koscelansky / "SUBNET" wrote:

I tested shaping on vlan and it seems OK for me (even though my switch doesn't do vlan it doesn't seem to block oversize frames). I noticed a few things with your setup -


#classes for download
/sbin/tc class add dev eth0.100 parent 100: classid 100:1 htb rate 4000kbit 
quantum 6000

/sbin/tc class add dev eth0.100 parent 100:1 classid 100:2 htb rate 1000kbit 
quantum 6000
/sbin/tc qdisc add dev eth0.100 parent 100:2 handle 1002 pfifo limit 10

You attach pfifo as if 100:2 is a leaf class here


#my pc testing class
#down
/sbin/tc class add dev eth0.100 parent 100:2 classid 100:2828 htb rate 1000kbit 
quantum 6000
/sbin/tc filter add dev eth0.100 parent 100: protocol ip prio 1 u32 match ip 
dst 217.67.28.28 classid 100:2828
/sbin/tc qdisc add dev eth0.100 parent 100:2828 handle 1002828 sfq perturb 10

But have it as a parent here, also I think the handle on sfq is too big and if eth0.100 is to your ISP then dst should be changed src in the match.

Andy.

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

Reply via email to