bend chen wrote: > > hi. > > > >gypsy worte:--------------------------- > >This is HUGE; you cannot mean 10,000Kbit!?? > ???,my script 10000Kbps is mean10Mbps. > Iproute can not support 10Mbps? Sure, yes it can handle 10Mbps - and 100Mbps too. But the reason you are getting the r2q error message is that you set a much smaller rate for the children. I stole this from a previous posting to LARTC and have never actually used it, but try something like this, or search the archives for messages containing "LAN" and "Klauer" to see from whom it was stolen ;) DEV=eth1 # 100000 kbit ~= 100Mbit. # Lower this value if your LAN doesn't actually make 100MBit. LAN_SPEED=100000 LAN_SUBNET=192.168.223.0 # install root HTB, point default traffic to 1:20: $BIN_TC qdisc add dev $DEV root handle 1: htb default 20 # Add fat class. $BIN_TC class add dev $DEV parent 1: classid 1:2 htb rate ${LAN_SPEED}kbit quantum 1500 # Add local lan child. $BIN_TC class add dev $DEV parent 1:2 classid 1:3 htb rate $(($LAN_SPEED-$UPLINK))kbit quantum 1500 $BIN_TC class add dev $DEV parent 1:2 classid 1:1 htb rate ${UPLINK}kbit burst 6k # high prio class 1:10: $BIN_TC class add dev $DEV parent 1:1 classid 1:10 htb rate ${UPLINK}kbit \ burst 6k prio 1 # bulk & default class 1:20 $BIN_TC class add dev $DEV parent 1:1 classid 1:20 htb rate $[9*$UPLINK/10]kbit \ burst 6k prio 2 $BIN_TC class add dev $DEV parent 1:1 classid 1:30 htb rate $[8*$UPLINK/10]kbit \ burst 6k prio 2 # attach ingress policer: $BIN_TC qdisc add dev $DEV handle ffff: ingress # exclude LAN traffic $BIN_TC filter add dev $DEV parent ffff: protocol ip prio 1 u32 \ match ip src $LAN_SUBNET/24 \ match ip dst $LAN_SUBNET/24 \ flowid :1 > >bend chen wrote: > > > > Hi,lartc > > > > I used iproute-060110 with iptables1.3.4 on gentoo 2005r1 kernel > > 2.6.14-5. > > I find some error messages in system logfile: > > > > HTB: quantum of class 10001 is big. Consider r2q change. > > HTB: quantum of class 10010 is big. Consider r2q change. > > tcf_action_init_1: successfull police > > HTB: quantum of class 20001 is big. Consider r2q change. > > HTB: quantum of class 20020 is big. Consider r2q change. > > HTB: quantum of class 10001 is big. Consider r2q change. > > HTB: quantum of class 10010 is big. Consider r2q change.> > tcf_action_destroy destroying dcf0ba60 next 00000000 > > tcf_action_init_1: successfull police > > HTB: quantum of class 20001 is big. Consider r2q change. > > HTB: quantum of class 20020 is big. Consider r2q change. > > > > and this is my script: > > > > /root/ct/sbin/ct qdisc del dev eth0 root ; > > /root/ct/sbin/c! t qdisc del dev eth0 ingress ; > > /root/ct/sbin/ct qdisc add dev eth0 root handle 1: htb default 10 > r2q > > 1; > > /root/ct/sbin/ct class add dev eth0 parent 1: classid 1:1 htb rate > > 10000kbps; > > /root/ct/sbin/ct class add dev eth0 parent 1:1 classid 1:10 htb rate > > 9990kbps ceil 10000kbps; > > /root/ct/sbin/ct class add dev eth0 parent 1:1 classid 1:11 htb rate > > 10kbps; > > /root/ct/sbin/ct qdisc add dev eth0 parent 1:10 handle 13: sfq > perturb > > 5; > > /root/ct/sbin/ct qdisc add dev eth0 parent 1:11 handle 14: sfq > perturb > > 5; > > /root/ct/sbin/ct filter! add dev eth0 parent 1: protocol ip handle 1 > fw > > classid 1:10; > > /root/ct/sbin/ct filter add dev eth0 parent 1: protocol ip handle 2 > fw > > classid 1:11; > > /root/ct/sbin/ct qdisc del dev eth1 root; > > /root/ct/sbin/ct qdisc add dev eth1 root handle 2: htb default 20 > r2q > > 1; > > /root/ct/sbin/ct class add dev eth1 parent 2: classid 2:1 htb rate > > 10000kbps; > -------------------------- > >This is HUGE; you cannot mean 10,000Kbit!?? > -- > gypsy _______________________________________________ LARTC mailing list LARTC@xxxxxxxxxxxxxxx http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc