Having a problem with classid and prio and position.  Wondering if
someone could help?  Below I have pasted a part of my current rules, now
it consists of one chain and two pipes.  If they both use 60Kbit which
one would get priority?  Would it be the one with the better prio or the
one with the lower classid or would it be the one which is first on the
list?

/sbin/tc class add dev eth1 parent 1:1 classid 1:11 htb rate 2000kbit
ceil 2000kbit prio 3 quantum 1532 /sbin/iptables -t mangle -N
test-chain-eth1-1:11 /sbin/iptables -t mangle -A test-all-chains -m
connmark --mark
0x44444445 -j protocop-chain-eth1-1:11
/sbin/iptables -t mangle -A test-all -m physdev --physdev-in eth0 -s
192.168.2.0/24 -d 192.168.2.0/24 -j MARK --set-mark 0x44444445
/sbin/iptables -t mangle -A test-all -m physdev --physdev-in eth0 -s
192.168.2.0/24 -d 192.168.2.0/24 -j RETURN

/sbin/tc class add dev eth1 parent 1:11 classid 1:1001 htb rate 8Kbit
ceil 60Kbit prio 4 quantum 1532 /sbin/tc qdisc add dev eth1 handle 1001:
parent 1:1001 sfq /sbin/iptables -t mangle -A test-chain-eth1-1:11 -p
tcp -m multiport --port 81,3003,82,10000 -j CLASSIFY --set-class 1:1001
/sbin/iptables -t mangle -A test-chain-eth1-1:11 -p tcp -m multiport
--port 81,3003,82,10000 -j RETURN

/sbin/tc class add dev eth1 parent 1:11 classid 1:1002 htb rate 8Kbit
ceil 60Kbit prio 2 quantum 1532 /sbin/tc qdisc add dev eth1 handle 1002:
parent 1:1002 sfq /sbin/iptables -t mangle -A test-chain-eth1-1:11 -p
icmp -j CLASSIFY --set-class 1:1002 /sbin/iptables -t mangle -A
test-chain-eth1-1:11 -p icmp -j RETURN

Kind Regards
William

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

Reply via email to