Posted: Fri Apr 09, 2010 7:23 Post subject: Re: Generated script doesn't work as expected on DIR-600 rev
It's probably that the IMQ kernel modules aren't loaded, possibly because they're missing in your build even though afaik they're in all builds... The below code sets a queue for the actual WAN port instead of using an IMQ device. You should raise the rates I bolded because those rates apply to everyone.
tc qdisc del dev br0 root
tc qdisc add dev br0 root handle 1: htb
tc class add dev br0 parent 1: classid 1:1 htb rate 2048kbit
tc class add dev br0 parent 1:1 classid 1:10 htb rate 2048kbit ceil 2048kbit prio 2
tc filter add dev br0 parent 1:0 prio 2 protocol ip handle 10 fw flowid 1:10
iptables -t mangle -A POSTROUTING -d 192.168.1.32 -j MARK --set-mark 10
wanif=`nvram get wan_iface`
tc qdisc del dev $wanif root
tc qdisc add dev $wanif root handle 1: htb
tc class add dev $wanif parent 1: classid 1:1 htb rate 2048kbit
tc class add dev $wanif parent 1:1 classid 1:10 htb rate 2048kbit ceil 2048kbit prio 2
tc filter add dev $wanif parent 1:0 prio 2 protocol ip handle 10 fw flowid 1:10
iptables -t mangle -A PREROUTING -s 192.168.1.32 -j MARK --set-mark 10 _________________ Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)